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 Fri, Apr 29, 2005 at 03:01:55PM +0200, Thiemo Seufer wrote:
> 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.

objcopy --only-keep-debug does the same thing to _every_ non-debug
section.  Take a look at the resulting files.

> > > 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?)

I would not expect --keep-debug to remove non-debug sections, unlike
--only-keep-debug :-)

-- 
Daniel Jacobowitz
CodeSourcery, LLC


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