summaryrefslogtreecommitdiff
path: root/lib/fuzzer/FuzzerLoop.cpp
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2019-09-25 11:57:51 +0000
committerNico Weber <nicolasweber@gmx.de>2019-09-25 11:57:51 +0000
commite01a28f8cd0672b26a2cf80ad7ebafe953063293 (patch)
tree26594a576804dc76493c662f06a492bb0e2044c1 /lib/fuzzer/FuzzerLoop.cpp
parent1db063ce1e1c7e244f429fafc0c55df631bd12f5 (diff)
downloadcompiler-rt-e01a28f8cd0672b26a2cf80ad7ebafe953063293.tar.gz
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 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@372849 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/fuzzer/FuzzerLoop.cpp')
0 files changed, 0 insertions, 0 deletions