Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
A surprising fact about ldd (joshmcguigan.com)
1 point by JoshMcguigan on July 6, 2023 | hide | past | favorite | 1 comment


I was using ldd to investigate how nix handles dynamic linking and I was seeing some output I didn't understand. Others were asking about this on stackoverflow[0] but I wasn't able to find any explanation. After a little digging I realized what I was missing: ldd doesn't run the dynamic linker requested by the program (in its elf headers), rather it uses the "standard" dynamic linker in your environment.

[0]: https://stackoverflow.com/questions/34428037/how-to-interpre...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: