From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ruediger Helsch To: Richard Stallman Cc: wilson@cygnus.com, ian@cygnus.com, drepper@cygnus.com, dm@sgi.com, gcc2@cygnus.com, gas2@cygnus.com Subject: Re: global vars and symbol visibility for mips32/elf Date: Wed, 14 Aug 1996 03:06:00 -0000 Message-id: References: <199608140402.AAA26654@psilocin.gnu.ai.mit.edu> X-SW-Source: 1996/msg00099.html On Wed, 14 Aug 1996, Richard Stallman wrote: > #include > int optind[30000], optarg[30000]; > ... > > > If the problem here is that a definition from the library overrides > these implicit definitions, it can be fixed in ld. In the old days, > ld on a.out files got this right. It needs to use the maximum size > specified by any definition. To my best knowledge it never did, as optind is normally initialized (e.g. to 1) and not a common but a data definition, so that all commons with this name are resolved against the definition in the library. Ruediger Helsch