ld: how to force symbol resolution in shlibs on Linux
skaller
skaller@users.sourceforge.net
Sun Mar 5 01:40:00 GMT 2006
Hi, I have a problem trying to figure out if it even possible to force
linkage against shared libraries to resolve all 'user' symbols on Linux.
The option --[no-]allow-shlib-undefined controls this but seems useless
because it forces resolution of gcc compiler internal symbols related
to the GOT etc which must remain unresolved until runtime linkage.
Linkage on Cygwin and MinGW and with MS linkers does not exhibit
this behaviour, which is highly undesirable in most circumstances.
This makes it impossible to predict the failure of linkage on other
platforms when building on Linux .. and as a side effect delays
error detection on Linux until load time.
Surely ld supports forcing resolution of some symbols and not
others? In which case one can lay the blame on gcc for failing
to correctly annotate the symbols?
[Pls CC to me as I don't read this list]
--
John Skaller <skaller at users dot sourceforge dot net>
Async PL, Realtime software consultants
Checkout Felix: http://felix.sourceforge.net
More information about the Binutils
mailing list