* elfxx-mips.c (mips_elf_calculate_relocation): Take
authorAlexandre Oliva <aoliva@redhat.com>
Sun, 13 Oct 2002 21:22:31 +0000 (21:22 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Sun, 13 Oct 2002 21:22:31 +0000 (21:22 +0000)
commitbce03d3da87e892ff24475217dd76c4d0c18f8c2
tree9320a6b2f5c53a3f1705ccecdc58e8cbacfbd838
parente1026ffb69bd2e0ba19c66acf7b6f81ca3b0d104
* elfxx-mips.c (mips_elf_calculate_relocation): Take
save_addend argument.  Don't apply the 32-bit mask to a
GPREL32 value if it's to be used in another relocation.  Don't
use forced-check computation of local_p to decide whether to
add gp0 to GPREL16 value.  Don't use only the lowest 16 bits
of the addend of a non-in-place GPREL16 relocation.
(_bfd_mips_elf_relocate_section): Pass use_saved_addend_p to
mips_elf_calculate_relocation().
bfd/ChangeLog
bfd/elfxx-mips.c