Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Mar 1998 10:24:38 +1100 (EST)
From:      John Birrell <jb@cimlogic.com.au>
To:        jdp@polstra.com (John Polstra)
Cc:        dyson@FreeBSD.ORG, current@FreeBSD.ORG, ken@plutotech.com
Subject:   Re: problems stripping kernels
Message-ID:  <199803102324.KAA00884@cimlogic.com.au>
In-Reply-To: <199803102313.PAA21771@austin.polstra.com> from John Polstra at "Mar 10, 98 03:13:34 pm"

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



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