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
Notes: sideshowbarker 2024-07-17 23:00:03 +09:00

View File

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