From owner-cvs-all Mon Sep 9 10:38:56 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6DA8F37B400; Mon, 9 Sep 2002 10:38:48 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3629E43E42; Mon, 9 Sep 2002 10:38:48 -0700 (PDT) (envelope-from dillon@FreeBSD.org) Received: from freefall.freebsd.org (dillon@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g89HclJU045024; Mon, 9 Sep 2002 10:38:48 -0700 (PDT) (envelope-from dillon@freefall.freebsd.org) Received: (from dillon@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g89Hclvv045023; Mon, 9 Sep 2002 10:38:47 -0700 (PDT) Message-Id: <200209091738.g89Hclvv045023@freefall.freebsd.org> From: Matt Dillon Date: Mon, 9 Sep 2002 10:38:47 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern imgact_elf.c X-FreeBSD-CVS-Branch: RELENG_4 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG dillon 2002/09/09 10:38:47 PDT Modified files: (Branch: RELENG_4) sys/kern imgact_elf.c Log: MFC partial reversion of previous commit, based on problems reported by Alpha users and a long discussion with Peter Wemm. The jist of it is that we can't trust any of the elf flags to determine what is data and what is text so we use the old 'entry point in segment' method to detect text vs data, and we can't calculate the actual data_size for vmspace because break() depends on data_start + data_size pointing to the end of the address space, so we use the last data segment (as before). However, we were able to retain partial checking for RLIMIT_TEXT, RLIMIT_DATA, and full checking for RLIMIT_VMEM. Approved by: re Revision Changes Path 1.73.2.11 +24 -18 src/sys/kern/imgact_elf.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message