When relaxing, update symbols at the very end of the section.
authorAndrew Burgess <andrew.burgess@embecosm.com>
Sat, 25 Oct 2014 14:08:14 +0000 (15:08 +0100)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Mon, 3 Nov 2014 20:33:25 +0000 (20:33 +0000)
commita12d0ffc72ee57f8db8b466fd9032360d8d15e09
treec682547453aa205443b545869433b6f9b3abbdef
parent5a3f568b70bdfb91aacdfb66657b56d8c6d242f1
When relaxing, update symbols at the very end of the section.

Symbols at the very end of a section were not being updated correctly
when linker relaxation takes place due to the use of '<' instead of
'<='.  Added a couple of tests to cover this behaviour.

bfd/ChangeLog:

* elf32-avr.c (elf32_avr_relax_delete_bytes): Modify symbols
located at the very end of the section.

ld/ChangeLog:

* ld/testsuite/ld-avr/relax-02.d: New file.
* ld/testsuite/ld-avr/relax-02.s: New file.
* ld/testsuite/ld-avr/relax-03.d: New file.
* ld/testsuite/ld-avr/relax-03.s: New file.
bfd/ChangeLog
bfd/elf32-avr.c
ld/ChangeLog
ld/testsuite/ld-avr/relax-02.d [new file with mode: 0644]
ld/testsuite/ld-avr/relax-02.s [new file with mode: 0644]
ld/testsuite/ld-avr/relax-03.d [new file with mode: 0644]
ld/testsuite/ld-avr/relax-03.s [new file with mode: 0644]