From 23e0ccf7b5a0ccea545f231d35dbecc00011a9de Mon Sep 17 00:00:00 2001 From: Johannes Stoelp Date: Thu, 24 Apr 2025 00:21:02 +0200 Subject: multiboot: add multiboot example kernel --- x86-bare-metal/multiboot/kern.ld | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 x86-bare-metal/multiboot/kern.ld (limited to 'x86-bare-metal/multiboot/kern.ld') diff --git a/x86-bare-metal/multiboot/kern.ld b/x86-bare-metal/multiboot/kern.ld new file mode 100644 index 0000000..5a615c9 --- /dev/null +++ b/x86-bare-metal/multiboot/kern.ld @@ -0,0 +1,27 @@ +ENTRY(_start) + +SECTIONS +{ + . = 1M; + .mbhdr : { + KEEP(*(.mbhdr)) + } + .text.boot : { + *(.text.boot) + } + .text : { + *(.text*) + } + .rodata ALIGN (0x1000) : { + *(.rodata*) + } + .data ALIGN (0x1000) : { + *(.data*) + } + .bss : { + sbss = .; + *(COMMON) + *(.bss*) + ebss = .; + } +} -- cgit v1.2.3