* config/tc-mips.c (HAVE_IN_PLACE_ADDENDS): New macro.
authorRichard Sandiford <rdsandiford@googlemail.com>
Sat, 3 Jul 2004 15:20:53 +0000 (15:20 +0000)
committerRichard Sandiford <rdsandiford@googlemail.com>
Sat, 3 Jul 2004 15:20:53 +0000 (15:20 +0000)
commit3b91255ea0fa465d5c79abc774e6c7aec13ca513
treeb43e9e84163c3d2efc7f3b5faaa4db6e1f216eab
parent0945c90c858a7ded59a40f89705838897f3ab36e
* config/tc-mips.c (HAVE_IN_PLACE_ADDENDS): New macro.
(reloc_needs_lo_p): Only return true if HAVE_IN_PLACE_ADDENDS.
(mips_frob_file): Rework so that only a single pass through the
relocs is needed.  Allow %lo()s to have higher offsets than their
corresponding %hi()s or %got()s.

testsuite/
* gas/mips/elf{,el}-rel.d: Adjust so that the earliest %hi() matches
the earliest %lo().
* gas/mips/elf-rel11.d: Don't expect the relocs to be reordered.
* gas/mips/elf-rel20.[sd]: New test.
* gas/mips/mips.exp: Run it.
gas/ChangeLog
gas/config/tc-mips.c
gas/testsuite/ChangeLog
gas/testsuite/gas/mips/elf-rel.d
gas/testsuite/gas/mips/elf-rel11.d
gas/testsuite/gas/mips/elf-rel20.d [new file with mode: 0644]
gas/testsuite/gas/mips/elf-rel20.s [new file with mode: 0644]
gas/testsuite/gas/mips/elfel-rel.d
gas/testsuite/gas/mips/mips.exp