summaryrefslogtreecommitdiffhomepage
path: root/Private/Linker
diff options
context:
space:
mode:
Diffstat (limited to 'Private/Linker')
-rw-r--r--Private/Linker/AMD64.ld12
1 files changed, 8 insertions, 4 deletions
diff --git a/Private/Linker/AMD64.ld b/Private/Linker/AMD64.ld
index 695d17c4..81e87dc6 100644
--- a/Private/Linker/AMD64.ld
+++ b/Private/Linker/AMD64.ld
@@ -10,10 +10,9 @@ PHDRS {
}
SECTIONS {
- . = 0x00080000;
+ . = 1M;
.text : {
- KEEP(*(.multiboot))
*(.text .text.*)
} :text
@@ -21,7 +20,9 @@ SECTIONS {
.init : {
*(.initl)
- }
+ } :init
+
+ __SYSTEM_INIT_END = .;
. += CONSTANT(MAXPAGESIZE);
@@ -41,4 +42,7 @@ SECTIONS {
*(COMMON)
*(.bss .bss.*)
} :data
-} \ No newline at end of file
+
+ __SYSTEM_STACK_PTR = .;
+ __SYSTEM_STACK_END = . + 0x4000;
+}