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 13:07:09 +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: <20011127115903.E27987@paradigm.rfc822.org>
Organization: Technical University of Gdansk
Sender: owner-linux-mips@oss.sgi.com
On Tue, 27 Nov 2001, Florian Lohoff wrote:

> Ok - this fixes the problem by not only ignoring "length 0" sections but
> also sections with address 0 

 Huh?  You should be dealing with segments and not sections (as you are
loading and not linking the image) and then only LOADable ones.  I believe
there is no segment mapped at zero for the current kernel.  If a segment
has a null load address then it still have to be loaded -- you may
consider placing part of it away for the time being or just relocating the
loader.

$ mipsel-linux-objdump -p vmlinux-mips-2.4.14-20011123

vmlinux-mips-2.4.14-20011123:     file format elf32-tradlittlemips

Program Header:
0x70000000 off    0x0028e2e0 vaddr 0x802ce2e0 paddr 0x802ce2e0 align 2**2
         filesz 0x00000018 memsz 0x00000018 flags r--
    LOAD off    0x00001000 vaddr 0x80040000 paddr 0x80040000 align 2**12
         filesz 0x002744a8 memsz 0x002744a8 flags r-x
    LOAD off    0x00276000 vaddr 0x802b6000 paddr 0x802b6000 align 2**12
         filesz 0x0004c000 memsz 0x0006a890 flags rwx
private flags = 10000001: [no abi set] [mips2] [not 32bitmode]

There are only two LOADable segments, at 0x80040000 and at 0x802b6000.
None is at zero. ;-)

 If in doubt, just see how I'm loading ELF images in mopd.  Or ask me a
question. 

  Maciej

-- 
+  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>