aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/scripts
diff options
context:
space:
mode:
authorMatteo Gmür <matteo.gmuer1@ost.ch>2025-05-09 12:00:23 +0000
committerMatteo Gmür <matteo.gmuer1@ost.ch>2025-05-09 12:00:23 +0000
commitd80ecf29baada6242c5181adaec0d1500707cad0 (patch)
tree096b96c2ac172a3556b7c213f20f232c357ce06d /arch/x86_64/scripts
parentd7205b75cda2caff078cea26ff1508f9daa5b4cc (diff)
downloadteachos-d80ecf29baada6242c5181adaec0d1500707cad0.tar.xz
teachos-d80ecf29baada6242c5181adaec0d1500707cad0.zip
Move necessary code into user text
Diffstat (limited to 'arch/x86_64/scripts')
-rw-r--r--arch/x86_64/scripts/kernel.ld5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/x86_64/scripts/kernel.ld b/arch/x86_64/scripts/kernel.ld
index 239d026..88d90fe 100644
--- a/arch/x86_64/scripts/kernel.ld
+++ b/arch/x86_64/scripts/kernel.ld
@@ -128,6 +128,11 @@ SECTIONS
*(.data*)
}
+ .user_data ALIGN(4K) : AT (ADDR (.user_data))
+ {
+ *(.user_data*)
+ }
+
/***************************************************************************
* In accordance with the symbol definitions at the start, we generate some
* symbols to mark the end of our loaded image.