OSDN Git Service

* config/tc-mips.c (HAVE_IN_PLACE_ADDENDS): New macro.
authorrsandifo <rsandifo>
Sat, 3 Jul 2004 15:20:52 +0000 (15:20 +0000)
committerrsandifo <rsandifo>
Sat, 3 Jul 2004 15:20:52 +0000 (15:20 +0000)
commit62f66c10448ef00bc228b60f96d9a1636d178144
treed4ba3440b27e839fbca12953b00da48c1853fac1
parentba0827b89ff6e083dcec5b6ade25e7a5f5fcfb2a
* 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