diff options
author | Maciej W. Rozycki <macro@linux-mips.org> | 2010-07-06 00:12:42 +0000 |
---|---|---|
committer | Maciej W. Rozycki <macro@linux-mips.org> | 2010-07-06 00:12:42 +0000 |
commit | 30cfc97a80d6823ca7a7c860d5daa682d456df43 (patch) | |
tree | b628633d2bb5cbbfda38d169073ad7d5f5077bba /gas/config/tc-mips.c | |
parent | c680e7f672a30b81ccffb8e2d1bcd01bca659c55 (diff) | |
download | gdb-30cfc97a80d6823ca7a7c860d5daa682d456df43.zip gdb-30cfc97a80d6823ca7a7c860d5daa682d456df43.tar.gz gdb-30cfc97a80d6823ca7a7c860d5daa682d456df43.tar.bz2 |
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.
Diffstat (limited to 'gas/config/tc-mips.c')
-rw-r--r-- | gas/config/tc-mips.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |