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 Fri, 9 Aug 1996, David S. Miller wrote:

> The problem is caused by the symbol 'glob'.  GNU libc also has a
> symbol glob.  The assembly output by gcc for the glob variable in the
> 960218-1.c test case looks like:

This is a combination of several bugs:

1) ANSI C compilers do not know COMMON, they should generate a data
   definition for glob (ISO/IEC 9899:1990 6.7.2).  Gcc generates a
   COMMON even with -ansi (there is a comment in the code indicating
   this standard violation is on purpose).

2) The linker should not link a common against a function from the
   shared library.

Both bugs are since nearly one year fixed in Unifix Linux and Linux-FT
(POSIX certified).

Ruediger Helsch <>