Skip to content

Commit

Permalink
libffi: allocate executable trampoline buffers in darwin 10 and beyond
Browse files Browse the repository at this point in the history
Bug 682180 - Allocate executable trampoline buffers in darwin 10 and beyond. v3 r=khuey

https://bugzilla.mozilla.org/show_bug.cgi?id=682180
  • Loading branch information
TooTallNate committed Sep 16, 2012
1 parent 2381397 commit c1c5ad0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion deps/libffi/configure
Expand Up @@ -14402,7 +14402,7 @@ case "$target" in
$as_echo "#define FFI_EXEC_TRAMPOLINE_TABLE 1" >>confdefs.h

;;
*-apple-darwin1[10]* | *-*-freebsd* | *-*-kfreebsd* | *-*-openbsd* | *-pc-solaris*)
*-apple-darwin1* | *-*-freebsd* | *-*-kfreebsd* | *-*-openbsd* | *-pc-solaris*)

$as_echo "#define FFI_MMAP_EXEC_WRIT 1" >>confdefs.h

Expand Down
3 changes: 2 additions & 1 deletion deps/libffi/configure.ac
Expand Up @@ -351,7 +351,8 @@ case "$target" in
[Cannot use PROT_EXEC on this target, so, we revert to
alternative means])
;;
*-apple-darwin1[[10]]* | *-*-freebsd* | *-*-kfreebsd* | *-*-openbsd* | *-pc-solaris*)
# Darwin 10 (OSX 10.6) and beyond allocate non-executable pages
*-apple-darwin1* | *-*-freebsd* | *-*-kfreebsd* | *-*-openbsd* | *-pc-solaris*)
AC_DEFINE(FFI_MMAP_EXEC_WRIT, 1,
[Cannot use malloc on this target, so, we revert to
alternative means])
Expand Down

0 comments on commit c1c5ad0

Please sign in to comment.