[asan] Remove special case mapping on Android/AArch64.
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Wed, 29 Jul 2015 18:22:25 +0000 (18:22 +0000)
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Wed, 29 Jul 2015 18:22:25 +0000 (18:22 +0000)
commit4d81f86d976466a38a3bd75365587b7c84f72d41
tree171be8bd9553b2e82eb59ed2d92eb2fd874ba049
parentea087056aeea20e7b294575023a22b50a6cd8c97
[asan] Remove special case mapping on Android/AArch64.

ASan shadow on Android starts at address 0 for both historic and
performance reasons. This is possible because the platform mandates
-pie, which makes lower memory region always available.

This is not such a good idea on 64-bit platforms because of MAP_32BIT
incompatibility.

This patch changes Android/AArch64 mapping to be the same as that of
Linux/AAarch64.

llvm-svn: 243548
compiler-rt/lib/asan/asan_mapping.h
llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp