From: Alan Modra Date: Thu, 11 May 2000 01:48:09 +0000 (+0000) Subject: (md_estimate_size_before_relax): Use the external version of X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=426b0403963b328d6ccd7abc93f87a9c38f3e718;p=binutils-gdb.git (md_estimate_size_before_relax): Use the external version of the relocation for weak symbols. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index fbaadc00154..698b7a0b05d 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2000-05-11 Ulf Carlsson + + * config/tc-mips.c (md_estimate_size_before_relax): Use the + external version of the relocation for weak symbols. + 2000-05-08 David Mosberger * config/tc-ia64.c (output_P7_format, case mem_stack_f): Output fixed diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c index bb7e22756ec..155dfe24284 100644 --- a/gas/config/tc-mips.c +++ b/gas/config/tc-mips.c @@ -11021,7 +11021,12 @@ md_estimate_size_before_relax (fragp, segtype) /* This must duplicate the test in adjust_reloc_syms. */ change = (symsec != &bfd_und_section && symsec != &bfd_abs_section - && ! bfd_is_com_section (symsec)); + && ! bfd_is_com_section (symsec) +#ifdef OBJ_ELF + /* A weak symbol is treated as external. */ + && ! S_IS_WEAK (sym) +#endif + ); } else abort ();