llvm-project/compiler-rt/test/builtins
Nico Weber cddc153102 builtins test: Move clear_cache_test.c from a mprotect()ed global to a mmap()ed variable
ld64 in the macOS 10.15 SDK gives __DATA a maxprot of 3, meaning it
can't be made executable at runtime by default.

Change clear_cache_test.c to use mmap()ed data that's mapped as writable
and executable from the beginning, instead of trying to mprotect()ing a
__DATA variable as executable. This fixes the test on macOS with the
10.15 SDK.

PR43407.

Differential Revision: https://reviews.llvm.org/D67929

llvm-svn: 372849
2019-09-25 11:57:51 +00:00
..
TestCases/Darwin [compiler-rt] Rename lit.*.cfg.* -> lit.*.cfg.py.* 2019-06-27 20:56:04 +00:00
Unit builtins test: Move clear_cache_test.c from a mprotect()ed global to a mmap()ed variable 2019-09-25 11:57:51 +00:00
timing
CMakeLists.txt compiler-rt/builtins: Make check-builtins run tests on macOS. 2019-09-14 22:22:47 +00:00
lit.cfg.py compiler-rt: Remove .cc from all lit config files 2019-08-05 19:25:35 +00:00
lit.site.cfg.py.in [compiler-rt] Rename lit.*.cfg.* -> lit.*.cfg.py.* 2019-06-27 20:56:04 +00:00