From: Richard Purdie <rpurdie@rpsys.net>
To: openembedded-devel <openembedded-devel@openembedded.org>
Subject: libgcc not being pulled into OABI images
Date: Sun, 30 Mar 2008 22:19:41 +0100 [thread overview]
Message-ID: <1206911981.4838.12.camel@dax.rpnet.com> (raw)
Hi,
Various people had reported problems with libgcc not being pulled into
OABI images after some of the recent changes. Basically libgcc isn't
being listed as NEEDED (in objdump -p) when it used to be.
I did some tests comparing a good build with a bad build and it looked
like there was some problem with the crtbegin.o and crtbeginS.o files in
the cross directory. Swapping those two files over makes the difference
between libgcc appearing in NEEDED and not appearing.
These come from gcc-cross and the difference in compile options which
seems to trigger the problem is the -Dinhibit_libc flag. This is set in
the Makefile by the inhibit_libc option. Dependencies work as expected
if its true and break if its false.
That variable is set from gcc/configure with:
# If this is a cross-compiler that does not
# have its own set of headers then define
# inhibit_libc
# If this is using newlib, without having the headers available now,
# then define inhibit_libc in LIBGCC2_CFLAGS.
# This prevents libgcc2 from containing any code which requires libc
# support.
inhibit_libc=false
if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
test x$with_newlib = xyes ; } &&
{ test "x$with_headers" = x || test "x$with_headers" = xno ; } ;
then
inhibit_libc=true
fi
and in the recent gcc changes we've messed around with a number of these
options so this is likely to be the reason for the change.
I suspect in EABI builds something else causes libgcc to be pulled in
since inhibit_libc=false for these too yet they don't break.
So no, I don't have a fix as such and someone needs to look into this
further but at least we have a clue to the problem.
The bug reports were pthread related and it could be that specific
library has a problem which this other change was masking until now...
Cheers,
Richard
next reply other threads:[~2008-03-30 21:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-30 21:19 Richard Purdie [this message]
2008-03-30 23:40 ` libgcc not being pulled into OABI images Thomas Kunze
2008-04-02 6:17 ` Khem Raj
2008-04-03 12:26 ` Rolf Leggewie
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1206911981.4838.12.camel@dax.rpnet.com \
--to=rpurdie@rpsys.net \
--cc=openembedded-devel@lists.openembedded.org \
--cc=openembedded-devel@openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox