OSDN Git Service

gas/
authorRichard Sandiford <rsandifo@nildram.co.uk>
Sat, 8 Feb 2003 17:05:55 +0000 (17:05 +0000)
committerRichard Sandiford <rsandifo@nildram.co.uk>
Sat, 8 Feb 2003 17:05:55 +0000 (17:05 +0000)
commite5f17e165aa380edf2069e805eb0dae380d7feac
tree4838af2faf3d97cbea3dc36507ef3b6e4f171651
parenta65939673abb09b36a5be50316af7ba0764f1367
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