From owner-freebsd-alpha Fri Feb 5 09:48:49 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA18653 for freebsd-alpha-outgoing; Fri, 5 Feb 1999 09:48:49 -0800 (PST) (envelope-from owner-freebsd-alpha@FreeBSD.ORG) Received: from wall.polstra.com (rtrwan160.accessone.com [206.213.115.74]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA18648 for ; Fri, 5 Feb 1999 09:48:47 -0800 (PST) (envelope-from jdp@polstra.com) Received: from vashon.polstra.com (vashon.polstra.com [206.213.73.13]) by wall.polstra.com (8.9.1/8.9.1) with ESMTP id JAA01540 for ; Fri, 5 Feb 1999 09:48:46 -0800 (PST) (envelope-from jdp@polstra.com) Received: (from jdp@localhost) by vashon.polstra.com (8.9.1/8.9.1) id JAA22593 for alpha@freebsd.org; Fri, 5 Feb 1999 09:48:45 -0800 (PST) (envelope-from jdp@polstra.com) Message-ID: X-Mailer: XFMail 1.3 [p0] on FreeBSD X-Priority: 3 (Normal) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="_=XFMail.1.3.p0.FreeBSD:990205094845:7709=_" Date: Fri, 05 Feb 1999 09:48:45 -0800 (PST) Organization: Polstra & Co., Inc. From: John Polstra To: alpha@FreeBSD.ORG Subject: Could somebody please test this patch? Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org This message is in MIME format --_=XFMail.1.3.p0.FreeBSD:990205094845:7709=_ Content-Type: text/plain; charset=us-ascii Could somebody with an Alpha close at hand do me a big favor and test the attached patch? It moves the load address of the dynamic linker from the bogus fixed address "2L*MAXDSIZ" to whereever a userland mmap(0, ...) call would have put it. It should have no noticeable affect on your system, except maybe if you look at "/proc//map". The patch solves a problem for large-memory i386 configurations. I'd like to commit it ASAP, but it would be nice to confirm first that I didn't break Alphas. Thanks in advance, John --- John Polstra jdp@polstra.com John D. Polstra & Co., Inc. Seattle, Washington USA "Nobody ever went broke underestimating the taste of the American public." -- H. L. Mencken --_=XFMail.1.3.p0.FreeBSD:990205094845:7709=_ Content-Disposition: attachment; filename="imgact_elf.patch" Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii; name=imgact_elf.patch; SizeOnDisk=709 Index: imgact_elf.c =================================================================== RCS file: /home/ncvs/src/sys/kern/imgact_elf.c,v retrieving revision 1.48 diff -u -r1.48 imgact_elf.c --- imgact_elf.c 1999/02/04 12:42:31 1.48 +++ imgact_elf.c 1999/02/05 05:49:40 @@ -511,7 +511,15 @@ vmspace->vm_dsize = data_size >> PAGE_SHIFT; vmspace->vm_daddr = (caddr_t)(uintptr_t)data_addr; - addr = 2L*MAXDSIZ; /* May depend on OS type XXX */ +#ifdef ELF_RTLD_ADDR + addr = ELF_RTLD_ADDR; +#else + /* + * Load the dynamic linker where mmap(0, ...) would put it. + * See mmap() in "vm/vm_mmap.c". + */ + addr = round_page((vm_offset_t)vmspace->vm_daddr + MAXDSIZ); +#endif imgp->entry_addr = entry; --_=XFMail.1.3.p0.FreeBSD:990205094845:7709=_-- End of MIME message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message