From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ruediger Helsch To: dm@sgi.com Cc: gcc2@cygnus.com, gas2@cygnus.com Subject: Re: global vars and symbol visibility for mips32/elf Date: Tue, 13 Aug 1996 09:06:00 -0000 Message-id: References: <199608090946.CAA27226@neteng.engr.sgi.com> X-SW-Source: 1996/msg00085.html 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