aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1997-02-06 21:54:07 +0000
committerIan Lance Taylor <ian@airs.com>1997-02-06 21:54:07 +0000
commit6927c24d3c0b54a98e939a3201a46d726b782e89 (patch)
tree9df44c86847d006d8c275072a14ca55c1100dec9 /gas
parentfed72befa9188479b225f337b78d933c0a3ee410 (diff)
downloadgdb-6927c24d3c0b54a98e939a3201a46d726b782e89.zip
gdb-6927c24d3c0b54a98e939a3201a46d726b782e89.tar.gz
gdb-6927c24d3c0b54a98e939a3201a46d726b782e89.tar.bz2
* config/tc-mips.c (mips_fix_adjustable): Don't adjust relocations
against any mips16 symbols, not just externally visible ones. (md_apply_fix): Corresponding change.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog6
-rw-r--r--gas/config/tc-mips.c9
2 files changed, 8 insertions, 7 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 855c2eb..388279b 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,9 @@
+Thu Feb 6 16:52:57 1997 Ian Lance Taylor <ian@cygnus.com>
+
+ * config/tc-mips.c (mips_fix_adjustable): Don't adjust relocations
+ against any mips16 symbols, not just externally visible ones.
+ (md_apply_fix): Corresponding change.
+
Wed Feb 5 11:11:06 1997 Ian Lance Taylor <ian@cygnus.com>
* config/tc-mips.c (mips16_ip): Accept floating point registers in
diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c
index d1dd07e..edb2e13 100644
--- a/gas/config/tc-mips.c
+++ b/gas/config/tc-mips.c
@@ -8256,8 +8256,6 @@ md_apply_fix (fixP, valueP)
symbol, we need to adjust the value. */
#ifdef S_GET_OTHER
if (fixP->fx_addsy != NULL
- && (S_IS_EXTERNAL (fixP->fx_addsy)
- || S_IS_WEAK (fixP->fx_addsy))
&& OUTPUT_FLAVOR == bfd_target_elf_flavour
&& S_GET_OTHER (fixP->fx_addsy) == STO_MIPS16)
{
@@ -9508,8 +9506,8 @@ md_estimate_size_before_relax (fragp, segtype)
should be converted into a reloc against a section. Don't adjust
MIPS16 jump relocations, so we don't have to worry about the format
of the offset in the .o file. Don't adjust relocations against
- externally visible mips16 symbols, so that the linker can find them
- if it needs to set up a stub. */
+ mips16 symbols, so that the linker can find them if it needs to set
+ up a stub. */
int
mips_fix_adjustable (fixp)
@@ -9519,9 +9517,6 @@ mips_fix_adjustable (fixp)
return 0;
if (fixp->fx_addsy == NULL)
return 1;
- if (! S_IS_EXTERNAL (fixp->fx_addsy)
- && ! S_IS_WEAK (fixp->fx_addsy))
- return 1;
#ifdef S_GET_OTHER
if (OUTPUT_FLAVOR == bfd_target_elf_flavour
&& S_GET_OTHER (fixp->fx_addsy) == STO_MIPS16)