MIPS, strip --only-keep-debug & an infinite loop
Daniel Jacobowitz
drow@false.org
Fri Apr 29 13:51:00 GMT 2005
More information about the Binutils mailing list
Fri Apr 29 13:51:00 GMT 2005
- Previous message (by thread): MIPS, strip --only-keep-debug & an infinite loop
- Next message (by thread): MIPS, strip --only-keep-debug & an infinite loop
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message (by thread): MIPS, strip --only-keep-debug & an infinite loop
- Next message (by thread): MIPS, strip --only-keep-debug & an infinite loop
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Binutils mailing list