OSDN Git Service

* elf32-xtensa.c (relax_section): Call pin_internal_relocs when
authorBob Wilson <bob.wilson@acm.org>
Fri, 5 Oct 2007 19:05:35 +0000 (19:05 +0000)
committerBob Wilson <bob.wilson@acm.org>
Fri, 5 Oct 2007 19:05:35 +0000 (19:05 +0000)
commitc04ee5b45e1cfb365b0c5b55000d68f2a8f56a37
treee1c44488acfcb5da859982046b806a8144a782ac
parent4f0480121c87f344703f27d8aa54d2c3a6f60913
* elf32-xtensa.c (relax_section): Call pin_internal_relocs when
changing a relocation's offset.  Adjust call to translate_reloc.  Do
not add a fix record for a DIFF reloc.  For other relocs, only add a
fix record if the translated target is in a different object file;
otherwise, just update the relocation.  Call pin_internal_relocs when
updating a reloc but not when adding a fix record.
(translate_reloc): Get the target section from a new argument, not
from the relocation.  Change check for relaxable sections to an
assertion.  Compute separate offset adjustments for the base symbol
and the addend, and set the new relocation's addend correctly.  Return
the new target section.
bfd/ChangeLog
bfd/elf32-xtensa.c