Re: Decstation /150 kernel (cvs) problems

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

PGP signature


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux