diff options
Diffstat (limited to 'linker.ld')
-rw-r--r-- | linker.ld | 13 |
1 files changed, 5 insertions, 8 deletions
@@ -1,9 +1,8 @@ -/* The bootloader will look at this image and start execution at the symbol - designated as the entry point. */ ENTRY(_start) OUTPUT_FORMAT(elf32-i386) -OUTPUT_ARCH(i386:i386) - + +SEARCH_DIR(libk) + /* Tell where the various sections of the object files will be put in the final kernel image. */ SECTIONS @@ -15,12 +14,9 @@ SECTIONS /* First put the multiboot header, as it is required to be put very early early in the image or the bootloader won't recognize the file format. Next we'll put the .text section. */ - .boot : - { - *(.multiboot) - } .text : { + *(.multiboot) *(.text) } @@ -41,6 +37,7 @@ SECTIONS { *(COMMON) *(.bss) + *(.stack) } /* The compiler may produce other sections, by default it will put them in |