/* tc-i960.h - Basic 80960 instruction formats.
- Copyright 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1997, 1998, 1999,
- 2000, 2001, 2002, 2003, 2007, 2008
- Free Software Foundation, Inc.
+ Copyright (C) 1989-2017 Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
/* Makes no sense to use the difference of 2 arbitrary symbols
as the target of a call instruction. */
#define TC_FORCE_RELOCATION_SUB_SAME(FIX, SEG) \
- ((FIX)->fx_tcbit \
- || ! SEG_NORMAL (SEG) \
+ (GENERIC_FORCE_RELOCATION_SUB_SAME (FIX, SEG) \
+ || (FIX)->fx_tcbit \
|| TC_FORCE_RELOCATION (FIX))
/* reloc_callj() may replace a 'call' with a 'calls' or a
|| reloc_callj (FIX))
#define TC_FORCE_RELOCATION_LOCAL(FIX) \
- (!(FIX)->fx_pcrel \
- || TC_FORCE_RELOCATION (FIX) \
+ (GENERIC_FORCE_RELOCATION_LOCAL (FIX) \
|| reloc_callj (FIX))
#ifdef OBJ_COFF
/* We store the bal information in the sy_tc field. */
#define TC_SYMFIELD_TYPE symbolS *
-#define TC_ADJUST_RELOC_COUNT(FIX,COUNT) \
- { fixS *tcfixp = (FIX); \
- for (;tcfixp;tcfixp=tcfixp->fx_next) \
- if (tcfixp->fx_tcbit && tcfixp->fx_addsy != 0) \
- ++(COUNT); \
- }
#endif
extern int i960_validate_fix (struct fix *, segT);