aboutsummaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
authorTianhao Wang <wth@riseup.net>2024-02-25 05:01:22 +0100
committerTianhao Wang <shrik3@mailbox.org>2024-06-11 15:13:39 +0200
commitbef6d67f63125310dee0bb437175d660eaeab4a3 (patch)
tree1137dc68c0fdf2b0c9b9fc002f1b8228b16245e9 /src/arch
parentdbefd9336cc808e76f8e9d8d238f5a348d14604a (diff)
define memory layout (if there was a layout)
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/x86_64/linker.ld5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/arch/x86_64/linker.ld b/src/arch/x86_64/linker.ld
index ae77deb..b484366 100644
--- a/src/arch/x86_64/linker.ld
+++ b/src/arch/x86_64/linker.ld
@@ -46,7 +46,7 @@ SECTIONS
*(".note.*")
}
- .bss :
+ .bss :
{
___BSS_START__ = .;
*(".bss")
@@ -71,5 +71,6 @@ SECTIONS
*(".debug_aranges")
}
*/
- PROVIDE (KERNEL_END = .);
+ . = ALIGN(4096);
+ PROVIDE (___KERNEL_END__ = .);
}