Add DWARF3 debug sections to elf.sc
Alan Modra
amodra@bigpond.net.au
Thu May 3 07:05:00 GMT 2007
These debug sections ought to be in elf.sc. The orphan section
handling puts them in the right place, but not having them in the link
script means that they are affected by "ld --unique".
* scripttempl/elf.sc: Add .debug_pubtypes and .debug_ranges.
Index: ld/scripttempl/elf.sc
===================================================================
RCS file: /cvs/src/src/ld/scripttempl/elf.sc,v
retrieving revision 1.79
diff -u -p -r1.79 elf.sc
--- ld/scripttempl/elf.sc 26 Oct 2006 00:31:59 -0000 1.79
+++ ld/scripttempl/elf.sc 3 May 2007 06:57:35 -0000
@@ -505,6 +505,10 @@ cat <<EOF
.debug_typenames 0 : { *(.debug_typenames) }
.debug_varnames 0 : { *(.debug_varnames) }
+ /* DWARF 3 */
+ .debug_pubtypes 0 : { *(.debug_pubtypes) }
+ .debug_ranges 0 : { *(.debug_ranges) }
+
${TINY_DATA_SECTION}
${TINY_BSS_SECTION}
--
Alan Modra
IBM OzLabs - Linux Technology Centre
More information about the Binutils
mailing list