From owner-freebsd-current Tue Mar 10 15:25:35 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA26495 for freebsd-current-outgoing; Tue, 10 Mar 1998 15:25:35 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from cimlogic.com.au (cimlog.lnk.telstra.net [139.130.51.31]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA26462; Tue, 10 Mar 1998 15:25:30 -0800 (PST) (envelope-from jb@cimlogic.com.au) Received: (from jb@localhost) by cimlogic.com.au (8.8.5/8.8.7) id KAA00884; Wed, 11 Mar 1998 10:24:38 +1100 (EST) (envelope-from jb) From: John Birrell Message-Id: <199803102324.KAA00884@cimlogic.com.au> Subject: Re: problems stripping kernels In-Reply-To: <199803102313.PAA21771@austin.polstra.com> from John Polstra at "Mar 10, 98 03:13:34 pm" To: jdp@polstra.com (John Polstra) Date: Wed, 11 Mar 1998 10:24:38 +1100 (EST) Cc: dyson@FreeBSD.ORG, current@FreeBSD.ORG, ken@plutotech.com X-Mailer: ELM [version 2.4ME+ PL32 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG John Polstra wrote: > > /* Map the file. */ > > if ((ep = (EXEC *)mmap(NULL, (size_t)sb.st_size, > > PROT_READ | PROT_WRITE, MAP_SHARED, fd, (off_t)0)) == (EXEC *)MAP_FAILED) { > > For what it's worth (probably not much), I tried adding a call to > msync right before the munmap call in strip.c. It didn't make any > difference. I don't know if this is related (because I'm not seeing the problem), but I committed a 64-bit fix to mmap.c in libc 1998/03/09 07:27:58. If you've built libc from cvsuped sources since then, it might be worth backing out that change to see if it is biting. cvs diff -r1.2 -r1.3 mmap.c Index: mmap.c =================================================================== RCS file: /home/ncvs/src/lib/libc/sys/mmap.c,v retrieving revision 1.2 retrieving revision 1.3 diff -r1.2 -r1.3 40a41 > #include 56c57 < return((void *)__syscall((quad_t)SYS_mmap, addr, len, prot, flags, --- > return((void *)(long)__syscall((quad_t)SYS_mmap, addr, len, prot, flags, -- John Birrell - jb@cimlogic.com.au; jb@freebsd.org CIMlogic Pty Ltd, GPO Box 117A, Melbourne Vic 3001, Australia +61 418 353 137 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message