[llvm-commits] [compiler-rt] r74586 - /compiler-rt/trunk/lib/enable_execute_stack.c
Daniel Dunbar
daniel at zuster.org
Tue Jun 30 23:02:54 PDT 2009
Author: ddunbar
Date: Wed Jul 1 01:02:53 2009
New Revision: 74586
URL: http://llvm.org/viewvc/llvm-project?rev=74586&view=rev
Log:
Use getpagesize() on non-Darwin platforms.
- Presumably we will eventually need configure magic for this stuff.
Modified:
compiler-rt/trunk/lib/enable_execute_stack.c
Modified: compiler-rt/trunk/lib/enable_execute_stack.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/enable_execute_stack.c?rev=74586&r1=74585&r2=74586&view=diff
==============================================================================
--- compiler-rt/trunk/lib/enable_execute_stack.c (original)
+++ compiler-rt/trunk/lib/enable_execute_stack.c Wed Jul 1 01:02:53 2009
@@ -24,7 +24,8 @@
// On Darwin, pagesize is always 4096 bytes
const uintptr_t pageSize = 4096;
#else
- abort();
+ // FIXME: We should have a configure check for this.
+ const uintptr_t pagesize = getpagesize();
#endif
const uintptr_t pageAlignMask = ~(pageSize-1);
uintptr_t p = (uintptr_t)addr;
More information about the llvm-commits
mailing list