News for hackers. Stuff that matters.
Re:Never run ldd on unknown executables by duped on Monday July 24, 2023 @06:43AM (#36845700)
> If the dynamic linker is part of the OS, then surely the OS should already know where it is?

It's both part of the OS and the language's compiler tool chain the program was written in. For the vast majority of Linux executables that's glibc and the ld-linux.so that glibc ships.

And you don't need to hard code the path inside your executable. Static PIE objects for example are dynamic elf objects without an interpreter header. The system loader is capable of launching them just fine.

There are no comments on this comment yet.