This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]