In Linux, how can I completely disregard the contents of /etc/ld.so.cache?
Posted
by BillyBBone
on Stack Overflow
See other posts from Stack Overflow
or by BillyBBone
Published on 2010-06-17T18:48:57Z
Indexed on
2010/06/17
18:53 UTC
Read the original article
Hit count: 203
linux
|shared-libraries
Hi,
For the purposes of prototyping a new set of shared libraries in a development sandbox (to which I don't have root access), I'd like to know how to execute a binary while completely overriding the contents of /etc/ld.so.cache
, so that none of the system libraries get loaded.
How can this be done? I have looked at mechanisms like setting the LD_LIBRARY_PATH
environment variable or launching the program wrapped inside /lib/ld-linux.so
, but these methods all seem to supplement the loading of libraries from /etc/ld.so.cache
, but not override it completely.
Help?
© Stack Overflow or respective owner