1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 08:57:34 +00:00

Kernel/riscv64: Add missing input sections to linker script

The linker would otherwise put those sections after
`end_of_kernel_image`.
This commit is contained in:
Sönke Holz 2023-11-22 22:27:40 +01:00 committed by Andrew Kaster
parent 49b7539290
commit fa39a57474

View file

@ -56,13 +56,13 @@ SECTIONS
*(.init_array) *(.init_array)
end_ctors = .; end_ctors = .;
*(.rodata*) *(.srodata* .rodata*)
} :data } :data
.data ALIGN(4K) : .data ALIGN(4K) :
{ {
start_of_kernel_data = .; start_of_kernel_data = .;
*(.data*) *(.sdata* .data*)
end_of_kernel_data = .; end_of_kernel_data = .;
} :data } :data
@ -76,7 +76,7 @@ SECTIONS
.bss ALIGN(4K) (NOLOAD) : .bss ALIGN(4K) (NOLOAD) :
{ {
start_of_bss = .; start_of_bss = .;
*(.bss) *(.sbss* .bss*)
end_of_bss = .; end_of_bss = .;
. = ALIGN(4K); . = ALIGN(4K);