Fixes the generation of dwarf line debug information for the msp430, even in the...
authorNick Clifton <nickc@redhat.com>
Mon, 23 Feb 2015 14:53:02 +0000 (14:53 +0000)
committerNick Clifton <nickc@redhat.com>
Mon, 23 Feb 2015 14:53:02 +0000 (14:53 +0000)
commit0f8f0c57ea4742ad2d9b0598a18243331c1c06e3
treef5a577adf5af444ca801d78171ea669dc05dee9b
parent8f3102ea1a9954ed00f84a9e3452a79e94953840
Fixes the generation of dwarf line debug information for the msp430, even in the presence of function sections and linker garbage collection.

PR 17940
* dwarf2dbg.c (out_header): When generating dwarf sections use
real symbols not temps for the start and end symbols.
* config/tc-msp430.h (TC_FORCE_RELOCATION_SUB_SAME): Also prevent
adjustments to relocations in debug sections.
(TC_LINKRELAX_FIXUP): Likewise.

* elf32-msp430.c (msp430_elf_relax_delete_bytes): Adjust debug
symbols at end of sections.  Adjust function sizes.
bfd/ChangeLog
bfd/elf32-msp430.c
gas/ChangeLog
gas/config/tc-msp430.h
gas/dwarf2dbg.c