3 ms·
Anyone able to expand on: "The dynamic linker accepts the --preload argument to preload shared objects, in addition to the LD_PRELOAD environment variable."?
by e12e 7y ago
Anyone able to expand on:
"The dynamic linker accepts the --preload argument to preload shared
objects, in addition to the LD_PRELOAD environment variable."?
Does one ever invoke the dynamic linker directly? Why? How?
- gdamjan1 7y agoyes, you can. the linker loader is the default executable for all ELF binaries
- iso-8859-1 7y ago$ /lib64/ld-linux-x86-64.so.2 /bin/true --version true (GNU coreutils) 8.28 [...] If you run it without arguments it will tell you usage.
- e12e 7y agoAh, yes of course. I actually do this often to look for missing runtime dependencies. I hadn't thought about preload in that context - or ldd as a way to run executables "by hand".
- yrro 7y agoIIRC it lets you get around the noexec flag on a mount.