aboutsummaryrefslogtreecommitdiff
path: root/linker.ld
diff options
context:
space:
mode:
Diffstat (limited to 'linker.ld')
-rw-r--r--linker.ld5
1 files changed, 3 insertions, 2 deletions
diff --git a/linker.ld b/linker.ld
index e9f1d73..9383b44 100644
--- a/linker.ld
+++ b/linker.ld
@@ -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 = .;
}