OSDN Git Service

* elf32-xtensa.c (relax_section): Call pin_internal_relocs when
authorbwilson <bwilson>
Fri, 5 Oct 2007 19:05:35 +0000 (19:05 +0000)
committerbwilson <bwilson>
Fri, 5 Oct 2007 19:05:35 +0000 (19:05 +0000)
commitc3ac776789fea4f53335a24547acf859985dd4d4
treeae791fad889ab2213238053768f02453ee8713ce
parentca8ee2d617b699ac9db648ea1535d6b1b0fd1671
* 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