diff --git a/spec/build/bsps/riscv/linkcmdsbase.yml b/spec/build/bsps/riscv/linkcmdsbase.yml index b45661c3bb..87aee53f6c 100644 --- a/spec/build/bsps/riscv/linkcmdsbase.yml +++ b/spec/build/bsps/riscv/linkcmdsbase.yml @@ -387,6 +387,10 @@ content: | .debug_rnglists 0 : { *(.debug_rnglists) } .debug_str_offsets 0 : { *(.debug_str_offsets) } .debug_sup 0 : { *(.debug_sup) } + + /* Addition to let linker know about custom section for GDB pretty-printing support. */ + .debug_gdb_scripts 0 : { *(.debug_gdb_scripts) } + .riscv.attributes 0 : { KEEP (*(.riscv.attributes)) KEEP (*(.gnu.attributes)) } /DISCARD/ : { *(.note.GNU-stack) *(.gnu_debuglink) *(.gnu.lto_*) } .shstrtab 0 : { *(.shstrtab) }