Commit: Create a single linker script for DWARF sections
Nick Clifton
nickc@redhat.com
Mon Apr 15 08:51:00 GMT 2013
Hi Guys,
I am working on a patch which will add some extensions to the DWARF
sections in linker scripts[1]. We have a lot of scripts that include
DWARF sections and having to modify them all each time I want to add a
new section seemed like a waste of time. So instead I created the
patch below which creates a single DWARF.sc script fragment which is
then included into any script that uses DWARF sections.
Tested, without any regressions, on a wide variety of different
toolchains.
Cheers
Nick
[1] I am working on extending linker garbage collection so that when a
text section is removed any debug information associated with that
section is also removed. Currently I have a local patch that makes GAS
produce .debug_line.text.<foo> sections and these need to be merged into
the proper .debug_line section when a final link occurs.
ld/ChangeLog
2013-04-15 Nick Clifton <nickc@redhat.com>
* scripttempl/armbpabi.sc: Replace DWARF sections with an
inclusion of DWARF.sc.
* scripttempl/avr.sc: Likewise.
* scripttempl/elf.sc: Likewise.
* scripttempl/elf32cr16.sc: Likewise.
* scripttempl/elf32crx.sc: Likewise.
* scripttempl/elf32msp430.sc: Likewise.
* scripttempl/elf32msp430_3.sc: Likewise.
* scripttempl/elf32sh-symbian.sc: Likewise.
* scripttempl/elf64hppa.sc: Likewise.
* scripttempl/elf_chaos.sc: Likewise.
* scripttempl/elfd10v.sc: Likewise.
* scripttempl/elfd30v.sc: Likewise.
* scripttempl/elfi370.sc: Likewise.
* scripttempl/elfm68hc11.sc: Likewise.
* scripttempl/elfm68hc12.sc: Likewise.
* scripttempl/elfxgate.sc: Likewise.
* scripttempl/elfxtensa.sc: Likewise.
* scripttempl/epiphany_4x4.sc: Likewise.
* scripttempl/i386beos.sc: Likewise.
* scripttempl/i386go32.sc: Likewise.
* scripttempl/ia64vms.sc: Likewise.
* scripttempl/ip2k.sc: Likewise.
* scripttempl/iq2000.sc: Likewise.
* scripttempl/mep.sc: Likewise.
* scripttempl/mmo.sc: Likewise.
* scripttempl/v850.sc: Likewise.
* scripttempl/v850_rh850.sc: Likewise.
* scripttempl/xstormy16.sc: Likewise.
* scripttempl/DWARF.sc: New.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ld.dwarf.sc.patch.xz
Type: application/x-xz
Size: 3068 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20130415/62c4b716/attachment.xz>
More information about the Binutils
mailing list