Date: Tue, 03 Sep 2002 14:41:22 -0700 From: Peter Wemm <peter@wemm.org> To: Matthew Dillon <dillon@apollo.backplane.com> Cc: John Baldwin <jhb@FreeBSD.ORG>, Thomas Moestl <tmoestl@gmx.net>, current@FreeBSD.ORG, des@FreeBSD.ORG, ticso@cicely5.cicely.de, Alexander Kabaev <ak03@gte.com>, ticso@cicely.de Subject: Re: alpha tinderbox failure - kernel is broken. Message-ID: <20020903214122.4F2822A893@canning.wemm.org> In-Reply-To: <200209032113.g83LDjOV063373@apollo.backplane.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Matthew Dillon wrote: > + /* Does the entry point belong to this segment? */ > + if (hdr->e_entry >= phdr[i].p_vaddr && > + hdr->e_entry < (phdr[i].p_vaddr + > + phdr[i].p_memsz)) { > + entry = (u_long)hdr->e_entry; > + text_size = seg_size; > + text_addr = seg_addr; > } else { > + data_size = seg_size; > + data_addr = seg_addr; > } I don't think we can do this (the last section), it is quite legal to have more than one non-text PT_LOAD segment. if the last one was very small, we'd end up with an artificially low 'data_size' which would make for interesting RLIMIT_DATA enforcement. Cheers, -Peter -- Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com "All of this is for nothing if we don't go to the stars" - JMS/B5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020903214122.4F2822A893>