aboutsummaryrefslogtreecommitdiff
path: root/linker.ld
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2021-03-21 16:53:07 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2021-03-21 16:53:07 +0200
commite9232199bdd97233dabd59f07c63607c93c0c59c (patch)
tree66aff19650079c9fc990f75d2ed390dd674cfdaa /linker.ld
parentAdd allocator (diff)
downloadkernel.cpp-e9232199bdd97233dabd59f07c63607c93c0c59c.tar.xz
Check multiboot2 header length, and if needed map the next page as well
Diffstat (limited to 'linker.ld')
-rw-r--r--linker.ld3
1 files changed, 2 insertions, 1 deletions
diff --git a/linker.ld b/linker.ld
index d1dedd2..f7010e7 100644
--- a/linker.ld
+++ b/linker.ld
@@ -11,7 +11,8 @@ SECTIONS
*/
. = 0;
.multiboot : {
- *(.multiboot.header)
+ . = ALIGN(8);
+ KEEP(*(.multiboot.header))
}
/* Begin putting sections at 4 MiB */