Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

When I run ldd to get a list of the library dependencies for a uClibc binary, ldd segfaults! What should I do?

0
Posted

When I run ldd to get a list of the library dependencies for a uClibc binary, ldd segfaults! What should I do?

0

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 is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123