From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Chris Larson <clarson@kergoth.com>
Cc: openembedded-core <openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH] bash: Add fix for cross compile issues
Date: Wed, 14 Nov 2012 14:14:54 +0000 [thread overview]
Message-ID: <1352902494.13332.8.camel@ted> (raw)
In-Reply-To: <CABcZAN=sRNMPhR=FAWKyObYZt1XVnyr6tjj1ceg9Tf0bw8pjPg@mail.gmail.com>
On Wed, 2012-11-14 at 07:08 -0700, Chris Larson wrote:
> On Wed, Nov 14, 2012 at 6:01 AM, Richard Purdie
> <richard.purdie@linuxfoundation.org> wrote:
> > The reason for this failure has to do with a particular set
> of
> > circumstances. A header in the bash source tree defines
> STRING() based
> > on HAVE_STRINGIZE. This define overwrites the unistd.h
> define of the
> > same macro. The unistd.h definitions of read() and open()
> wrap the
> > call to the real functions to implement FORTIFY_SOURCES, and
> those
> > wrappers use STRING() to do it. As a result, for any host
> that
> > defaults to -DFORTIFY_SOURCES, STRING() returns 'x'
> resulting in a
> > concatenation rather than an assembly level rename of the
> function
> > being called.
> >
> > If we add -DHAVE_STRINGIZE in the CROSS_COMPILE case, then
> STRING()
> > will be defined to something useful, and therefore the
> FORTIFY_SOURCES
> > wrappers don't get hosed.
> >
> > See
> http://git.yoctoproject.org/cgit/cgit.cgi/meta-mentor/commit/?id=da0ff91 for an alternative fix which may be more likely to be accepted upstream.
> >
>
> This is better, yes. Is there a reason this is in meta-mentor
> and not
> OE-Core? I'd really like to pull it into OE-Core...
>
> Nope, it's just in the pending upstream pile. I'll send a patch
> against oe-core to the list today if you'd like.
Please, I'd like to get that problem fixed.
Cheers,
Richard
next prev parent reply other threads:[~2012-11-14 14:29 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-13 13:59 [PATCH] bash: Add fix for cross compile issues Richard Purdie
2012-11-13 23:42 ` Chris Larson
2012-11-14 13:01 ` Richard Purdie
2012-11-14 14:08 ` Chris Larson
2012-11-14 14:14 ` Richard Purdie [this message]
2012-11-14 12:30 ` Martin Jansa
2012-11-14 13:24 ` Richard Purdie
2012-11-14 13:30 ` Richard Purdie
2012-11-14 19:45 ` Michael Halstead
2012-11-14 21:07 ` Michael Halstead
2012-11-15 10:52 ` Richard Purdie
2012-11-14 14:06 ` Martin Jansa
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=1352902494.13332.8.camel@ted \
--to=richard.purdie@linuxfoundation.org \
--cc=clarson@kergoth.com \
--cc=openembedded-core@lists.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