From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Khem Raj <raj.khem@gmail.com>
Cc: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>,
openembedded-core@lists.openembedded.org
Subject: Re: [PATCH] libgcc: Mark libgcc_s as executable to ensure its stripped
Date: Tue, 05 Mar 2013 13:33:46 +0000 [thread overview]
Message-ID: <1362490426.29587.94.camel@ted> (raw)
In-Reply-To: <CAMKF1sqdJCLdnpr4WrWzQ44yUrpe+bxtjrm+oZrm0H0NxeXhOw@mail.gmail.com>
On Mon, 2013-03-04 at 12:06 -0800, Khem Raj wrote:
> On Sun, Mar 3, 2013 at 9:04 AM, Richard Purdie
> <richard.purdie@linuxfoundation.org> wrote:
> > libgcc_s is not marked as executable and hence it doesn't get stripped. This
> > means its about 1MB larger than it needs to be. There is no good reason it
> > shouldn't get stripped so ensure it does and mark as executable.
> >
> > Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
> > ---
> > diff --git a/meta/recipes-devtools/gcc/libgcc_4.7.bb b/meta/recipes-devtools/gcc/libgcc_4.7.bb
> > index 47669a2..6a0931f 100644
> > --- a/meta/recipes-devtools/gcc/libgcc_4.7.bb
> > +++ b/meta/recipes-devtools/gcc/libgcc_4.7.bb
> > @@ -57,6 +57,9 @@ do_install () {
> > # install the runtime in /usr/lib/ not in /usr/lib/gcc on target
> > # so that cross-gcc can find it in the sysroot
> >
> > + # Ensure libs are executable else they aren't stripped
> > + chmod a+x ${D}/${base_libdir}/*
> > +
>
> hmmm, while this solves the issue I think better fix would for
> stripper to know that its a shared object
> and can be stripped. Marking libraries with exe (except ld.so which
> can execute on its own) seems not
> right to me.
Agreed, I've pushed something which addresses the root cause in
package.bbclass.
Cheers,
Richard
next prev parent reply other threads:[~2013-03-05 13:50 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-22 20:15 libgcc_s.so not stripped Enrico Scholz
2012-08-22 20:25 ` Khem Raj
2013-03-03 17:04 ` [PATCH] libgcc: Mark libgcc_s as executable to ensure its stripped Richard Purdie
2013-03-04 20:06 ` Khem Raj
2013-03-05 13:33 ` Richard Purdie [this message]
2013-03-03 17:08 ` libgcc_s.so not stripped Richard Purdie
2013-03-04 20:03 ` Khem Raj
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=1362490426.29587.94.camel@ted \
--to=richard.purdie@linuxfoundation.org \
--cc=enrico.scholz@sigma-chemnitz.de \
--cc=openembedded-core@lists.openembedded.org \
--cc=raj.khem@gmail.com \
/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