How should ld.so handle hidden weak undefined symbol?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

How should ld.so handle hidden weak undefined symbol?

H.J. Lu-27
To support weak undefined symbol in PIE:

http://sources.redhat.com/bugzilla/show_bug.cgi?id=2218

I put weak undefined symbol in dynamic symbol table and mark it hidden.
But ld.so still tries to resolve it, which leads to crash on x86-64:

[hjl@gnu-13 x]$ tar xfj ../test.tar.bz2
[hjl@gnu-13 x]$ make
cp -af libbar.so libdummy.so
./exec
PASSED
./pie
make: *** [all] Segmentation fault
[hjl@gnu-13 x]$

Should ld.so resolve hidden weak undefined symbol?


H.J.

test.tar.bz2 (9K) Download Attachment