MIPS, strip --only-keep-debug & an infinite loop

Maciej W. Rozycki macro@linux-mips.org
Wed May 18 13:36:00 GMT 2005


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



More information about the Binutils mailing list