This is the mail archive of the libffi-discuss@sourceware.org mailing list for the libffi 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: closure api problems


Aaron Patterson wrote:
> On Mon, Nov 16, 2009 at 07:45:36PM +0000, Andrew Haley wrote:
>> Aaron Patterson wrote:
>>> I'm running 64bit OS X (Snow Leopard).  Any help would be greatly
>>> appreciated!
>> I think Snow Leopard forbids exec permission on data memory.
>> You need to make sure that FFI_MMAP_EXEC_WRIT is set in closures.c.
> 
> That seems to fix it.  Is it safe to define that constant for all
> platforms?  Or just Snow Leopard?

We could do it for all Sarwin.

> Are you planning a permanent fix for master?

Not me, because I can't test it.  Patches welcome.

Andrew.


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