[Bug ld/5789] Linker doesn't check weak and hidden symbols

2008-02-23 Thread hjl dot tools at gmail dot com
--- 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 --

[Bug ld/5789] Linker doesn't check weak and hidden symbols

2008-02-23 Thread pluto at agmk dot net
-- What|Removed |Added CC||pluto at agmk dot net http://sourceware.org/bugzilla/show_bug.cgi?id=5789 --- You are receiving this mail

[Bug ld/5789] New: Linker doesn't check weak and hidden symbols

2008-02-23 Thread hjl dot tools at gmail dot com
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