From: Chris Demetriou Date: Fri, 15 Feb 2002 23:00:34 +0000 (+0000) Subject: 2002-02-15 Chris Demetriou X-Git-Tag: gdb_5_2-2002-03-03-branchpoint~235 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9151e8bfc2868e79ece4dc94de224e1771278280;p=external%2Fbinutils.git 2002-02-15 Chris Demetriou * 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.) --- diff --git a/gas/ChangeLog b/gas/ChangeLog index debeb84..24bf8c0 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,9 @@ +2002-02-15 Chris Demetriou + + * 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 * doc/as.texinfo: Add duplicate directory entry so that "info gas" diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c index ec0bf25..095c466 100644 --- a/gas/config/tc-mips.c +++ b/gas/config/tc-mips.c @@ -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 ); }