test: Misc updates to the linker script

This commit is contained in:
mintsuki 2023-06-15 00:52:59 +02:00
parent 264decd0ef
commit 45fd1ac08f
1 changed files with 7 additions and 4 deletions

View File

@ -14,7 +14,7 @@ SECTIONS
kernel_start = .; kernel_start = .;
.text : { .text : {
*(.text*) *(.text .text.*)
} :text } :text
. += 0x1000; . += 0x1000;
@ -25,13 +25,15 @@ SECTIONS
} :rodata } :rodata
.rodata : { .rodata : {
*(.rodata*) *(.rodata .rodata.*)
} :rodata } :rodata
. += 0x1000; . += 0x1000;
.data : { .data : {
*(.data*) *(.data .data.*)
__global_pointer$ = . + 0x800;
*(.sdata .sdata.*)
} :data } :data
.dynamic : { .dynamic : {
@ -40,6 +42,7 @@ SECTIONS
.bss : { .bss : {
*(COMMON) *(COMMON)
*(.bss*) *(.sbss .sbss.*)
*(.bss .bss.*)
} :data } :data
} }