Skip to contentSkip to conversation

package.bbclass and aggressive library stripping

RFC Josh Mahonin 4 participants 4 messages Feb 12, 2010 – Feb 26, 2010

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 11 lines · Josh Mahonin

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-----

#2 lore raw
Quoted 8 lines · Koen Kooi
Quoted 7 lines · Josh Mahonin

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

Quoted 6 lines
Quoted 4 lines

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.

Signature · 1 line
Denys
#3 lore raw
Quoted 14 lines · Denys Dmytriyenko
Quoted 13 lines · Koen Kooi
Quoted 11 lines · Josh Mahonin

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?

Quoted 5 lines
Quoted 1 line

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.

Quoted 8 lines
Signature · 7 lines
-- 
Denys

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel