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: Daniel Jacobowitz <drow at false dot org>
- To: binutils at sources dot redhat dot com
- Date: Sun, 1 May 2005 12:17:11 -0400
- Subject: Re: MIPS, strip --only-keep-debug & an infinite loop
- References: <Pine.LNX.4.61L.0504291249500.32392@blysk.ds.pg.gda.pl> <20050429121900.GD1621@hattusa.textio> <Pine.LNX.4.61L.0504291326090.32392@blysk.ds.pg.gda.pl> <20050429130154.GE1621@hattusa.textio> <20050429130646.GA19824@nevyn.them.org> <Pine.LNX.4.61L.0504291413340.32392@blysk.ds.pg.gda.pl> <20050429135107.GA21441@nevyn.them.org> <Pine.LNX.4.61L.0504291458240.32392@blysk.ds.pg.gda.pl> <20050501015039.GA15395@nevyn.them.org> <Pine.LNX.4.61L.0505011703230.15046@blysk.ds.pg.gda.pl>
On Sun, May 01, 2005 at 05:16:09PM +0100, Maciej W. Rozycki wrote:
> On Sat, 30 Apr 2005, Daniel Jacobowitz 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... I'm not completely sure, but your explanation is definitely
> > plausible. But BFD does a lot of things based on section name. Will
> > it actually help if the section is SHT_NOBITS, if its name is still
> > .MIPS.options?
>
> For MIPS/ELF the only place that seems to depend on names rather than the
> type is _bfd_mips_elf_fake_sections(). I can check how such a change
> would affect it. As a last resort, given it's already considered a hack,
> another one could perhaps be added on top of it making these special
> sections lose their special type if SHT_NOBITS is already set and having
> no contents is unexpected and makes such a section useless.
Either answer sounds reasonable to me :-)
--
Daniel Jacobowitz
CodeSourcery, LLC