summaryrefslogtreecommitdiff
path: root/Kernel/Arch/x86_64/linker.ld
diff options
context:
space:
mode:
Diffstat (limited to 'Kernel/Arch/x86_64/linker.ld')
-rw-r--r--Kernel/Arch/x86_64/linker.ld5
1 files changed, 3 insertions, 2 deletions
diff --git a/Kernel/Arch/x86_64/linker.ld b/Kernel/Arch/x86_64/linker.ld
index e9b7a870f1..e11648fe13 100644
--- a/Kernel/Arch/x86_64/linker.ld
+++ b/Kernel/Arch/x86_64/linker.ld
@@ -69,8 +69,6 @@ SECTIONS
start_of_kernel_data = .;
*(.data*)
end_of_kernel_data = .;
- . = ALIGN(4K);
- *(.heap)
} :data
.ro_after_init ALIGN(4K) : AT(ADDR(.ro_after_init))
@@ -87,6 +85,9 @@ SECTIONS
*(COMMON)
*(.bss*)
end_of_kernel_bss = .;
+
+ . = ALIGN(4K);
+ *(.heap)
} :bss
.dynamic ALIGN(4K) : AT (ADDR(.dynamic))