(md_estimate_size_before_relax): Use the external version of
authorAlan Modra <amodra@gmail.com>
Thu, 11 May 2000 01:48:09 +0000 (01:48 +0000)
committerAlan Modra <amodra@gmail.com>
Thu, 11 May 2000 01:48:09 +0000 (01:48 +0000)
the relocation for weak symbols.

gas/ChangeLog
gas/config/tc-mips.c

index fbaadc00154fad38ef26c0707998cbb0e09eb322..698b7a0b05db72f6050d8c06158d84a6ad653edb 100644 (file)
@@ -1,3 +1,8 @@
+2000-05-11  Ulf Carlsson  <ulfc@engr.sgi.com>
+
+       * config/tc-mips.c (md_estimate_size_before_relax): Use the
+       external version of the relocation for weak symbols.
+
 2000-05-08  David Mosberger  <davidm@hpl.hp.com>
 
        * config/tc-ia64.c (output_P7_format, case mem_stack_f): Output fixed
index bb7e22756ec33159b5ef9742b15036efe8a8f49a..155dfe2428400b430c2a0bd62c550be4d6b4f163 100644 (file)
@@ -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 ();
This page took 0.033491 seconds and 4 git commands to generate.