2003-05-05 H.J. Lu <hjl@gnu.org>

* config/tc-mips.c (tc_gen_reloc): Add addend just once if
	howto->partial_inplace is false.
This commit is contained in:
H.J. Lu 2003-05-06 00:28:25 +00:00
parent 9204e615fb
commit d8dbbec1ca
2 changed files with 14 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2003-05-05 H.J. Lu <hjl@gnu.org>
* config/tc-mips.c (tc_gen_reloc): Add addend just once if
howto->partial_inplace is false.
2003-05-05 Daniel Jacobowitz <drow@mvista.com>
* config/tc-mips.c (mips_need_elf_addend_fixup): Remove

View File

@ -13940,7 +13940,15 @@ tc_gen_reloc (section, fixp)
&& (code == BFD_RELOC_GPREL16 || code == BFD_RELOC_MIPS16_GPREL)
&& reloc->addend != 0
&& mips_need_elf_addend_fixup (fixp))
reloc->addend += S_GET_VALUE (fixp->fx_addsy);
{
/* If howto->partial_inplace is false, md_apply_fix3 will only
subtract it once. */
reloc_howto_type *howto;
howto = bfd_reloc_type_lookup (stdoutput, fixp->fx_r_type);
if (howto->partial_inplace)
reloc->addend += S_GET_VALUE (fixp->fx_addsy);
}
#endif
/* To support a PC relative reloc when generating embedded PIC code