* [RFC] package.bbclass and aggressive library stripping
@ 2010-02-12 15:47 Josh Mahonin
2010-02-12 16:54 ` Koen Kooi
0 siblings, 1 reply; 4+ messages in thread
From: Josh Mahonin @ 2010-02-12 15:47 UTC (permalink / raw)
To: openembedded-devel
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?
Regards,
Josh
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [RFC] package.bbclass and aggressive library stripping
2010-02-12 15:47 [RFC] package.bbclass and aggressive library stripping Josh Mahonin
@ 2010-02-12 16:54 ` Koen Kooi
2010-02-12 18:14 ` Denys Dmytriyenko
0 siblings, 1 reply; 4+ messages in thread
From: Koen Kooi @ 2010-02-12 16:54 UTC (permalink / raw)
To: openembedded-devel
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
iD8DBQFLdYfKMkyGM64RGpERAmYtAKC19axatS/rXey8T0dWJuCqaEMTvwCgpwjB
4obElqukiYX3iGloqdR0k5g=
=5icm
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [RFC] package.bbclass and aggressive library stripping
2010-02-12 16:54 ` Koen Kooi
@ 2010-02-12 18:14 ` Denys Dmytriyenko
2010-02-26 19:11 ` Khem Raj
0 siblings, 1 reply; 4+ messages in thread
From: Denys Dmytriyenko @ 2010-02-12 18:14 UTC (permalink / raw)
To: openembedded-devel
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.
--
Denys
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [RFC] package.bbclass and aggressive library stripping
2010-02-12 18:14 ` Denys Dmytriyenko
@ 2010-02-26 19:11 ` Khem Raj
0 siblings, 0 replies; 4+ messages in thread
From: Khem Raj @ 2010-02-26 19:11 UTC (permalink / raw)
To: openembedded-devel
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@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-02-26 19:15 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-12 15:47 [RFC] package.bbclass and aggressive library stripping Josh Mahonin
2010-02-12 16:54 ` Koen Kooi
2010-02-12 18:14 ` Denys Dmytriyenko
2010-02-26 19:11 ` Khem Raj
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.