gas/
authorRichard Sandiford <rdsandiford@googlemail.com>
Sat, 8 Feb 2003 17:05:55 +0000 (17:05 +0000)
committerRichard Sandiford <rdsandiford@googlemail.com>
Sat, 8 Feb 2003 17:05:55 +0000 (17:05 +0000)
commit5919d0127e12dfe3d3190ba3468c71782cb16b02
treeea35f74913dd8981ddc30119e1d9b96f70b9bc1e
parent00b28bb047a8304ba4f00433072b8f1bd8f35e60
gas/
* config/tc-mips.c (reloc_needs_lo_p): New function.
(fixup_has_matching_lo_p): New function.
(append_insn): Use reloc_needs_lo_p to check whether a relocation
might need a matching %lo().  Reuse the head of mips_hi_fixup_list
if that fixup already has a matching %lo().  Don't call frag_wane here.
(macro): Call frag_wane here if the last unmatched hi was in the
current frag.
(pic_need_relax): New function, split out from...
(md_estimate_size_before_relax): ...here.
(mips_frob_file): Use reloc_needs_lo_p.  Use pic_need_relax to test
whether BFD_RELOC_MIPS_GOT16 fixups refer to global symbols.

gas/testsuite/
* gas/mips/rel12.[sd], gas/mips/rel13.[sd]: New tests.
* gas/mips/mips.exp: Run them.
gas/ChangeLog
gas/config/tc-mips.c
gas/testsuite/ChangeLog
gas/testsuite/gas/mips/elf-rel12.d [new file with mode: 0644]
gas/testsuite/gas/mips/elf-rel12.s [new file with mode: 0644]
gas/testsuite/gas/mips/elf-rel13.d [new file with mode: 0644]
gas/testsuite/gas/mips/elf-rel13.s [new file with mode: 0644]
gas/testsuite/gas/mips/mips.exp