This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: MIPS, strip --only-keep-debug & an infinite loop
- From: "Maciej W. Rozycki" <macro at linux-mips dot org>
- To: Mark Kettenis <mark dot kettenis at xs4all dot nl>
- Cc: drow at false dot org, binutils at sources dot redhat dot com
- Date: Wed, 18 May 2005 11:58:52 +0100 (BST)
- Subject: Re: MIPS, strip --only-keep-debug & an infinite loop
- References: <200504282014.j3SKEO8G001654@elgar.sibelius.xs4all.nl><Pine.LNX.4.61L.0504291249500.32392 at blysk.ds.pg.gda.pl><20050429121900.GD1621@hattusa.textio> <Pine.LNX.4.61L.0504291326090.32392@blysk.ds.pg.gda.pl><20050429130154.GE1621@hattusa.textio> <20050429130646.GA19824@nevyn.them.org><Pine.LNX.4.61L.0504291413340.32392@blysk.ds.pg.gda.pl><20050429135107.GA21441@nevyn.them.org> <Pine.LNX.4.61L.0504291458240.32392@blysk.ds.pg.gda.pl><200505172255.j4HMtc5J008824@elgar.sibelius.xs4all.nl>
On Wed, 18 May 2005, Mark Kettenis wrote:
> That makes sense. And with readelf I can see the problem now --
> ".MIPS.options" is left marked as SHT_MIPS_OPTIONS as opposed to
> SHT_NOBITS. Since that section no longer contains anything relevant, it
> should be considered a bug.
>
> Hmm, this seems to have fallen between the cracks. Anyway, here is a
> patch that seems to work for me. It seems to fix objcopy/strip
> --only-keep-debug and avoids the infinite loop. However, I do think
> the SEC_HAS_CONTENTS check should probably be applied to other faked
> sections too.
It hasn't really fallen -- it's just my lack of time, sigh... Thanks for
looking into it -- I'll see if I can test it before 2.16.1.
Maciej