Discussion about this post

User's avatar
Tushar Desai's avatar

I've a linux/ubuntu (24.04) executable that links to libpthread.so. But, ldd does not list libpthread. However, the program runs and calls pthread functions without any issues. My questions ...

1. Why doesn't ldd list libpthread? What possible reasons?

2. When a program starts, is there a way to display the all shared objects it was able to link to as well as those it wasn't?

Expand full comment
HexDecOctBin's avatar

To ship a binary on Linux, the traditional wisdom has been be compile with a Glibc as old as possible? Can this trick be used to ship a binary with a Glibc as _new_ as possible? As long as all the symbol versions needed by various other components on the system are present in the shipped Glibc, everything should run fine, correct?

Expand full comment
2 more comments...

No posts