Re: Host strip corrupts cross-built binaries

2010-09-30 Thread Mark Mitchell
On 9/30/2010 4:31 AM, Loïc Minier wrote: > On Wed, Sep 29, 2010, Mark Mitchell wrote: >> It is theoretically possible that there's insufficient information for >> strip to know what it's looking at, but I'd be very surprised; there >> should be an ELF header field that indicates the machine type. >

Re: Host strip corrupts cross-built binaries

2010-09-30 Thread Loïc Minier
On Wed, Sep 29, 2010, Mark Mitchell wrote: > It is theoretically possible that there's insufficient information for > strip to know what it's looking at, but I'd be very surprised; there > should be an ELF header field that indicates the machine type. And I guess if there's not, it's also a binut

Re: Host strip corrupts cross-built binaries

2010-09-29 Thread Steve Langasek
On Thu, Sep 30, 2010 at 08:29:52AM +1300, Michael Hope wrote: > On Thu, Sep 30, 2010 at 4:14 AM, Loïc Minier wrote: > > On Wed, Sep 22, 2010, Loïc Minier wrote: > >>  https://bugs.launchpad.net/ubuntu/+source/binutils/+bug/615765 > >  This is important to the Foundation team; would someone have t

Re: Host strip corrupts cross-built binaries

2010-09-29 Thread Michael Hope
OK, we'll pick it up. -- Michael On Thu, Sep 30, 2010 at 9:41 AM, Steve Langasek wrote: > On Thu, Sep 30, 2010 at 08:29:52AM +1300, Michael Hope wrote: >> On Thu, Sep 30, 2010 at 4:14 AM, Loïc Minier wrote: >> > On Wed, Sep 22, 2010, Loïc Minier wrote: >> >>  https://bugs.launchpad.net/ubuntu/+

Re: Host strip corrupts cross-built binaries

2010-09-29 Thread Michael Hope
On Thu, Sep 30, 2010 at 4:14 AM, Loïc Minier wrote: > On Wed, Sep 22, 2010, Loïc Minier wrote: >>  https://bugs.launchpad.net/ubuntu/+source/binutils/+bug/615765 > >  This is important to the Foundation team; would someone have time to >  look into this? I see this as being on Marcin's plate. Yo

Re: Host strip corrupts cross-built binaries

2010-09-29 Thread Mark Mitchell
On 9/29/2010 10:13 AM, Richard Earnshaw wrote: > I don't think it's necessarily a bug that a generic ELF strip program is > unable to strip all ARM ELF binary files. This is particularly true for > unlinked object files that can contain additional sections that refer to > the symbol section. I a

Re: Host strip corrupts cross-built binaries

2010-09-29 Thread Richard Earnshaw
On Wed, 2010-09-22 at 08:36 -0700, Mark Mitchell wrote: > On 9/22/2010 8:34 AM, Loïc Minier wrote: > > > Which component is to blame here? Are we looking at a binutils or a > > gcc bug for not being able to set or read enough data that the > > architecture mismatch isn't detected? What could

Re: Host strip corrupts cross-built binaries

2010-09-29 Thread Loïc Minier
On Wed, Sep 22, 2010, Loïc Minier wrote: > https://bugs.launchpad.net/ubuntu/+source/binutils/+bug/615765 This is important to the Foundation team; would someone have time to look into this? Thanks! -- Loïc Minier ___ linaro-toolchain mailing l

Re: Host strip corrupts cross-built binaries

2010-09-22 Thread Mark Mitchell
On 9/22/2010 8:34 AM, Loïc Minier wrote: > Which component is to blame here? Are we looking at a binutils or a > gcc bug for not being able to set or read enough data that the > architecture mismatch isn't detected? What could we do about it? This is definitely a binutils bug. -- Mark Mitc

Host strip corrupts cross-built binaries

2010-09-22 Thread Loïc Minier
Hi folks apparently some tool calls "strip" instead of "$triplet-strip" when cross-building; this is something we shall fix, but it is apparently corrupting the binaries in some cases: https://bugs.launchpad.net/ubuntu/+source/binutils/+bug/615765 It seems the ELF architecture isn't