aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-s390.h
diff options
context:
space:
mode:
authorMartin Schwidefsky <schwidefsky@de.ibm.com>2001-11-05 08:47:46 +0000
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2001-11-05 08:47:46 +0000
commitb8edc45c300fbe12145e84499a2d542baade2223 (patch)
tree6a62c5d454ebb08141c0b766d975eaddb89265e4 /gas/config/tc-s390.h
parentdef7143b201cce31043a0cf596a325213861e404 (diff)
downloadgdb-b8edc45c300fbe12145e84499a2d542baade2223.zip
gdb-b8edc45c300fbe12145e84499a2d542baade2223.tar.gz
gdb-b8edc45c300fbe12145e84499a2d542baade2223.tar.bz2
Force got and plt relocations.
Diffstat (limited to 'gas/config/tc-s390.h')
-rw-r--r--gas/config/tc-s390.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/gas/config/tc-s390.h b/gas/config/tc-s390.h
index ad201c3..67d9117 100644
--- a/gas/config/tc-s390.h
+++ b/gas/config/tc-s390.h
@@ -44,13 +44,15 @@ struct fix;
&& S_IS_DEFINED ((FIX)->fx_addsy) \
&& ! S_IS_COMMON ((FIX)->fx_addsy))))
-#define TC_FORCE_RELOCATION(FIXP) \
- ((FIXP)->fx_r_type == BFD_RELOC_VTABLE_INHERIT \
- || (FIXP)->fx_r_type == BFD_RELOC_VTABLE_ENTRY)
+#define TC_FORCE_RELOCATION(FIXP) tc_s390_force_relocation(FIXP)
+extern int tc_s390_force_relocation PARAMS ((struct fix *));
#define tc_fix_adjustable(X) tc_s390_fix_adjustable(X)
extern int tc_s390_fix_adjustable PARAMS ((struct fix *));
+#define TC_FIX_ADJUSTABLE(fixP) \
+ (! symbol_used_in_reloc_p ((fixP)->fx_addsy) && tc_fix_adjustable (fixP))
+
/* The target BFD architecture. */
#define TARGET_ARCH bfd_arch_s390
extern enum bfd_architecture s390_arch PARAMS ((void));