Commits

Anonymous committed 37d4bbd

Add some previously unknown linker sections (e.g. from DWARF 3)
---
scripts/sections_FLASH.ld | 17 ++++++++++++++---
1 file changed, 14 insertions(+), 3 deletions(-)

  • Participants
  • Parent commits 358cef0

Comments (0)

Files changed (1)

File scripts/sections_FLASH.ld

         *(.rodata*)
         *(.glue_7)
         *(.glue_7t)
+        *(.vfp11_veneer)
+        *(.v4_bx)
+        *(.ARM.extab* .gnu.linkonce.armextab.*)
         
         /* Some stuff of CodeSourcery? */
-        *(.init)
-        *(.fini)
-        *(.eh_frame)
+        KEEP (*(.init))
+        KEEP (*(.fini))
+        KEEP(*(.eh_frame))
 
         /* Parameters and log system datas */
         . = ALIGN(4);
     .debug_funcnames 0 : { *(.debug_funcnames) }
     .debug_typenames 0 : { *(.debug_typenames) }
     .debug_varnames  0 : { *(.debug_varnames) }
+    /* DWARF 3 */
+    .debug_pubtypes 0 : { *(.debug_pubtypes) }
+    .debug_ranges   0 : { *(.debug_ranges) }
+    /* DWARF extension */
+    .debug_macro    0 : { *(.debug_macro) }
+    .ARM.attributes 0 : { KEEP (*(.ARM.attributes)) KEEP (*(.gnu.attributes)) }
+    .note.gnu.arm.ident 0 : { KEEP (*(.note.gnu.arm.ident)) }
+    /DISCARD/ : { *(.note.GNU-stack) *(.gnu_debuglink) *(.gnu.lto_*) }
 
     .unexpected_sections : { *(*) } > UNEXPECTED_SECTIONS
 }