This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

ld: how to force symbol resolution in shlibs on Linux


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]