aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-mips.h
diff options
context:
space:
mode:
authorRichard Sandiford <rdsandiford@googlemail.com>2014-03-20 21:18:43 +0000
committerRichard Sandiford <rdsandiford@googlemail.com>2014-03-20 21:18:43 +0000
commitd56a8dda6d5a1864b54230b356d92ce60397f0e8 (patch)
tree5cb7c99ca5b10730f0d2661604a7147bd8320697 /gas/config/tc-mips.h
parent1bff71c3251e2f0836163e49ecd4b55861f4eb83 (diff)
downloadfsf-binutils-gdb-d56a8dda6d5a1864b54230b356d92ce60397f0e8.zip
fsf-binutils-gdb-d56a8dda6d5a1864b54230b356d92ce60397f0e8.tar.gz
fsf-binutils-gdb-d56a8dda6d5a1864b54230b356d92ce60397f0e8.tar.bz2
gas/
* config/tc-mips.h (DIFF_EXPR_OK, CFI_DIFF_EXPR_OK): Define. * config/tc-mips.c (md_pcrel_from): Remove error message. (md_apply_fix): Convert PC-relative BFD_RELOC_32s to BFD_RELOC_32_PCREL. Report a specific error message for unhandled PC-relative expressions. Handle BFD_RELOC_8. gas/testsuite/ * gas/all/gas.exp: Remove XFAIL of forward.d for MIPS. * gas/mips/pcrel-1.s, gas/mips/pcrel-1.d, gas/mips/pcrel-2.s, gas/mips/pcrel-2.d, gas/mips/pcrel-3.s, gas/mips/pcrel-3.l, gas/mips/pcrel-4.s, gas/mips/pcrel-4-32.d, gas/mips/pcrel-4-n32.d, gas/mips/pcrel-4-64.d: New tests. * gas/mips/mips.exp: Run them. * gas/mips/lui-2.l: Tweak error message for line 7. ld/testsuite/ * ld-elf/merge.d: Remove MIPS XFAIL.
Diffstat (limited to 'gas/config/tc-mips.h')
-rw-r--r--gas/config/tc-mips.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gas/config/tc-mips.h b/gas/config/tc-mips.h
index 97627df..510e811 100644
--- a/gas/config/tc-mips.h
+++ b/gas/config/tc-mips.h
@@ -189,4 +189,9 @@ extern int tc_mips_regname_to_dw2regnum (char *regname);
#define DWARF2_DEFAULT_RETURN_COLUMN 31
#define DWARF2_CIE_DATA_ALIGNMENT (-4)
+#define DIFF_EXPR_OK
+/* We define DIFF_EXPR_OK because of R_MIPS_PC32, but we have no
+ 64-bit form for n64 CFIs. */
+#define CFI_DIFF_EXPR_OK 0
+
#endif /* TC_MIPS */