[cfi] Reset i-cache after copying code in test.
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Fri, 29 Jun 2018 00:38:26 +0000 (00:38 +0000)
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Fri, 29 Jun 2018 00:38:26 +0000 (00:38 +0000)
commit6d310651a2e14329f6fa38f7593baf8b1459448e
tree9d4f91d360e154119aa6d9cec2d77374d681b508
parentc5a154db48c3cd9e16b5c74977d506415414daf7
[cfi] Reset i-cache after copying code in test.

Fixes intermittent crashes on Android.
Also add PROT_READ to the code mapping for no real reason.

llvm-svn: 335943
compiler-rt/test/cfi/cross-dso/icall/dlopen.cpp