[oe] libgcc not being pulled into OABI images

Khem Raj raj.khem at gmail.com
Wed Apr 2 06:17:18 UTC 2008


On Sun, Mar 30, 2008 at 4:40 PM, Thomas Kunze <thommycheck at gmx.de> wrote:
> Hi,
>
>  I tested on my host machine (AMD64) and libgcc is not it NEEDED but is
>  installed anyway. So it seems to be no problem that libgcc is not in
>  needed. So I investigated libpthread and found out that it tries to
>  dlopen libgcc and fails if it can't. Our shlibs code can't detect this
>  so libgcc does not get pulled into image. So I suggest something like:
>
>  --- packages/glibc/glibc.inc    e9a2a880277298ca08e7f53a4e5c69127415a5ed
>  +++ packages/glibc/glibc.inc    3aa1e1a80cf9f0f899b5a79b857bfa5427f5d54e
>  @@ -7,6 +7,8 @@ DEPENDS = "${@['virtual/${TARGET_PREFIX}
>   DEPENDS = "${@['virtual/${TARGET_PREFIX}gcc-initial',
>  'virtual/${TARGET_PREFIX}gcc']['nptl' in '${GLIBC_ADDONS}']}
>  linux-libc-headers"
>   #this leads to circular deps, so lets not add it yet
>   #RDEPENDS_ldd += " bash"
>  +# nptl needs libgcc but dlopens it, so our shlibs code doesn't detect this
>  +RDEPENDS += "${@['','libgcc']['ntpl' in '${GLIBC_ADDONS}']}"
>   PROVIDES = "virtual/libc ${@['virtual/${TARGET_PREFIX}libc-for-gcc',
>  '']['nptl' in '${GLIBC_ADDONS}']}"
>   PROVIDES += "virtual/libintl virtual/libiconv"
>
>
>  Is it ok if I comit this (and bump PRs of all packages that use this file?)

nptl glibc dlopens libgcc (e.g. code using exceptions) so this fix
creating an explicit dependency looks ok to me.
it does not have it in DT_NEEDED section may be because it links with
-static-libgcc when build

>
>  Regards,
>  Thomas
>
>
>
>  _______________________________________________
>  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