However, I figured out that kernel.bss is overlapping with the elf section & headers, which contain the symbolic table, got wiped out upon initializations.
My current workaround is to force the bss to shift behind the headers:
Code: Select all
.data ALIGN(4096) : {
*(.data*)
*(.gnu.linkonce.d*)
data_end = .;
}
.= data_end + 10240;
.bss ALIGN(4096) : {
sbss = .;
*(COMMON*)
*(.bss*)
*(.gnu.linkonce.b*)
ebss = .;
}