Instrumentation and the runtime library were in disagreement about
ASan shadow offset on Android/AArch64.
This fixes a large number of existing tests on Android/AArch64.
llvm-svn: 242595
ShadowMapping Mapping;
- if (LongSize == 32) {
- if (IsAndroid)
- Mapping.Offset = 0;
- else if (IsMIPS32)
+ if (IsAndroid) {
+ // Android is always PIE, which means that the beginning of the address
+ // space is always available.
+ Mapping.Offset = 0;
+ } else if (LongSize == 32) {
+ if (IsMIPS32)
Mapping.Offset = kMIPS32_ShadowOffset32;
else if (IsFreeBSD)
Mapping.Offset = kFreeBSD_ShadowOffset32;