aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/scripts
diff options
context:
space:
mode:
authorFabian Imhof <fabian.imhof@ost.ch>2024-10-26 07:03:01 +0000
committerFabian Imhof <fabian.imhof@ost.ch>2024-10-26 07:03:01 +0000
commitc2c7503fec31c07645fdc087dbf1ef487e90912e (patch)
tree711ba04a5f61cfa698b25e7fcf72af5c66fb97bb /arch/x86_64/scripts
parent4c97a4e1e2055ce63a0d16d1e5be880792a5e7eb (diff)
downloadteachos-c2c7503fec31c07645fdc087dbf1ef487e90912e.tar.xz
teachos-c2c7503fec31c07645fdc087dbf1ef487e90912e.zip
fix mmap type, adjust linker, use std::array
Diffstat (limited to 'arch/x86_64/scripts')
-rw-r--r--arch/x86_64/scripts/kernel.ld3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86_64/scripts/kernel.ld b/arch/x86_64/scripts/kernel.ld
index 31d8be3..c777d10 100644
--- a/arch/x86_64/scripts/kernel.ld
+++ b/arch/x86_64/scripts/kernel.ld
@@ -59,6 +59,9 @@ SECTIONS
*(.boot_stack)
}
+ . = ALIGN(4K);
+ _end_of_image = .;
+
/***************************************************************************
* Now it is time to load the 64-bit kernel code. We virtually load it into
* the upper 2GiB, while adjusting the linear load address appropriately. We