2002-02-15 Chris Demetriou <cgd@broadcom.com>

* config/tc-mips.c (md_estimate_size_before_relax): Really
        make sure we treat weak like extern only for ELF.  (Fixes
        patch from 2001-07-25.)
This commit is contained in:
Chris Demetriou 2002-02-15 23:00:34 +00:00
parent c00812a2c8
commit 9151e8bfc2
2 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2002-02-15 Chris Demetriou <cgd@broadcom.com>
* config/tc-mips.c (md_estimate_size_before_relax): Really
make sure we treat weak like extern only for ELF. (Fixes
patch from 2001-07-25.)
2002-02-15 Ben Elliston <bje@redhat.com>
* doc/as.texinfo: Add duplicate directory entry so that "info gas"

View file

@ -12194,8 +12194,8 @@ md_estimate_size_before_relax (fragp, segtype)
&& !linkonce
#ifdef OBJ_ELF
/* A global or weak symbol is treated as external. */
&& (OUTPUT_FLAVOR == bfd_target_elf_flavour
&& ! (S_IS_EXTERN (sym) || S_IS_WEAK (sym)))
&& (OUTPUT_FLAVOR != bfd_target_elf_flavour
|| (! S_IS_EXTERN (sym) && ! S_IS_WEAK (sym)))
#endif
);
}