linux-mips
[Top] [All Lists]

Re: Decstation /150 kernel (cvs) problems

To: Florian Lohoff <flo@rfc822.org>
Subject: Re: Decstation /150 kernel (cvs) problems
From: "Maciej W. Rozycki" <macro@ds2.pg.gda.pl>
Date: Tue, 27 Nov 2001 18:23:11 +0100 (MET)
Cc: "Houten K.H.C. van (Karel)" <vhouten@kpn.com>, linux-mips@oss.sgi.com, karel@sparta.research.kpn.com, algernon@debian.org
In-reply-to: <20011127163602.C9282@paradigm.rfc822.org>
Organization: Technical University of Gdansk
Sender: owner-linux-mips@oss.sgi.com
On Tue, 27 Nov 2001, Florian Lohoff wrote:

> >  It's not the same, sorry -- for sections you would need to handle ones
> > marked ALLOC in flags.  Of these you need to load ones of type PROGBITS
> > and zero-fill ones of type NOBITS.  Others may be discarded.  For Linux
> > you may actually skip NOBITS as well, as the head code zero-fills common
> > sections itself, but handling them is saner IMO. 
> 
> This is mostly what i do - As the ext2 code loads in the whole file
> as a chunk i am loading it after the booloader - Then copy it to the
> end of the first 8Megs (Which is the minimum memory on a decstation)
> and then copy the chunks marked PROGBITS to their final location.

 That's ugly -- isn't there a possibility to read a file on a
block-by-block basis?

> > But it's not marked as allocatable, so it does not belong to the run-time
> > image.  See also the "System V Application Binary Interface, Edition 4.1",
> > chapter 4 for sections and 5 for segments. 
> 
> ;) I am no elf god by far - I was just in the need of a bootloader so
> i looked in the elf headers and collected the bits i thought were
> usefull.

 Neither am I, but come on -- the ELF format is next to trivial to handle
and the spec is just a few pages -- the relevant part of chapter 5 fits in
three pages. 

-- 
+  Maciej W. Rozycki, Technical University of Gdansk, Poland   +
+--------------------------------------------------------------+
+        e-mail: macro@ds2.pg.gda.pl, PGP key available        +


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