[Buildroot] [git commit] Makefile: respect strip exclusions for special libraries

Thomas Petazzoni thomas.petazzoni at bootlin.com
Mon Feb 4 20:06:27 UTC 2019


On Mon, 4 Feb 2019 12:58:08 -0600
Matthew Weber <matthew.weber at collins.com> wrote:

> > +# Special stripping (only debugging symbols) for libpthread and ld-*.so.
> > +STRIP_FIND_SPECIAL_LIBS_CMD = \
> > +       $(STRIP_FIND_COMMON_CMD) \
> > +       \( -name 'ld-*.so*' -o -name 'libpthread*.so*' \) \  
> 
> The answer to you question about needing to strip libpthread for only
> glibc is true.  I did poke around a bit and checked if libthread_db
> needed symbols and verified it can be stripped.  Do you think a noted
> should be added to state the libpthread stripping detail?

So basically thread debugging on musl/uclibc works even if libc.so is
stripped ?

In any case, thanks for you investigation on this. I'm not sure adding
a note here is really useful: uclibc/musl simply don't have any
libpthread, and it's OK to not do anything special for uclibc/musl here.

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com



More information about the buildroot mailing list