linux-mips
[Top] [All Lists]

Re: Decstation /150 kernel (cvs) problems

To: "Houten K.H.C. van (Karel)" <vhouten@kpn.com>
Subject: Re: Decstation /150 kernel (cvs) problems
From: Florian Lohoff <flo@rfc822.org>
Date: Tue, 27 Nov 2001 11:59:03 +0100
Cc: linux-mips@oss.sgi.com, karel@sparta.research.kpn.com, algernon@debian.org
In-reply-to: <20011127114849.D27987@paradigm.rfc822.org>
Organization: rfc822 - pure communication
References: <20011127025622.D28037@paradigm.rfc822.org> <200111270753.IAA24915@sparta.research.kpn.com> <20011127114849.D27987@paradigm.rfc822.org>
Sender: owner-linux-mips@oss.sgi.com
User-agent: Mutt/1.3.23i
On Tue, Nov 27, 2001 at 11:48:49AM +0100, Florian Lohoff wrote:
> *Urgs* I'am just having a look at it... It looks the elf segments have
> changed moved and its either overwriting itself or the prom.
> 

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

--- delo-0.7/loader/copyelf.c   Sat Oct 14 19:29:00 2000
+++ delo-0.7-flo/loader/copyelf.c       Tue Nov 27 11:51:29 2001
@@ -42,7 +42,7 @@
                        shdr->sh_offset, shdr->sh_size);
 #endif
 
-               if (shdr->sh_size <= 0) 
+               if (shdr->sh_size <= 0 || shdr->sh_addr == 0) 
                        continue;
 
                if (shdr->sh_type == SHT_PROGBITS) {

Flo
-- 
Florian Lohoff                  flo@rfc822.org             +49-5201-669912
Nine nineth on september the 9th              Welcome to the new billenium

Attachment: pgpYP6MaetlT_.pgp
Description: PGP signature

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