[oe] [RFC] package.bbclass and aggressive library stripping

Khem Raj raj.khem at gmail.com
Fri Feb 26 19:11:05 UTC 2010


On (12/02/10 13:14), Denys Dmytriyenko wrote:
> On Fri, Feb 12, 2010 at 05:54:34PM +0100, Koen Kooi wrote:
> > On 12-02-10 16:47, Josh Mahonin wrote:
> > > Hi all,
> > > 
> > > I was attempting to use GDB on an OE build, but was given various
> > > warnings about threads being disabled.  I've traced the problem to
> > > package.bbclass stripping out necessary symbols in 'libpthread.so.0',
> > > referenced as section 6 in http://sourceware.org/gdb/wiki/FAQ
> > > 
> > > I'm admittedly using an out of date OE checkout, but the problem still
> > > appears to be present in trunk as well.  Is it better to create a
> > > special case in package.bbclass just for libpthread, or should a
> > > blacklist be created for other potentially affected libraries as well?
> > 
> > Installed the appropriate -dbg package works for me
> 
> In other words - all the debug symbols are in the corresponding -dbg packages. 
> The main packages are stripped to save space on the target - so there is no 
> real need to do separate release/debug builds.

libthread_db is special and should not be stripped. I am not sure if gdb is
able to read the symbols from separate debug file for this shared lib. 
similarily libpthread.so.1 should not be stripped of the symbol table.
I dont know if we strip out symbol tables too if we do then we should spare
these two libraries.

> 
> -- 
> Denys
> 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel




More information about the Openembedded-devel mailing list