bfd/
authorRichard Sandiford <rdsandiford@googlemail.com>
Tue, 17 Feb 2004 10:19:24 +0000 (10:19 +0000)
committerRichard Sandiford <rdsandiford@googlemail.com>
Tue, 17 Feb 2004 10:19:24 +0000 (10:19 +0000)
commitd25aed713b6b953317601bf93df7a9a14cb39031
tree346c710199e44f71d0990604f017664836d48344
parentf937530551ba8561aed3e15538bb1803e99f2ee8
bfd/
* elfxx-mips.c (mips_elf_calculate_relocation): Use
_bfd_elf_symbol_refs_local_p to decide whether to decay
a GOT_PAGE/GOT_OFST pair to GOT_DISP/addend.
(_bfd_mips_elf_check_relocs): Add a global GOT entry for GOT_PAGE
relocs if the symbol wasn't defined by a regular object file.
Don't check the symbol's dynindx.

ld/testsuite/
* ld-mips/elf/elf-rel-xgot-{n32,n64-linux}.d: Update after 2004-02-02
changes to the way large constants are added.
* ld-mips/elf/elf-rel-got-{n32,n64-linux}.d: Likewise.  Adjust order
of GOT entries after today's change to the handling of GOT_PAGE
relocations.
bfd/ChangeLog
bfd/elfxx-mips.c
ld/testsuite/ChangeLog
ld/testsuite/ld-mips-elf/elf-rel-got-n32.d
ld/testsuite/ld-mips-elf/elf-rel-got-n64-linux.d
ld/testsuite/ld-mips-elf/elf-rel-xgot-n32.d
ld/testsuite/ld-mips-elf/elf-rel-xgot-n64-linux.d