This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: MIPS, strip --only-keep-debug & an infinite loop
- From: "Maciej W. Rozycki" <macro at linux-mips dot org>
- To: Mark Kettenis <mark dot kettenis at xs4all dot nl>
- Cc: binutils at sourceware dot org
- Date: Fri, 29 Apr 2005 12:57:08 +0100 (BST)
- Subject: Re: MIPS, strip --only-keep-debug & an infinite loop
- References: <200504282014.j3SKEO8G001654@elgar.sibelius.xs4all.nl>
On Thu, 28 Apr 2005, Mark Kettenis wrote:
> This is all caused by the fact that `strip --only-keep-debug' doesn't
> really completely strip out the .MIPS.options section. Instead, it
> sets the on-disk size of the section to 0 and strips the data from the
> file. This makes BFD replace the contents with all zeroes when we try
> to read them, which in turn causes INTOPT.SIZE = 0 in the loop
> mentioned above.
Hmm, it looks like a problem with "strip" in the first place --
".MIPS.options" isn't meant to be touched by that tool.
Maciej