From mboxrd@z Thu Jan 1 00:00:00 1970 From: "David S. Miller" To: dm@sgi.com Cc: gcc2@cygnus.com, gas2@cygnus.com Subject: Re: global vars and symbol visibility for mips32/elf Date: Fri, 09 Aug 1996 05:24:00 -0000 Message-id: <199608091224.FAA07966@neteng.engr.sgi.com> References: <199608090946.CAA27226@neteng.engr.sgi.com> X-SW-Source: 1996/msg00074.html Addendum, after further reasearch, the following patch to bfd/elflink.h "fixes" my problem. I say "fixes" because I am doubtful that my fix is correct. Would someone who is more knowledgable please comment on my change? --- elflink.h.~1~ Fri Aug 9 05:19:07 1996 +++ elflink.h Fri Aug 9 05:20:37 1996 @@ -685,7 +685,7 @@ if (h->root.type == bfd_link_hash_defined || h->root.type == bfd_link_hash_defweak || (h->root.type == bfd_link_hash_common - && bind == STB_WEAK)) + && (bind == STB_WEAK || bind == STB_GLOBAL))) { sec = bfd_und_section_ptr; definition = false;