This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 0/2] AVR Linker Relaxation


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]