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?