--- Additional Comments From hjl dot tools at gmail dot com 2008-02-24
00:12 ---
Gcc bug is
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32219
A patch is posted at
http://sourceware.org/ml/binutils/2008-02/msg00239.html
--
http://sourceware.org/bugzilla/show_bug.cgi?id=5789
--
--
What|Removed |Added
CC||pluto at agmk dot net
http://sourceware.org/bugzilla/show_bug.cgi?id=5789
--- You are receiving this mail
bash-3.2$ cat x.c
extern void foo() __attribute__((weak,visibility("hidden")));
extern int puts( char const* );
int main()
{
foo ? foo() : puts( "foo == null, skipped." );
return 0;
}
bash-3.2$ /usr/gcc-4.4/bin/gcc -B./ -fPIC -g -c -o x.o x.c
bash-3.2$ ./ld -shared -o libx.so x.o