aboutsummaryrefslogtreecommitdiff
path: root/gas/write.c
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2000-08-22 04:52:40 +0000
committerAlexandre Oliva <aoliva@redhat.com>2000-08-22 04:52:40 +0000
commit8f36cd18af6756dd6ab50da33d2c7574fc711527 (patch)
tree5e35d0c637c073c3f6c5e236b8fd5b20886aa86e /gas/write.c
parent58a77e418b6999bee8e5e54e5483d24536bb93c0 (diff)
downloadgdb-8f36cd18af6756dd6ab50da33d2c7574fc711527.zip
gdb-8f36cd18af6756dd6ab50da33d2c7574fc711527.tar.gz
gdb-8f36cd18af6756dd6ab50da33d2c7574fc711527.tar.bz2
* write.c (TC_FIX_ADJUSTABLE): Define to 1, if not defined.
(fixup_segment) Use it instead of TC_DONT_FIX_NON_ADJUSTABLE. * config/tc-i386.h (TC_DONT_FIX_NON_ADJUSTABLE): Remove. <OBJ_ELF, OBJ_COFF, TE_PE> (TC_FIX_ADJUSTABLE): Define. * config/tc-arm.h (TC_DONT_FIX_NON_ADJUSTABLE): Remove. <OBJ_ELF> (TC_FIX_ADJUSTABLE): Define. * config/tc-i960.h, config/tc-m68k.h, config/tc-v850.h: Likewise.
Diffstat (limited to 'gas/write.c')
-rw-r--r--gas/write.c19
1 files changed, 9 insertions, 10 deletions
diff --git a/gas/write.c b/gas/write.c
index 67d39ab..978fcc2 100644
--- a/gas/write.c
+++ b/gas/write.c
@@ -48,10 +48,18 @@
#define TC_FORCE_RELOCATION_SECTION(FIXP,SEG) TC_FORCE_RELOCATION(FIXP)
#endif
+#ifndef TC_FIX_ADJUSTABLE
+#define TC_FIX_ADJUSTABLE(fix) 1
+#endif
+
#ifndef TC_LINKRELAX_FIXUP
#define TC_LINKRELAX_FIXUP(SEG) 1
#endif
+#ifndef TC_FIX_ADJUSTABLE
+#define TC_FIX_ADJUSTABLE(fix) 1
+#endif
+
#ifndef MD_PCREL_FROM_SECTION
#define MD_PCREL_FROM_SECTION(FIXP, SEC) md_pcrel_from(FIXP)
#endif
@@ -2710,16 +2718,7 @@ fixup_segment (fixP, this_segment_type)
else
{
seg_reloc_count++;
-#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
+ if (TC_FIX_ADJUSTABLE (fixP))
add_number += S_GET_VALUE (add_symbolP);
}
}