From owner-freebsd-current Tue Mar 10 15:13:43 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA24434 for freebsd-current-outgoing; Tue, 10 Mar 1998 15:13:43 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from austin.polstra.com (austin.polstra.com [206.213.73.10]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA24407; Tue, 10 Mar 1998 15:13:35 -0800 (PST) (envelope-from jdp@austin.polstra.com) Received: from austin.polstra.com (jdp@localhost) by austin.polstra.com (8.8.8/8.8.8) with ESMTP id PAA21771; Tue, 10 Mar 1998 15:13:35 -0800 (PST) (envelope-from jdp) Message-Id: <199803102313.PAA21771@austin.polstra.com> To: dyson@FreeBSD.ORG, current@FreeBSD.ORG Subject: Re: problems stripping kernels In-Reply-To: <199803102304.PAA21639@austin.polstra.com> References: <199803102018.NAA16119@panzer.plutotech.com> <199803102304.PAA21639@austin.polstra.com> Organization: Polstra & Co., Seattle, WA Cc: ken@plutotech.com Date: Tue, 10 Mar 1998 15:13:34 -0800 From: John Polstra Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I wrote: > made from. In other words, this statement at strip.c:241 isn't > taking effect: > > /* Fill in new symbol table size. */ > ep->a_syms = (nsym - symbase) * sizeof(NLIST); > > Here, ep points to an image of the file that was mmapped at line 189: > > /* 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. John -- John Polstra jdp@polstra.com John D. Polstra & Co., Inc. Seattle, Washington USA "Self-knowledge is always bad news." -- John Barth To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message