diff options
author | Alan Modra <amodra@gmail.com> | 2002-12-05 11:46:50 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2002-12-05 11:46:50 +0000 |
commit | 114424c6b3c664cb3a79d26883771c429633ffd1 (patch) | |
tree | de133fd30d8e1756fcb0f4ecdf3a1e2954fff961 /gas/config/tc-arm.h | |
parent | d1973055b8847315e5783ae04ab701b632fd3a8b (diff) | |
download | ppe42-binutils-114424c6b3c664cb3a79d26883771c429633ffd1.tar.gz ppe42-binutils-114424c6b3c664cb3a79d26883771c429633ffd1.zip |
* config/tc-arm.c (arm_force_relocation): Move out of #if OBJ_ELF.
Move OBJ_COFF TC_FORCE_RELOCATION code here so that COFF handles
ARM_IMMEDIATE and ARM_ADRL_IMMEDIATE relocs as for ELF.
* config/tc-arm.h (TC_FORCE_RELOCATION): Define for both ELF and
COFF to call arm_force_relocation.
Diffstat (limited to 'gas/config/tc-arm.h')
-rw-r--r-- | gas/config/tc-arm.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/gas/config/tc-arm.h b/gas/config/tc-arm.h index 441c16f30c..3b98b33426 100644 --- a/gas/config/tc-arm.h +++ b/gas/config/tc-arm.h @@ -77,8 +77,6 @@ struct fix; #ifdef OBJ_COFF # if defined TE_PE -# define TC_FORCE_RELOCATION(x) \ - ((x)->fx_r_type == BFD_RELOC_RVA || S_FORCE_RELOC ((x)->fx_addsy)) # ifdef TE_EPOC # define TARGET_FORMAT (target_big_endian ? "epoc-pe-arm-big" : "epoc-pe-arm-little") # else @@ -92,11 +90,11 @@ struct fix; #ifdef OBJ_ELF # define TARGET_FORMAT elf32_arm_target_format() extern const char * elf32_arm_target_format PARAMS ((void)); - -# define TC_FORCE_RELOCATION(FIX) arm_force_relocation (FIX) - extern int arm_force_relocation PARAMS ((struct fix *)); #endif +#define TC_FORCE_RELOCATION(FIX) arm_force_relocation (FIX) +extern int arm_force_relocation PARAMS ((struct fix *)); + #define md_convert_frag(b, s, f) {as_fatal (_("arm convert_frag\n"));} #define md_cleanup() arm_cleanup () |