summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/builtins/enable_execute_stack.c
diff options
context:
space:
mode:
Diffstat (limited to 'compiler-rt/lib/builtins/enable_execute_stack.c')
-rw-r--r--compiler-rt/lib/builtins/enable_execute_stack.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/compiler-rt/lib/builtins/enable_execute_stack.c b/compiler-rt/lib/builtins/enable_execute_stack.c
index 278ca246f53..63d836b31d1 100644
--- a/compiler-rt/lib/builtins/enable_execute_stack.c
+++ b/compiler-rt/lib/builtins/enable_execute_stack.c
@@ -36,7 +36,8 @@
* that means changing the protection on those page(s) to rwx.
*/
-void __enable_execute_stack(void* addr)
+COMPILER_RT_ABI void
+__enable_execute_stack(void* addr)
{
#if __APPLE__
@@ -55,5 +56,3 @@ void __enable_execute_stack(void* addr)
size_t length = endPage - startPage;
(void) mprotect((void *)startPage, length, PROT_READ | PROT_WRITE | PROT_EXEC);
}
-
-
OpenPOWER on IntegriCloud