From 0289a410baa07d79c2ceaa426e3d4c106f9dd273 Mon Sep 17 00:00:00 2001 From: Nathaniel Graff Date: Wed, 23 Jan 2019 14:26:34 -0800 Subject: [PATCH] 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 --- include/arch/riscv32/common/linker.ld | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/arch/riscv32/common/linker.ld b/include/arch/riscv32/common/linker.ld index f345abb43c6..1d37d22bf4f 100644 --- a/include/arch/riscv32/common/linker.ld +++ b/include/arch/riscv32/common/linker.ld @@ -104,6 +104,8 @@ SECTIONS SECTION_PROLOGUE(_RODATA_SECTION_NAME,,) { . = ALIGN(4); + *(.srodata) + *(".srodata.*") *(.rodata) *(".rodata.*") *(.gnu.linkonce.r.*)