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]

Re: [Patch, avr, PR 20789] Fix relaxation with negative valued diff relocs


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


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