2001-07-25 H.J. Lu <hjl@gnu.org>
* config/tc-mips.c (md_estimate_size_before_relax): Make sure we treat weak like extern only for ELF. (mips_fix_adjustable): Make sure we don't adjust extern/weak symbols only for ELF.
This commit is contained in:
parent
2f4dcb115b
commit
46bac6de18
2 changed files with 11 additions and 2 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2001-07-25 H.J. Lu <hjl@gnu.org>
|
||||||
|
|
||||||
|
* config/tc-mips.c (md_estimate_size_before_relax): Make sure
|
||||||
|
we treat weak like extern only for ELF.
|
||||||
|
(mips_fix_adjustable): Make sure we don't adjust extern/weak
|
||||||
|
symbols only for ELF.
|
||||||
|
|
||||||
2001-07-25 Chris Demetriou <cgd@broadcom.com>
|
2001-07-25 Chris Demetriou <cgd@broadcom.com>
|
||||||
|
|
||||||
* config/tc-mips.c: Fix spelling error in comment.
|
* config/tc-mips.c: Fix spelling error in comment.
|
||||||
|
|
|
@ -11123,7 +11123,8 @@ md_estimate_size_before_relax (fragp, segtype)
|
||||||
&& !linkonce
|
&& !linkonce
|
||||||
#ifdef OBJ_ELF
|
#ifdef OBJ_ELF
|
||||||
/* A global or weak symbol is treated as external. */
|
/* A global or weak symbol is treated as external. */
|
||||||
&& ! (S_IS_EXTERN (sym) || S_IS_WEAK (sym))
|
&& (OUTPUT_FLAVOR == bfd_target_elf_flavour
|
||||||
|
&& ! (S_IS_EXTERN (sym) || S_IS_WEAK (sym)))
|
||||||
#endif
|
#endif
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -11163,7 +11164,8 @@ mips_fix_adjustable (fixp)
|
||||||
{
|
{
|
||||||
#ifdef OBJ_ELF
|
#ifdef OBJ_ELF
|
||||||
/* Prevent all adjustments to global symbols. */
|
/* Prevent all adjustments to global symbols. */
|
||||||
if (S_IS_EXTERN (fixp->fx_addsy) || S_IS_WEAK (fixp->fx_addsy))
|
if (OUTPUT_FLAVOR == bfd_target_elf_flavour
|
||||||
|
&& (S_IS_EXTERN (fixp->fx_addsy) || S_IS_WEAK (fixp->fx_addsy)))
|
||||||
return 0;
|
return 0;
|
||||||
#endif
|
#endif
|
||||||
if (fixp->fx_r_type == BFD_RELOC_MIPS16_JMP)
|
if (fixp->fx_r_type == BFD_RELOC_MIPS16_JMP)
|
||||||
|
|
Loading…
Reference in a new issue