3 ms·
ld isn't the dynamic linker either, it's the object linker. the name of the dynamic linker is ld.so or ld-linux.so. this is also documented in the ldd man page.
by Hello71 5y ago
ld isn't the dynamic linker either, it's the object linker. the name of the dynamic linker is ld.so or ld-linux.so. this is also documented in the ldd man page.
- eqvinox 5y agoFun fact: despite the library path and name, ld-linux.so is executable. Try running /lib64/ld-linux-x86-64.so.2 On your favorite Linux box. (Adjust path if needed for different architecture / distro.)
- cataphract 5y agoIn fact, /lib64/ld-linux-x86-64.so.2 is set as the interpreter of the dynamic executables, so executing ./dyn_exec ends up being equivalent to /lib64/ld-linux-x86-64.so.2 ./dyn_exec. The explicit form is sometimes useful, for instace if you want to execute the file with an interpreter other than the one specified in the executable, or if you want to pass one of the parameters that ld.so accepts.
- rkeene2 5y agoIt's also useful if you accidentally chmod -x chmod...