This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Add DWARF3 debug sections to elf.sc
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: binutils at sourceware dot org
- Date: Thu, 3 May 2007 16:35:29 +0930
- Subject: Add DWARF3 debug sections to elf.sc
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