:: commit 45fd1ac08feffad42bfeca968220dae803c53f1d

mintsuki <mintsuki@protonmail.com> — 2023-06-14 22:52

parents: 264decd0ef

test: Misc updates to the linker script

diff --git a/test/linker.ld b/test/linker.ld
index c8a9b308..17806d98 100644
--- a/test/linker.ld
+++ b/test/linker.ld
@@ -14,7 +14,7 @@ SECTIONS
     kernel_start = .;
 
     .text : {
-        *(.text*)
+        *(.text .text.*)
     } :text
 
     . += 0x1000;
@@ -25,13 +25,15 @@ SECTIONS
     } :rodata
 
     .rodata : {
-        *(.rodata*)
+        *(.rodata .rodata.*)
     } :rodata
 
     . += 0x1000;
 
     .data : {
-        *(.data*)
+        *(.data .data.*)
+        __global_pointer$ = . + 0x800;
+        *(.sdata .sdata.*)
     } :data
 
     .dynamic : {
@@ -40,6 +42,7 @@ SECTIONS
 
     .bss : {
         *(COMMON)
-        *(.bss*)
+        *(.sbss .sbss.*)
+        *(.bss .bss.*)
     } :data
 }
tab: 248 wrap: offon