This is the mail archive of the mailing list for the gas2 project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: global vars and symbol visibility for mips32/elf

On Wed, 14 Aug 1996, Richard Stallman wrote:

> 	    #include <assert.h>
> 	    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

Ruediger Helsch <>