[RFC PATCH 4/5] riscv: Add new offending input sections to the linker script

Hesham Almatary Hesham.Almatary at cl.cam.ac.uk
Wed Oct 23 13:44:12 UTC 2019


---
 bsps/riscv/shared/start/linkcmds.base.in | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/bsps/riscv/shared/start/linkcmds.base.in b/bsps/riscv/shared/start/linkcmds.base.in
index 7d6a23cde0..d921e29fe4 100644
--- a/bsps/riscv/shared/start/linkcmds.base.in
+++ b/bsps/riscv/shared/start/linkcmds.base.in
@@ -372,6 +372,11 @@ SECTIONS {
 	.debug_addr		 0 : { *(.debug_addr) }
 	.gnu.attributes 0 : { KEEP (*(.gnu.attributes)) }
 	/DISCARD/ : { *(.note.GNU-stack) *(.gnu_debuglink) *(.gnu.lto_*) }
+	.shstrtab		 0 : { *(.shstrtab) }
+	.strtab		 0 : { *(.strtab) }
+	.symtab		 0 : { *(.symtab) }
+	.symtab_shndx		 0 : { *(.symtab_shndx) }
+	__cap_relocs		 0 : { *(__cap_relocs) }
 
 	/*
 	 * This is a RTEMS specific section to catch all unexpected input
-- 
2.17.1



More information about the devel mailing list