From owner-freebsd-current Tue Sep 3 14:41:28 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AFD3837B400; Tue, 3 Sep 2002 14:41:22 -0700 (PDT) Received: from canning.wemm.org (canning.wemm.org [192.203.228.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 703A743E6A; Tue, 3 Sep 2002 14:41:22 -0700 (PDT) (envelope-from peter@wemm.org) Received: from wemm.org (localhost [127.0.0.1]) by canning.wemm.org (Postfix) with ESMTP id 4F2822A893; Tue, 3 Sep 2002 14:41:22 -0700 (PDT) (envelope-from peter@wemm.org) X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: Matthew Dillon Cc: John Baldwin , Thomas Moestl , current@FreeBSD.ORG, des@FreeBSD.ORG, ticso@cicely5.cicely.de, Alexander Kabaev , ticso@cicely.de Subject: Re: alpha tinderbox failure - kernel is broken. In-Reply-To: <200209032113.g83LDjOV063373@apollo.backplane.com> Date: Tue, 03 Sep 2002 14:41:22 -0700 From: Peter Wemm Message-Id: <20020903214122.4F2822A893@canning.wemm.org> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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