diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2021-03-11 11:42:29 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2021-03-11 11:42:29 +0200 |
commit | e093bdeb10ec79a5e22a9a792c098e876ed91a63 (patch) | |
tree | 06211324ae53c7a959dad8afb99f13e8c48463f5 /linker.ld | |
parent | vmm: display segment map info (diff) | |
download | kernel.cpp-e093bdeb10ec79a5e22a9a792c098e876ed91a63.tar.xz |
Add linker script to ld depends
Diffstat (limited to 'linker.ld')
-rw-r--r-- | linker.ld | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -10,17 +10,18 @@ SECTIONS * early in the image or the bootloader won't recognize the file format. */ . = 0; - _kernel_start = .; .multiboot : { *(.multiboot.header) - *(.multiboot.text) } /* Begin putting sections at 1 MiB */ + /* TODO load sections at VADDR_BASE rather than at VADDR_BASE + 1M */ . = VADDR_BASE + 1M; + _kernel_start = .; .text ALIGN(4K) : AT(ADDR(.text) - VADDR_BASE) { begin_text = .; + *(.multiboot.text) *(.text*) end_text = .; } |