This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH 0/2] AVR Linker Relaxation
- From: Andrew Burgess <andrew dot burgess at embecosm dot com>
- To: binutils at sourceware dot org
- Cc: Andrew Burgess <andrew dot burgess at embecosm dot com>
- Date: Wed, 29 Oct 2014 22:42:01 +0000
- Subject: [PATCH 0/2] AVR Linker Relaxation
- Authentication-results: sourceware.org; auth=none
This small series fixes two issues with linker relaxation for AVR targets.
Patch #1: Symbols at the very end of a section are not not moved
during linker relaxation.
Patch #2: Symbol sizes are not updated during linker relaxation.
I've added some tests for these issues. As I really wrote the tests
to cover both issues, the use of some regexps when the tests are added
in patch 1 is clearly to allow for the bug that I then fix in patch
2, at which point I update the test to only accept the correct answer.
Embecosm has copyright assignment on file.
I have write-after-approval access to the repository for gdb commits,
which I guess means technically I can commit to binutils too, but I don't
know if I need to request separate write-after-approval privialges first.
Thanks,
Andrew
Andrew Burgess (2):
When relaxing, update symbols at the very end of the section.
When relaxing, update size of symbols.
bfd/ChangeLog | 11 +++++++
bfd/elf32-avr.c | 39 +++++++++++++++++++------
ld/ChangeLog | 13 +++++++++
ld/testsuite/ld-avr/relax-02.d | 64 +++++++++++++++++++++++++++++++++++++++++
ld/testsuite/ld-avr/relax-02.s | 65 ++++++++++++++++++++++++++++++++++++++++++
ld/testsuite/ld-avr/relax-03.d | 26 +++++++++++++++++
ld/testsuite/ld-avr/relax-03.s | 18 ++++++++++++
7 files changed, 228 insertions(+), 8 deletions(-)
create mode 100644 ld/testsuite/ld-avr/relax-02.d
create mode 100644 ld/testsuite/ld-avr/relax-02.s
create mode 100644 ld/testsuite/ld-avr/relax-03.d
create mode 100644 ld/testsuite/ld-avr/relax-03.s
--
1.9.3