From 3cf618b39859ec672da3fa4d250098e18b41914a Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 25 Feb 2022 15:02:05 +0100 Subject: [PATCH] bsps/riscv: Support .riscv.attributes --- spec/build/bsps/riscv/linkcmdsbase.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/build/bsps/riscv/linkcmdsbase.yml b/spec/build/bsps/riscv/linkcmdsbase.yml index e637049280..6a4b497591 100644 --- a/spec/build/bsps/riscv/linkcmdsbase.yml +++ b/spec/build/bsps/riscv/linkcmdsbase.yml @@ -387,7 +387,7 @@ content: | .debug_rnglists 0 : { *(.debug_rnglists) } .debug_str_offsets 0 : { *(.debug_str_offsets) } .debug_sup 0 : { *(.debug_sup) } - .gnu.attributes 0 : { KEEP (*(.gnu.attributes)) } + .riscv.attributes 0 : { KEEP (*(.riscv.attributes)) KEEP (*(.gnu.attributes)) } /DISCARD/ : { *(.note.GNU-stack) *(.gnu_debuglink) *(.gnu.lto_*) } .shstrtab 0 : { *(.shstrtab) } .strtab 0 : { *(.strtab) }