diff options
author | Alexandre Oliva <aoliva@redhat.com> | 2000-08-18 18:45:05 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@redhat.com> | 2000-08-18 18:45:05 +0000 |
commit | 021986386e5aea745ae5b4300b84a3f8ef50e00b (patch) | |
tree | c56169e0fd9cdde1109c881ce4aee1c6faeb87a0 /gas/write.c | |
parent | 2ac374c471f9bd364e060cd64a1d65a453877015 (diff) | |
download | gdb-021986386e5aea745ae5b4300b84a3f8ef50e00b.zip gdb-021986386e5aea745ae5b4300b84a3f8ef50e00b.tar.gz gdb-021986386e5aea745ae5b4300b84a3f8ef50e00b.tar.bz2 |
* write.c (fixup_segment) [TC_DONT_FIX_NON_ADJUSTABLE]: Use
obj_fix_adjustable() and tc_fix_adjustable() to tell whether to
add a symbol's address. Removed all target-specific #ifdefs that
used to accomplished the same.
* config/tc-v850.h (TC_DONT_FIX_NON_ADJUSTABLE): Define.
* config/tc-m68k.h (TC_DONT_FIX_NON_ADJUSTABLE): Define.
* config/tc-arm.h (TC_DONT_FIX_NON_ADJUSTABLE): Define.
* config/tc-i960.h (TC_DONT_FIX_NON_ADJUSTABLE): Define.
* config/tc-i386.h (TC_DONT_FIX_NON_ADJUSTABLE): Define.
Diffstat (limited to 'gas/write.c')
-rw-r--r-- | gas/write.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gas/write.c b/gas/write.c index e9e4f8a..cb50709 100644 --- a/gas/write.c +++ b/gas/write.c @@ -2706,17 +2706,17 @@ fixup_segment (fixP, this_segment_type) else { seg_reloc_count++; -#if !(defined (TC_V850) && defined (OBJ_ELF)) -#if !(defined (TC_M68K) && defined (OBJ_ELF)) -#if !(defined (TC_ARM) && defined (OBJ_ELF)) -#if !(defined (TC_I960) && defined (OBJ_ELF)) -#if !defined (TC_I386) || !(defined (OBJ_ELF) || defined (OBJ_COFF)) || defined (TE_PE) - add_number += S_GET_VALUE (add_symbolP); -#endif -#endif +#ifdef TC_DONT_FIX_NON_ADJUSTABLE + if (1 +#ifdef obj_fix_adjustable + && obj_fix_adjustable (fixP) #endif +#ifdef tc_fix_adjustable + && tc_fix_adjustable (fixP) #endif + ) #endif + add_number += S_GET_VALUE (add_symbolP); } } } |