News for hackers. Stuff that matters.
Re:Never run ldd on unknown executables by a1o on Sunday July 23, 2023 @05:57PM (#36840284)
Is the mentioned issue in the article still true today?
Re:Never run ldd on unknown executables by eqvinox on Sunday July 23, 2023 @07:20PM (#36841029)
Yes. So is the (IMHO) best workaround of using lddtree (pax-utils) instead. Available on pretty much all distros, though probably not installed by default.
Re:Never run ldd on unknown executables by anthk on Sunday July 23, 2023 @09:26PM (#36841959)
objdump -x /path/to/bin | grep NEEDED
Re:Never run ldd on unknown executables by eqvinox on Sunday July 23, 2023 @10:12PM (#36842297)
Doesn't tell you if/where the library is found on your system.
Re:Never run ldd on unknown executables by janAkali on Monday July 24, 2023 @08:14AM (#36846665)
for i in $(objdump -p /path/to/bin | grep NEEDED | awk '{print $2}'); do ldconfig -p | awk -v var="$i" '$1==var{print $0}'; done
Re:Never run ldd on unknown executables by eqvinox on Monday July 24, 2023 @12:36PM (#36850669)
Cool, but I think I'll stick to lddtree ;)

(… it also recurses down on the dependencies, presumably you can extend your shell script to do that too but at some point why not just use the existing tools?)

Re:Never run ldd on unknown executables by mid-kid on Sunday July 23, 2023 @08:44PM (#36841645)
Not in glibc at least[1], and I reckon many other implementations don't have this problem either.

[1]: https://manpages.debian.org/bookworm/manpages/ldd.1.en.html#...