[lttng-dev] dlopen, gcc -l and LD_PRELOAD
Thibault, Daniel
Daniel.Thibault at drdc-rddc.gc.ca
Wed Mar 20 12:52:41 EDT 2013
-----Message d'origine-----
Message: 6
Date: Wed, 20 Mar 2013 12:38:59 -0400
> Meanwhile I've been playing with some very simple examples of .so use, and found that the behaviour of LD_PRELOAD is incompletely documented. For instance, if I run:
Take a look at "man 8 ld.so". It should answer most of the questions you have about the dynamic linker libraries lookup mechanism.
> The above should explain the trouble I've been having with lttng-ust's doc/examples/easy-ust and tests/demo.
Glad to see that you solved your issue!
------------------------------
That's what I meant by incompletely documented. The ld.so man pages don't mention rpath/runpath in the description, do not explain the LD_PRELOAD caveats, do not mention the nodeflib executable tag, and don't detail how the ld.so.conf inclusions are sorted. The online version (http://man7.org/linux/man-pages/man8/ld.so.8.html) is much better (though still lacking a bit) and certainly more up to date (February 2013 vs. Ubuntu's May 2007 version!).
Daniel U. Thibault
R & D pour la défense Canada - Valcartier (RDDC Valcartier) / Defence R&D Canada - Valcartier (DRDC Valcartier)
Cyber sécurité pour les missions essentielles (CME) / Mission Critical Cyber Security (MCCS)
Protection des systèmes et contremesures (PSC) / Systems Protection & Countermeasures (SPC)
2459 route de la Bravoure
Québec, QC G3J 1X5
CANADA
Vox : (418) 844-4000 x4245
Fax : (418) 844-4538
NAC : 918V QSDJ <http://www.travelgis.com/map.asp?addr=918V%20QSDJ>
Gouvernement du Canada / Government of Canada
<http://www.valcartier.drdc-rddc.gc.ca/>
More information about the lttng-dev
mailing list