From aa15ae94a9266340cbf0e366610d16d7f1e0d0bb Mon Sep 17 00:00:00 2001 From: Kumar Gala Date: Mon, 11 Mar 2019 10:50:27 -0500 Subject: [PATCH] soc: riscv32: openisa_rv32m1: Link .srodata section Apply a similar fix to commit 0289a410baa07d79c2ceaa426e3d4c106f9dd273 to the openisa_rv32m1 linker script for handling .srodata sections. Otherwise we get oprhan read-only data section. Fix this by adding the .srodata section to the RISC-V linker script. Signed-off-by: Kumar Gala --- soc/riscv32/openisa_rv32m1/linker.ld | 2 ++ 1 file changed, 2 insertions(+) diff --git a/soc/riscv32/openisa_rv32m1/linker.ld b/soc/riscv32/openisa_rv32m1/linker.ld index 7a598de030c..b98d0241618 100644 --- a/soc/riscv32/openisa_rv32m1/linker.ld +++ b/soc/riscv32/openisa_rv32m1/linker.ld @@ -107,6 +107,8 @@ SECTIONS SECTION_PROLOGUE(_RODATA_SECTION_NAME,,) { . = ALIGN(4); + *(.srodata) + *(".srodata.*") *(.rodata) *(.rodata.*) *(.gnu.linkonce.r.*)