mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +01:00
[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
This commit is contained in:
parent
fa2563134a
commit
af5c29d437
@ -340,12 +340,12 @@ static ShadowMapping getShadowMapping(Triple &TargetTriple, int LongSize,
|
||||
|
||||
ShadowMapping Mapping;
|
||||
|
||||
if (IsAndroid) {
|
||||
if (LongSize == 32) {
|
||||
// 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)
|
||||
if (IsAndroid)
|
||||
Mapping.Offset = 0;
|
||||
else if (IsMIPS32)
|
||||
Mapping.Offset = kMIPS32_ShadowOffset32;
|
||||
else if (IsFreeBSD)
|
||||
Mapping.Offset = kFreeBSD_ShadowOffset32;
|
||||
|
Loading…
x
Reference in New Issue
Block a user