From: Ian Lance Taylor Date: Thu, 6 Feb 1997 21:54:07 +0000 (+0000) Subject: * config/tc-mips.c (mips_fix_adjustable): Don't adjust relocations X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6927c24d3c0b54a98e939a3201a46d726b782e89;p=binutils-gdb.git * 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. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 855c2ebff78..388279bfd09 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,9 @@ +Thu Feb 6 16:52:57 1997 Ian Lance Taylor + + * 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 * 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 d1dd07e25d4..edb2e13cac9 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)