aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/scripts
diff options
context:
space:
mode:
authorMatteo Gmür <matteo.gmuer1@ost.ch>2024-12-01 09:46:37 +0000
committerMatteo Gmür <matteo.gmuer1@ost.ch>2024-12-01 09:46:37 +0000
commitc1e7edabc1dfbe387546297720fc495837d38d33 (patch)
treee8f21a61721eda982e195d2ca663838a2800d854 /arch/x86_64/scripts
parente8bbb1ad850a362dfa25ba1ea7bdd838a379def8 (diff)
downloadteachos-c1e7edabc1dfbe387546297720fc495837d38d33.tar.xz
teachos-c1e7edabc1dfbe387546297720fc495837d38d33.zip
Fix guard page and ensure it crashes even if guard page is skipped altogether
Diffstat (limited to 'arch/x86_64/scripts')
-rw-r--r--arch/x86_64/scripts/kernel.ld20
1 files changed, 10 insertions, 10 deletions
diff --git a/arch/x86_64/scripts/kernel.ld b/arch/x86_64/scripts/kernel.ld
index c3eea9c..cc07896 100644
--- a/arch/x86_64/scripts/kernel.ld
+++ b/arch/x86_64/scripts/kernel.ld
@@ -48,17 +48,17 @@ SECTIONS
*(.boot_text)
} :boot_text
- .boot_data ALIGN(4K) : AT(ADDR (.boot_data))
- {
- *(.boot_data)
- } :boot_data
-
.boot_bss ALIGN(4K) : AT(ADDR (.boot_bss))
{
*(.boot_bss)
*(.boot_stack)
}
+ .boot_data ALIGN(4K) : AT(ADDR (.boot_data))
+ {
+ *(.boot_data)
+ } :boot_data
+
/***************************************************************************
* Now it is time to load the 64-bit kernel code. We
* make sure to align the loaded data onto a page boundary.
@@ -112,17 +112,17 @@ SECTIONS
KEEP(*crtend.o(.dtors))
}
- .data ALIGN(4K) : AT (ADDR (.data))
- {
- *(.data*)
- }
-
.bss ALIGN(4K) : AT (ADDR (.bss))
{
*(COMMON)
*(.bss*)
}
+ .data ALIGN(4K) : AT (ADDR (.data))
+ {
+ *(.data*)
+ }
+
/***************************************************************************
* In accordance with the symbol definitions at the start, we generate some
* symbols to mark the end of our loaded image.