This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] fix bugzilla 24959
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Eric Christopher <echristo at apple dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>, Geoffrey Keating <geoffk at apple dot com>
- Date: Tue, 28 Feb 2006 21:39:16 +0000 (UTC)
- Subject: Re: [patch] fix bugzilla 24959
- References: <5DA6BBB5-6076-4E14-B96A-4367B73000FD@apple.com>
On Tue, 28 Feb 2006, Eric Christopher wrote:
> x86-darwin doesn't have an executable stack by default. There are a couple of
> ways to enable it:
>
> a) Use the -allow_stack_execute flag to the linker for nested functions
> b) Use -allow_stack_execute all the time
> c) Use mprotect
You could also enhance the linker to add a fourth way, equivalent to the
.note.GNU-stack used on GNU/Linux.
--
Joseph S. Myers http://www.srcf.ucam.org/~jsm28/gcc/
jsm@polyomino.org.uk (personal mail)
joseph@codesourcery.com (CodeSourcery mail)
jsm28@gcc.gnu.org (Bugzilla assignments and CCs)