Undefined weak symbol bug
H. J. Lu
hjl@lucon.org
Tue Mar 25 21:53:00 GMT 2003
We don't handle undefined weak symbol with non-default visibility
right:
# make
cc -O -g -c main.c
cc -shared -o libfoo.so -O -g shared.c
cc -o foo -O -g main.o libfoo.so -Wl,-rpath,.
for f in foo; do echo "Running: $f"; ./$f; \
if [ $? != 0 ]; then echo Failed; fi; done
Running: foo
0x80496c4
0x80495b4
Failed
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bug.tar.gz
Type: application/x-gzip
Size: 624 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20030325/1af5f56b/attachment.bin>
More information about the Libc-alpha
mailing list