From b8edc45c300fbe12145e84499a2d542baade2223 Mon Sep 17 00:00:00 2001 From: Martin Schwidefsky Date: Mon, 5 Nov 2001 08:47:46 +0000 Subject: Force got and plt relocations. --- gas/config/tc-s390.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'gas/config/tc-s390.h') 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)); -- cgit v1.1