diff options
| author | Nico Weber <nicolasweber@gmx.de> | 2019-09-25 11:57:51 +0000 |
|---|---|---|
| committer | Nico Weber <nicolasweber@gmx.de> | 2019-09-25 11:57:51 +0000 |
| commit | cddc153102d91f24ff2120cae77ff523e4381faf (patch) | |
| tree | acd6a96752fa607dad9687d21755c8ea0c53d1ec /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
| parent | 4d23bd528cd6f56604a95652bf9e4671caec0ad4 (diff) | |
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
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions
