global vars and symbol visibility for mips32/elf

Ruediger Helsch rh@unifix.de
Tue Aug 13 09:06:00 GMT 1996


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 <rh@unifix.de>




More information about the Gas2 mailing list