Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Mar 1998 15:13:34 -0800
From:      John Polstra <jdp@polstra.com>
To:        dyson@FreeBSD.ORG, current@FreeBSD.ORG
Cc:        ken@plutotech.com
Subject:   Re: problems stripping kernels
Message-ID:  <199803102313.PAA21771@austin.polstra.com>
In-Reply-To: <199803102304.PAA21639@austin.polstra.com>
References:  <199803102018.NAA16119@panzer.plutotech.com> <199803102304.PAA21639@austin.polstra.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199803102313.PAA21771>