Displaying 8 results from an estimated 8 matches for "enable_execute_stack_test".
2012 Jan 07
1
[LLVMdev] [llvm-commits] [PATCH][Compiler-rt] Windows implementation of mmap functionality in clear_cache_test and enable_execute_stack_test
---------- Forwarded message ----------
From: Ruben Van Boxem <vanboxem.ruben at gmail.com>
Date: 2012/1/7
Subject: Re: [llvm-commits] [PATCH][Compiler-rt] Windows implementation of
mmap functionality in clear_cache_test and enable_execute_stack_test
To: Anton Korobeynikov <anton at korobeynikov.info>
2012/1/7 Anton Korobeynikov <anton at korobeynikov.info>
> Hello Ruben
>
> > Please apply at your leisure! Thanks!
> Will you please fix the code to use the same coding style as
> everything else around?
>
I se...
2012 Jan 07
3
[LLVMdev] [PATCH][Compiler-rt] Windows implementation of mmap functionality in clear_cache_test and enable_execute_stack_test
...1;
// verify you can copy and execute a function
@@ -53,7 +70,8 @@
__clear_cache(execution_buffer, &execution_buffer[128]);
pfunc f2 = (pfunc)(uintptr_t)execution_buffer;
if ( (*f2)() != 2 )
- return 1;
+ {
+ return 1;}
return 0;
}
Index: test/Unit/enable_execute_stack_test.c
===================================================================
--- test/Unit/enable_execute_stack_test.c (revision 147731)
+++ test/Unit/enable_execute_stack_test.c (working copy)
@@ -11,12 +11,27 @@
#include <stdio.h>
#include <string.h>
#include <stdint.h>
+#if defined...
2012 Jan 07
0
[LLVMdev] [llvm-commits] [PATCH][Compiler-rt] Windows implementation of mmap functionality in clear_cache_test and enable_execute_stack_test
Hi Ruben,
> I see I missed some curly braces. I also modified spacing a tiny bit.
Doesn't seem so. E.g. you have:
+ if ( !VirtualQuery(addr, &b, sizeof(b)) )
+ exit(1);
+ if( !VirtualProtect(b.BaseAddress, b.RegionSize,
PAGE_EXECUTE_READWRITE, &b.Protect) )
Add space after "if". Do not put spaces after "(" and before ")". Same
for other
2012 Jan 07
2
[LLVMdev] [llvm-commits] [PATCH][Compiler-rt] Windows implementation of mmap functionality in clear_cache_test and enable_execute_stack_test
...with another
memcpy(execution_buffer, (void *)(uintptr_t)&func2, 128);
__clear_cache(execution_buffer, &execution_buffer[128]);
pfunc f2 = (pfunc)(uintptr_t)execution_buffer;
- if ( (*f2)() != 2 )
+ if ((*f2)() != 2)
return 1;
return 0;
Index: test/Unit/enable_execute_stack_test.c
===================================================================
--- test/Unit/enable_execute_stack_test.c (revision 147738)
+++ test/Unit/enable_execute_stack_test.c (working copy)
@@ -11,12 +11,27 @@
#include <stdio.h>
#include <string.h>
#include <stdint.h>
+#if defined...
2012 Jan 11
0
[LLVMdev] [llvm-commits] [PATCH][Compiler-rt] Windows implementation of mmap functionality in clear_cache_test and enable_execute_stack_test
Hi Ruben,
> Thanks for having patience :),
Looks ok. Do you need me to commit this for you? Or you have the commit access?
--
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University
2012 Jan 11
1
[LLVMdev] [llvm-commits] [PATCH][Compiler-rt] Windows implementation of mmap functionality in clear_cache_test and enable_execute_stack_test
Op 11 jan. 2012 14:00 schreef "Anton Korobeynikov" <anton at korobeynikov.info>
het volgende:
>
> Hi Ruben,
>
> > Thanks for having patience :),
> Looks ok. Do you need me to commit this for you? Or you have the commit
access?
Please commit this for me. I don't have commit access.
Thanks!
Ruben
>
> --
> With best regards, Anton Korobeynikov
>
2011 Oct 09
0
[LLVMdev] compiler-rt on Windows
...dows. I
can't seem to find any alternative to __clear_cache on Windows, so it might
be a nonsensical test to run.
GCC test results:
87% tests passed, 12 tests failed out of 89
Total Test time (real) = 7.52 sec
The following tests FAILED:
2 - udivmodti4_test (Failed)
24 - enable_execute_stack_test (Not Run)
29 - floatuntisf_test (Failed)
34 - floattisf_test (Failed)
38 - fixunssfti_test (Failed)
42 - clear_cache_test (Not Run)
47 - clzti2_test (Failed)
53 - ffsti2_test (Failed)
64 - floatuntidf_test (Failed)
66 - ctzti2_...
2011 Jul 18
0
[LLVMdev] [compiler-rt] trunk fails ctest on X86_64 Linux
...ce, and I have been unable to get block support on Linux
any other way.
I'm running X86_64 Ubuntu Linux, and I checked out the trunk of
compiler-rt and built it according to the instructions on it's page,
and ran the test suite. Three tests failed:
The following tests FAILED:
24 - enable_execute_stack_test (SEGFAULT)
38 - fixunssfti_test (Failed)
74 - fixunsdfti_test (Failed)
The code built without any errors. Some warnings were output, all of
which are identical to this one, save the file in which it occurs
[ 90%] Building C object
test/CMakeFiles/powitf2_test.dir/Unit/powitf2_test....