public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Gerald Pfeifer <gerald@pfeifer.com>
To: Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Cc: Paolo Bonzini <bonzini@gnu.org>,
	gcc-patches@gcc.gnu.org,
	    "Joseph S. Myers" <joseph@codesourcery.com>,
	    Ralf Wildenhues <Ralf.Wildenhues@gmx.de>,
	    Mike Stump <mikestump@comcast.net>,
	"Loren J. Rittle" <ljrittle@acm.org>,
	    Kai Tietz <ktietz@redhat.com>,
	Dave Korn <dave.korn.cygwin@gmail.com>,
	    Jason Thorpe <thorpej@netbsd.org>,
	    Krister Walfridsson <krister.walfridsson@gmail.com>,
	    Uros Bizjak <ubizjak@gmail.com>,
	Richard Henderson <rth@redhat.com>,
	    Eric Botcazou <ebotcazou@adacore.com>
Subject: Re: [build] Move ENABLE_EXECUTE_STACK to toplevel libgcc
Date: Sat, 04 Jun 2011 11:00:00 -0000	[thread overview]
Message-ID: <alpine.LNX.2.00.1106041258330.3492@gerinyyl.fvgr> (raw)
In-Reply-To: <yddvcwmrkaj.fsf@manam.CeBiTec.Uni-Bielefeld.DE>

On Fri, 3 Jun 2011, Rainer Orth wrote:
> * FreeBSD uses the unmodified address passed to __enable_execute_stack
>   to call mprocted, while all others round both address and size to a
>   pagesize boundary.  I cannot imagine that FreeBSD supports
>   byte-granularity mprotect, so this seems an oversight.

The man page of mprotect on FreeBSD 9 (the next release) states the
following which seems supportive of your theory:

  NAME
     mprotect -- control the protection of pages
  :
  DESCRIPTION
     The mprotect() system call changes the specified pages to have protection
     prot.  Not all implementations will guarantee protection on a page basis;
     the granularity of protection changes may be as large as an entire
     region.  A region is the virtual address space defined by the start and
     end addresses of a struct vm_map_entry.


Gerald

  parent reply	other threads:[~2011-06-04 11:00 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-30 18:09 Rainer Orth
2011-05-30 20:09 ` Kai Tietz
2011-05-31  9:45 ` Paolo Bonzini
2011-05-31 16:40   ` Rainer Orth
2011-05-31 16:57     ` Paolo Bonzini
2011-06-03 15:45       ` Rainer Orth
2011-06-03 16:01         ` Paolo Bonzini
2011-06-06  9:18           ` Rainer Orth
2011-06-06  9:23             ` Paolo Bonzini
2011-06-07 15:20             ` Joseph S. Myers
2011-06-07 15:31               ` Rainer Orth
2011-06-07 15:45                 ` Paolo Bonzini
2011-06-07 19:17                 ` Joseph S. Myers
2011-06-09  7:50                   ` Rainer Orth
2011-06-09  9:57                     ` Joseph S. Myers
2011-06-09 12:06                     ` Bernd Schmidt
2011-06-04 11:00         ` Gerald Pfeifer [this message]
2011-06-04 11:17         ` Andreas Schwab
2011-06-07 14:00       ` Joseph S. Myers
2011-06-07 14:57         ` Rainer Orth
2011-05-31 18:11 ` Mike Stump

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=alpine.LNX.2.00.1106041258330.3492@gerinyyl.fvgr \
    --to=gerald@pfeifer.com \
    --cc=Ralf.Wildenhues@gmx.de \
    --cc=bonzini@gnu.org \
    --cc=dave.korn.cygwin@gmail.com \
    --cc=ebotcazou@adacore.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=joseph@codesourcery.com \
    --cc=krister.walfridsson@gmail.com \
    --cc=ktietz@redhat.com \
    --cc=ljrittle@acm.org \
    --cc=mikestump@comcast.net \
    --cc=ro@CeBiTec.Uni-Bielefeld.DE \
    --cc=rth@redhat.com \
    --cc=thorpej@netbsd.org \
    --cc=ubizjak@gmail.com \
    /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).