aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-ia64.h
diff options
context:
space:
mode:
authorJim Wilson <wilson@tuliptree.org>2001-02-14 01:46:10 +0000
committerJim Wilson <wilson@tuliptree.org>2001-02-14 01:46:10 +0000
commitfa1cb89ccc52f3e55a7de0d94b100cf3694f273e (patch)
tree904524812bcc43e4aa22817516b11155388789b6 /gas/config/tc-ia64.h
parent6757257fb58bd0b5bd75e2d9230aae7da4559618 (diff)
downloadbinutils-fa1cb89ccc52f3e55a7de0d94b100cf3694f273e.zip
binutils-fa1cb89ccc52f3e55a7de0d94b100cf3694f273e.tar.gz
binutils-fa1cb89ccc52f3e55a7de0d94b100cf3694f273e.tar.bz2
Address comment from Richard about relocs always needing a type.
* config/tc-ia64.c (operand_match, case TAG13): Make a BFD_RELOC_UNUSED reloc instead of a 0 reloc. (md_apply_fix3): Check for BFD_RELOC_UNUSED instead of 0, and mark it as done. * config/tc-ia64.h (TC_RELOC_RTSYM_LOC_FIXUP): Likewise.
Diffstat (limited to 'gas/config/tc-ia64.h')
-rw-r--r--gas/config/tc-ia64.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/gas/config/tc-ia64.h b/gas/config/tc-ia64.h
index f2b9fe4..ee4c749 100644
--- a/gas/config/tc-ia64.h
+++ b/gas/config/tc-ia64.h
@@ -252,9 +252,12 @@ typedef struct unwind_record
True if we are willing to perform this relocation while building
the .o file. This is only used for pcrel relocations. */
+/* If the reloc type is BFD_RELOC_UNUSED, then this is for a TAG13/TAG13b field
+ which has no external reloc, so we must resolve the value now. */
+
#define TC_RELOC_RTSYM_LOC_FIXUP(FIX) \
((FIX)->fx_addsy == NULL \
- || (FIX)->fx_r_type == 0 \
+ || (FIX)->fx_r_type == BFD_RELOC_UNUSED \
|| (! S_IS_EXTERNAL ((FIX)->fx_addsy) \
&& ! S_IS_WEAK ((FIX)->fx_addsy) \
&& S_IS_DEFINED ((FIX)->fx_addsy) \