This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
[RFA] Invalid mmap(2) assumption in pch (ggc-common.c)
- From: Matt Thomas <matt at 3am-software dot com>
- To: gcc at gcc dot gnu dot org
- Cc: Jason Thorpe <thorpej at shagadelic dot org>
- Date: Sat, 23 Apr 2005 17:42:56 -0700
- Subject: [RFA] Invalid mmap(2) assumption in pch (ggc-common.c)
Running the libstdc++ testsuite on NetBSD/sparc or NetBSD/sparc64
results in most tests failing like:
<command line>:1: fatal error: had to relocate PCH
compilation terminated.
compiler exited with status 1
This is due to a misassumption in ggc-common.c:654
(mmap_gt_pch_use_address):
This version assumes that the kernel honors the START operand of mmap
even without MAP_FIXED if START through START+SIZE are not currently
mapped with something.
That is not true for NetBSD. Due to MMU idiosyncracies, some architecures
(like sparc and sparc64) will align mmap requests that don't have MAP_FIXED
set for architecture specific reasons).
Is there a reason why MAP_FIXED isn't used even though it probably
should be?
--
Matt Thomas email: matt@3am-software.com
3am Software Foundry www: http://3am-software.com/bio/matt/
Cupertino, CA disclaimer: I avow all knowledge of this message.