From 45fd1ac08feffad42bfeca968220dae803c53f1d Mon Sep 17 00:00:00 2001 From: mintsuki Date: Thu, 15 Jun 2023 00:52:59 +0200 Subject: [PATCH] test: Misc updates to the linker script --- test/linker.ld | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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 }