This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] fix bugzilla 24959


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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]