diff options
author | Joerg Sonnenberger <joerg@bec.de> | 2014-03-01 15:30:50 +0000 |
---|---|---|
committer | Joerg Sonnenberger <joerg@bec.de> | 2014-03-01 15:30:50 +0000 |
commit | 6e99daab4cdce246c87c47298babe0a8a5828c18 (patch) | |
tree | c554b839d12d4018d7381668a0363153ab9483d2 /compiler-rt/lib/builtins/enable_execute_stack.c | |
parent | bbdd7640e885ce3a72bba05e0aaf2361751b9142 (diff) | |
download | bcm5719-llvm-6e99daab4cdce246c87c47298babe0a8a5828c18.tar.gz bcm5719-llvm-6e99daab4cdce246c87c47298babe0a8a5828c18.zip |
Consistently use COMPILER_RT_ABI for all public symbols.
Move prototypes into headers and fix a few inconsistencies.
llvm-svn: 202591
Diffstat (limited to 'compiler-rt/lib/builtins/enable_execute_stack.c')
-rw-r--r-- | compiler-rt/lib/builtins/enable_execute_stack.c | 5 |
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); } - - |