aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-sparc.h
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>1999-07-16 21:30:35 +0000
committerRichard Henderson <rth@redhat.com>1999-07-16 21:30:35 +0000
commitdabe3bbc57ce0f79ea86a18c520a8d62f126f1ac (patch)
tree903655e75b009689f645c2ee4c8371e6ce921bd1 /gas/config/tc-sparc.h
parentf65054f7be0c462fd452164cf4b2e3c8660200e6 (diff)
downloadbinutils-dabe3bbc57ce0f79ea86a18c520a8d62f126f1ac.zip
binutils-dabe3bbc57ce0f79ea86a18c520a8d62f126f1ac.tar.gz
binutils-dabe3bbc57ce0f79ea86a18c520a8d62f126f1ac.tar.bz2
Jakub Jelinek <jj@ultra.linux.cz>
* config/tc-sparc.c (sparc_ip): Allow OLO10 relocations on -64 and not pic. (output_insn): Put OLO10's secondary addend into tc_fix_data. (md_apply_fix3): Handle BFD_RELOC_SPARC_OLO10. (tc_gen_reloc): Return two relocs for OLO10, LO10 and SPARC13. * config/tc-sparc.h (RELOC_EXPANSION_POSSIBLE, MAX_RELOC_EXPANSION): Define. (TC_FIX_TYPE, TC_INIT_FIX_DATA, TC_FIX_DATA_PRINT): Likewise.
Diffstat (limited to 'gas/config/tc-sparc.h')
-rw-r--r--gas/config/tc-sparc.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/gas/config/tc-sparc.h b/gas/config/tc-sparc.h
index 2f9525f..40ab02c8 100644
--- a/gas/config/tc-sparc.h
+++ b/gas/config/tc-sparc.h
@@ -35,6 +35,9 @@ struct frag;
extern const char *sparc_target_format PARAMS ((void));
#define TARGET_FORMAT sparc_target_format ()
+#define RELOC_EXPANSION_POSSIBLE
+#define MAX_RELOC_EXPANSION 2
+
#if 0
#ifdef TE_SPARCAOUT
/* Bi-endian support may eventually be unconditional, but until things are
@@ -160,4 +163,21 @@ extern void sparc_md_end PARAMS ((void));
extern void cons_fix_new_sparc
PARAMS ((struct frag *, int, unsigned int, struct expressionS *));
+#define TC_FIX_TYPE valueT
+
+#define TC_INIT_FIX_DATA(X) \
+ do \
+ { \
+ (X)->tc_fix_data = 0; \
+ } \
+ while(0)
+
+#define TC_FIX_DATA_PRINT(FILE, FIXP) \
+ do \
+ { \
+ fprintf((FILE), "addend2=%ld\n", \
+ (unsigned long) (FIXP)->tc_fix_data); \
+ } \
+ while(0)
+
/* end of tc-sparc.h */