This is the mail archive of the
mailing list for the binutils project.
Re: MIPS, strip --only-keep-debug & an infinite loop
Maciej W. Rozycki wrote:
> On Fri, 29 Apr 2005, Thiemo Seufer wrote:
> > > Hmm, it looks like a problem with "strip" in the first place --
> > > ".MIPS.options" isn't meant to be touched by that tool.
> > Well, for --only-keep-debug it should remove .MIPS.options.
> The spec says the section is never to be stripped; it has that
> SHF_MIPS_NOSTRIP flag set for this purpose. Given the section is meant to
> be used by run-time ELF loaders (both for static and dynamic binaries),
> that's quite a reasonable expectation. Are there other (IRIX?)
> implementations that disagree with the spec in this respect?
No, for the ELF loader that's correct. I misunderstood the semantics
of --only-keep-debug. (Why isn't it just called --keep-debug?)