aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-frv.h
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2004-01-06 19:19:18 +0000
committerAlexandre Oliva <aoliva@redhat.com>2004-01-06 19:19:18 +0000
commit99d09cdbd43bd0ebc6079dba91d8a71dc12ee45e (patch)
tree50ac9638cf9766dbf15bfde967b4af55ba57cb51 /gas/config/tc-frv.h
parentfee5fcc505440bc45b1dae6eb6071436cd04ef77 (diff)
downloadfsf-binutils-gdb-99d09cdbd43bd0ebc6079dba91d8a71dc12ee45e.zip
fsf-binutils-gdb-99d09cdbd43bd0ebc6079dba91d8a71dc12ee45e.tar.gz
fsf-binutils-gdb-99d09cdbd43bd0ebc6079dba91d8a71dc12ee45e.tar.bz2
2003-12-19 Alexandre Oliva <aoliva@redhat.com>
* config/tc-frv.h (md_apply_fix3): Don't define. * config/tc-frv.c (md_apply_fix3): New. Shift/truncate %hi/%lo operands. * config/tc-frv.h (TC_FORCE_RELOCATION_SUB_LOCAL): Define. 2003-10-07 Alexandre Oliva <aoliva@redhat.com> * config/tc-frv.c (line_separator_chars): Add `!'. 2003-09-19 Alexandre Oliva <aoliva@redhat.com> * config/tc-frv.c (md_assemble): Clear insn upfront. 2003-09-18 Alexandre Oliva <aoliva@redhat.com> * config/tc-frv.c (OPTION_FDPIC): New macro. (md_longopts): Add mfdpic. (md_parse_option): Handle it. 2003-08-04 Alexandre Oliva <aoliva@redhat.com> * config/tc-frv.c (md_cgen_lookup_reloc) <FRV_OPERAND_D12, FRV_OPERAND_S12>: Use reloc type encoded in fix-up. (frv_pic_ptr): Parse funcdesc.
Diffstat (limited to 'gas/config/tc-frv.h')
-rw-r--r--gas/config/tc-frv.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/gas/config/tc-frv.h b/gas/config/tc-frv.h
index 4d1d54c..d2e185d 100644
--- a/gas/config/tc-frv.h
+++ b/gas/config/tc-frv.h
@@ -45,8 +45,6 @@
/* Values passed to md_apply_fix3 don't include the symbol value. */
#define MD_APPLY_SYM_VALUE(FIX) 0
-#define md_apply_fix3 gas_cgen_md_apply_fix3
-
extern void frv_tomcat_workaround PARAMS ((void));
#define md_cleanup frv_tomcat_workaround
@@ -63,6 +61,11 @@ extern bfd_boolean frv_fix_adjustable PARAMS ((struct fix *));
#define TC_FORCE_RELOCATION(fix) frv_force_relocation (fix)
extern int frv_force_relocation PARAMS ((struct fix *));
+/* If we simplify subtractions that aren't SUB_SAME or SUB_ABS, we end
+ up with PCrel fixups, but since we don't have any PCrel relocs, we
+ crash. Preventing simplification gets us a good, early error. */
+#define TC_FORCE_RELOCATION_SUB_LOCAL(fixP) 1
+
#undef GAS_CGEN_MAX_FIXUPS
#define GAS_CGEN_MAX_FIXUPS 1