[Top] [All Lists]

Re: [RFC] Add __initbss section

To: "Maciej W. Rozycki" <>
Subject: Re: [RFC] Add __initbss section
From: Thiemo Seufer <>
Date: Thu, 11 Oct 2007 17:39:24 +0100
Cc: Franck Bui-Huu <>, Ralf Baechle <>, Geert Uytterhoeven <>, linux-mips <>
In-reply-to: <>
Original-recipient: rfc822;
References: <> <> <>
User-agent: Mutt/1.5.16 (2007-06-11)
Maciej W. Rozycki wrote:
> On Thu, 11 Oct 2007, Thiemo Seufer wrote:
> > > Also not that with the current patchset applied, there are now 2
> > > segments that need to be loaded, hopefully it won't cause any issues
> > > with any bootloaders out there that would assume that an image has
> > > only one segment...
> > 
> > This breaks at least conversion to ECOFF as used on DECstations.
>  Indeed, thanks for pointing it out -- I use ELF over MOP and keep 
> forgetting about people preferring TFTP, sigh.  I wonder whether `objcopy' 
> might be doing a better job than `elf2ecoff' these days though.  It may be 
> worth checking...

The problem seems to be that (DECstation-firmware's view of) ECOFF can
only handle a single .text segment.

>  It all boils down to padding out what cannot be expressed in a less 
> capable format after all.  That's what I did in `mopd' for ELF support too 
> -- holes between segments are transmitted as zeroes.

AFAICS this won't work for interleaved .text / .data / .bss segments.


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