When relaxing, update size of symbols.
authorAndrew Burgess <andrew.burgess@embecosm.com>
Mon, 27 Oct 2014 10:45:18 +0000 (10:45 +0000)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Mon, 3 Nov 2014 20:34:13 +0000 (20:34 +0000)
commit931b79ccd6cc6ad4d8fe60a9c6de9443322a7cc8
treea59a2d3b7bbc68c89bba19de32222dd0fb6d6bbe
parenta12d0ffc72ee57f8db8b466fd9032360d8d15e09
When relaxing, update size of symbols.

When performing linker relaxation, reduce the size of symbols that span
the deleted bytes.  This ensures that, for example, function symbols
will have the correct size.

bfd/ChangeLog:

* elf32-avr.c (elf32_avr_relax_delete_bytes): During linker
relaxation, reduce the size of symbols that span the deleted
bytes.

ld/ChangeLog:

* testsuite/ld-avr/relax-02.d: Update to check size of symbols has
changed.
* testsuite/ld-avr/relax-03.d: Likewise.
bfd/ChangeLog
bfd/elf32-avr.c
ld/ChangeLog
ld/testsuite/ld-avr/relax-02.d
ld/testsuite/ld-avr/relax-03.d