From owner-cvs-all Sun Feb 7 15:49:58 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA06175 for cvs-all-outgoing; Sun, 7 Feb 1999 15:49:58 -0800 (PST) (envelope-from owner-cvs-all@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA06170; Sun, 7 Feb 1999 15:49:57 -0800 (PST) (envelope-from jdp@FreeBSD.org) From: John Polstra Received: (from jdp@localhost) by freefall.freebsd.org (8.9.2/8.9.2) id PAA78531; Sun, 7 Feb 1999 15:49:57 -0800 (PST) (envelope-from jdp@FreeBSD.org) Date: Sun, 7 Feb 1999 15:49:57 -0800 (PST) Message-Id: <199902072349.PAA78531@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: cvs commit: src/sys/alpha/include elf.h src/sys/i386/include elf.h src/sys/kern imgact_elf.c Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk jdp 1999/02/07 15:49:56 PST Modified files: sys/alpha/include elf.h sys/i386/include elf.h sys/kern imgact_elf.c Log: Change the load address of the ELF dynamic linker from "2L*MAXDSIZ" to an architecture-specific value defined in . This solves problems on large-memory systems that have a high value for MAXDSIZ. The load address is controlled by a new macro ELF_RTLD_ADDR(vmspace). On the i386 it is hard-wired to 0x08000000, which is the standard SVR4 location for the dynamic linker. On the Alpha, the dynamic linker is loaded MAXDSIZ bytes beyond the start of the program's data segment. This is the same place a userland mmap(0, ...) call would put it, so it ends up just below all the shared libraries. The rationale behind the calculation is that it allows room for the data segment to grow to its maximum possible size. These changes have been tested on the i386 for several months without problems. They have been tested on the Alpha as well, though not for nearly as long. I would like to merge the changes into 3.1 within a week if no problems have surfaced as a result of them. Revision Changes Path 1.6 +13 -1 src/sys/alpha/include/elf.h 1.6 +11 -1 src/sys/i386/include/elf.h 1.53 +2 -2 src/sys/kern/imgact_elf.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message