riscv32: linker: Link .srodata section
Building tests/kernel/common/kernel.common with the new crosstools SDK-ng resulted in an orphan short read-only data section. Fix this by adding the .srodata section to the RISC-V linker script. Signed-off-by: Nathaniel Graff <nathaniel.graff@sifive.com>
This commit is contained in:
parent
eaafdc85fc
commit
0289a410ba
1 changed files with 2 additions and 0 deletions
|
@ -104,6 +104,8 @@ SECTIONS
|
|||
SECTION_PROLOGUE(_RODATA_SECTION_NAME,,)
|
||||
{
|
||||
. = ALIGN(4);
|
||||
*(.srodata)
|
||||
*(".srodata.*")
|
||||
*(.rodata)
|
||||
*(".rodata.*")
|
||||
*(.gnu.linkonce.r.*)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue