diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2021-03-21 22:14:12 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2021-03-21 22:14:12 +0200 |
commit | d4405dfb012ca70c06dfc3217265e4e9cd01b68a (patch) | |
tree | 76a99805e7a0f948bd885c89b219db13240efebd /linker.ld | |
parent | Check multiboot2 header length, and if needed map the next page as well (diff) | |
download | kernel.cpp-d4405dfb012ca70c06dfc3217265e4e9cd01b68a.tar.xz |
Place bootstrap code into multiboot section
Diffstat (limited to 'linker.ld')
-rw-r--r-- | linker.ld | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -12,7 +12,11 @@ SECTIONS . = 0; .multiboot : { . = ALIGN(8); + begin_multiboot = .; KEEP(*(.multiboot.header)) + *(.multiboot.text) + *(.multiboot.pages)) + end_multiboot = .; } /* Begin putting sections at 4 MiB */ @@ -20,7 +24,6 @@ SECTIONS .text ALIGN(4K) : AT(ADDR(.text) - VADDR_BASE + 4M) { begin_text = .; - *(.multiboot.text) *(.text*) end_text = .; } |