[Patch, avr, PR 20789] Fix relaxation with negative valued diff relocs
Nick Clifton
nickc@redhat.com
Wed Nov 16 09:15:00 GMT 2016
Hi Senthil,
> 2016-11-15 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
>
> PR ld/20789
> * bfd/elf32-avr.c (elf32_avr_adjust_diff_reloc_value): Do signed
> manipulation of diff value, and don't assume sym2 is less than sym1.
> (elf32_avr_adjust_reloc_if_spans_insn): New function.
> (elf32_avr_relax_delete_bytes): Use elf32_avr_adjust_diff_reloc_value,
> and remove redundant did_pad.
> * ld/testsuite/ld-avr/pr20789.d: New test.
> * ld/testsuite/ld-avr/pr20789.s: New test.
Approved - please apply.
Cheers
Nick
More information about the Binutils
mailing list