From: Geoff Keating <geoffk@geoffk.org>
To: ebotcazou@libertysurf.fr
Cc: gcc@gcc.gnu.org
Subject: Re: PCH support on Solaris
Date: Thu, 03 Apr 2003 06:05:00 -0000 [thread overview]
Message-ID: <200304030317.h333HFB03519@desire.geoffk.org> (raw)
In-Reply-To: <200304021934.12278.ebotcazou@libertysurf.fr> (message from Eric Botcazou on Wed, 2 Apr 2003 19:39:48 +0200)
> From: Eric Botcazou <ebotcazou@libertysurf.fr>
> Date: Wed, 2 Apr 2003 19:39:48 +0200
> In other words, Solaris appears to map the whole file, whatever offset you
> specify in the call to mmap, so that the address returned is
>
> addr = mmi.preferred_base + mmi.offset
>
>
> The reporter of PR other/9830 proposes to force the address by passing
> MAP_FIXED to mmap; this works (all pch tests of the testsuite pass) but, if
> my interpretation is correct, this could fail if the pages before the forced
> address are for some reason unmappable.
I think we discussed this more in the PR and the suggestion was to use
MAP_FIXED but to check that the area was safe to map into. There's
sample code in the PR, I think, but it really needs someone with a
Solaris machine to do a proper patch using host-hooks.
--
- Geoffrey Keating <geoffk@geoffk.org>
next prev parent reply other threads:[~2003-04-03 3:17 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-02 18:33 Eric Botcazou
2003-04-03 6:05 ` Geoff Keating [this message]
2003-04-03 7:23 ` Eric Botcazou
2003-04-03 8:04 ` Geoff Keating
2003-04-03 9:18 ` Eric Botcazou
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200304030317.h333HFB03519@desire.geoffk.org \
--to=geoffk@geoffk.org \
--cc=ebotcazou@libertysurf.fr \
--cc=gcc@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).