diff options
Diffstat (limited to 'linker.ld')
| -rw-r--r-- | linker.ld | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -3,14 +3,16 @@ ENTRY(_start) SECTIONS { . = 0x7000; + kernel_start = .; + + /* smp code at 0x7000*/ .text BLOCK(4K) : ALIGN(4K) { *(.smp) } . = 1M; - kernel_start = .; - + /* _start code as 0x10000 and rest of code*/ .text BLOCK(4K) : ALIGN(4K) { *(.multiboot) @@ -32,9 +34,9 @@ SECTIONS /* Read-write data (uninitialized) and stack */ .bss BLOCK(4K) : ALIGN(4K) { + *(.bootstrap_stack) *(COMMON) *(.bss) - *(.bootstrap_stack) } kernel_end = .; |
