From 30cfc97a80d6823ca7a7c860d5daa682d456df43 Mon Sep 17 00:00:00 2001 From: "Maciej W. Rozycki" Date: Tue, 6 Jul 2010 00:12:42 +0000 Subject: gas/ * config/tc-mips.c (mips_frob_file): Use symbol_same_p to match symbols. gas/testsuite/ * gas/mips/elf-rel27.d: New test for HI16/LO16 relocation pairing. * gas/mips/elf-rel27.s: Source for the new test. * gas/mips/mips.exp: Create "mips16" architecture. Adjust conditions involving negated properties throughout to require "mips1" as appropriate. Run the new test. (mips_arch_destroy): New procedure. --- gas/config/tc-mips.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gas/config/tc-mips.c') diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c index 4025f12..65ff6d4 100644 --- a/gas/config/tc-mips.c +++ b/gas/config/tc-mips.c @@ -12234,7 +12234,7 @@ mips_frob_file (void) hi_pos = pos; if ((*pos)->fx_r_type == looking_for_rtype - && (*pos)->fx_addsy == l->fixp->fx_addsy + && symbol_same_p ((*pos)->fx_addsy, l->fixp->fx_addsy) && (*pos)->fx_offset >= l->fixp->fx_offset && (lo_pos == NULL || (*pos)->fx_offset < (*lo_pos)->fx_offset -- cgit v1.1