aboutsummaryrefslogtreecommitdiff
path: root/linker.ld
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2021-03-21 22:14:12 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2021-03-21 22:14:12 +0200
commitd4405dfb012ca70c06dfc3217265e4e9cd01b68a (patch)
tree76a99805e7a0f948bd885c89b219db13240efebd /linker.ld
parentCheck multiboot2 header length, and if needed map the next page as well (diff)
downloadkernel.cpp-d4405dfb012ca70c06dfc3217265e4e9cd01b68a.tar.xz
Place bootstrap code into multiboot section
Diffstat (limited to 'linker.ld')
-rw-r--r--linker.ld5
1 files changed, 4 insertions, 1 deletions
diff --git a/linker.ld b/linker.ld
index f7010e7..8eba287 100644
--- a/linker.ld
+++ b/linker.ld
@@ -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 = .;
}