linux-mips
[Top] [All Lists]

Re: [RFC] Add __initbss section

To: Ralf Baechle <ralf@linux-mips.org>
Subject: Re: [RFC] Add __initbss section
From: "Maciej W. Rozycki" <macro@linux-mips.org>
Date: Thu, 11 Oct 2007 18:07:41 +0100 (BST)
Cc: Thiemo Seufer <ths@networkno.de>, Franck Bui-Huu <vagabon.xyz@gmail.com>, Geert Uytterhoeven <geert@linux-m68k.org>, linux-mips <linux-mips@linux-mips.org>
In-reply-to: <20071011162554.GC12782@linux-mips.org>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <470DF25E.60009@gmail.com> <20071011152615.GE3379@networkno.de> <Pine.LNX.4.64N.0710111707010.16370@blysk.ds.pg.gda.pl> <20071011162554.GC12782@linux-mips.org>
Sender: linux-mips-bounce@linux-mips.org
On Thu, 11 Oct 2007, Ralf Baechle wrote:

> That would be quite unexpected.  Binutils has severe issues when used
> with multiple binary formats.  For the general case fixing and maintaining
> that would be of almost nightmarish complexity so years ago I settled for
> elf2ecoff and I guess that step also made binutils maintainers alot
> happier ;-)

 I have now recalled what the issue is -- `objcopy' is keen to copy the 
file header as well as possible and that includes MIPS-III annotation 
which makes the firmware of R4k-based DECstations unhappy.  They all 
expect MIPS-I binaries.  It's not binutils's fault I am afraid.

> With ELF dumb more generic protocols like TFTP work great.  Shows what
> a great format ELF is ;-)

 Yeah, sure...  Until you discover your ELF parser in the firmware does 
not do this and that and also crashes on yet something else (since when 
has CFE supported ELF64, then?).  You cannot escape such bugs as one with 
ECOFF above for example.  And if your firmware is a binary blob in a 
classic PROM, then you are bust.

 At least an <address,size> pair is dumb enough it is hard to get it wrong 
and `mopd' may be modified however you like to get what you need; the 
daemon itself is not interested in the gory details of the binary being 
sent, so it will accept about anything remotely conforming to the ELF 
format anyway. :-)

  Maciej

<Prev in Thread] Current Thread [Next in Thread>