From 91cb9803fcf6d1c7001395d80f79120ae8e6338a Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Tue, 16 May 2017 08:43:24 +0930 Subject: Allow target files access to default TC_FORCE_RELOCATION defines * write.c (GENERIC_FORCE_RELOCATION_LOCAL): Define. (TC_FORCE_RELOCATION_LOCAL): Use it. (GENERIC_FORCE_RELOCATION_SUB_SAME): Define. (TC_FORCE_RELOCATION_SUB_SAME): Use it. * config/tc-arm.h (TC_FORCE_RELOCATION_LOCAL, TC_FORCE_RELOCATION_SUB_SAME): Use GENERIC defines. * config/tc-aarch64.h: Similarly. * config/tc-avr.h: Similarly. * config/tc-cris.h: Similarly. * config/tc-i386.h: Similarly. * config/tc-i960.h: Similarly. * config/tc-ia64.h: Similarly. * config/tc-microblaze.h: Similarly. * config/tc-mips.h: Similarly. * config/tc-msp430.h: Similarly. * config/tc-nds32.h: Similarly. * config/tc-pru.h: Similarly. * config/tc-riscv.h: Similarly. * config/tc-rl78.h: Similarly. * config/tc-s390.h: Similarly. * config/tc-sh.h: Similarly. * config/tc-sh64.h: Similarly. * config/tc-sparc.h: Similarly. * config/tc-xtensa.h: Similarly. * config/tc-mn10300.h: Similarly. (GENERIC_FORCE_RELOCATION_LOCAL): Define. * config/tc-msp430.c (msp430_force_relocation_local): Modify to be addition to rather than replacement of standard TC_FORCE_RELOCATION_LOCAL. --- gas/config/tc-ia64.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'gas/config/tc-ia64.h') diff --git a/gas/config/tc-ia64.h b/gas/config/tc-ia64.h index 5f906dd..7e04441 100644 --- a/gas/config/tc-ia64.h +++ b/gas/config/tc-ia64.h @@ -320,9 +320,8 @@ typedef struct unwind_record #define TC_FORCE_RELOCATION_LOCAL(FIX) \ ((FIX)->fx_r_type != BFD_RELOC_UNUSED \ - && (!(FIX)->fx_pcrel \ - || (FIX)->fx_r_type == BFD_RELOC_IA64_PLTOFF22 \ - || TC_FORCE_RELOCATION (FIX))) + && (GENERIC_FORCE_RELOCATION_LOCAL (FIX) \ + || (FIX)->fx_r_type == BFD_RELOC_IA64_PLTOFF22)) /* VMS backtraces expect dwarf version 3. */ #ifdef TE_VMS -- cgit v1.1