When I run ldd to get a list of the library dependencies for a uClibc binary, ldd segfaults! What should I do?
Use the ldd that is built by uClibc, not your system’s one. You can build uClibc’d ldd for your host system by going into the uClibc/utils/ directory in the uClibc source and running ‘make ldd.host’. When your system’s ldd looks for library dependencies, it actually _runs_ that program. This works fine — usually. It generally will not work at all when you have been cross compiling (which is why ldd segfaults). The ldd program created by uClibc is cross platform and doesn’t mind at all if it cannot execute the target program. If you use the uClibc version of ‘ldd’, it will do the right thing and produce correct results, even when it is used on cross compiled binaries.
Related Questions
- What user profile are threshold commands run under and how is it determined where the threshold command is run from (i.e., library list, etc.)?
- When I run ldd to get a list of the library dependencies for a uClibc binary, ldd segfaults! What should I do?
- Is there a list of magazines and journals that the Bethel University Library owns?