[buildroot] $(STRIP) --strip-unneeded on a SHARED library...WHY?

Mike Frysinger vapier at gentoo.org
Tue Dec 6 20:10:50 UTC 2005


On Tue, Dec 06, 2005 at 08:29:29PM +0100, Robin Farine wrote:
> On Tuesday December 6 2005 19:48, John Z. Bohach wrote:
> 
> > I guess its possible that somehow the --strip-unneeded option to
> > strip is broken under buildroot, but it doesn't seem likely.  I
> > run:
> >
> >  $ nm libdb-4.3.so
> >
> > and get:
> >
> > nm: libdb-4.3.so: no symbols
> >
> 
> What matters for linking against an ELF shared library are the 
> ".dynsym" and ".dynstr" sections which are *not* stripped, whatever 
> the option strip is passed, or it means that there is a huge bug in 
> your binutils. Use "nm -D libdb-4.3.so" instead.

indeed

personally i use `readelf -s libdb-4.3.so` myself
-mike



More information about the busybox mailing list