summaryrefslogtreecommitdiff
path: root/gas/config/tc-frv.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2002-09-05 00:01:18 +0000
committerAlan Modra <amodra@bigpond.net.au>2002-09-05 00:01:18 +0000
commita1b21dcdfbd5658dd57ccdecfd95319ec28e6551 (patch)
tree35994cf39ce1f17aa2f18969fe31c3781b146843 /gas/config/tc-frv.c
parentfef4effd994bbc0e0fb17657b9647a16f7957d35 (diff)
downloadbinutils-redhat-a1b21dcdfbd5658dd57ccdecfd95319ec28e6551.tar.gz
gas reloc rewrite.
Diffstat (limited to 'gas/config/tc-frv.c')
-rw-r--r--gas/config/tc-frv.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/gas/config/tc-frv.c b/gas/config/tc-frv.c
index 2a7db7075f..6dbe78aa93 100644
--- a/gas/config/tc-frv.c
+++ b/gas/config/tc-frv.c
@@ -1226,7 +1226,7 @@ frv_force_relocation (fix)
|| fix->fx_r_type == BFD_RELOC_FRV_GPRELU12)
return 1;
- return 0;
+ return S_FORCE_RELOC (fix->fx_addsy);
}
/* Write a value out to the object file, using the appropriate endianness. */
@@ -1314,16 +1314,6 @@ frv_fix_adjustable (fixP)
else
reloc_type = fixP->fx_r_type;
- if (fixP->fx_addsy == NULL)
- return 1;
-
- /* Prevent all adjustments to global symbols. */
- if (S_IS_EXTERN (fixP->fx_addsy))
- return 0;
-
- if (S_IS_WEAK (fixP->fx_addsy))
- return 0;
-
/* We need the symbol name for the VTABLE entries */
if ( reloc_type == BFD_RELOC_VTABLE_INHERIT
|| reloc_type == BFD_RELOC_VTABLE_ENTRY