mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-10 20:33:15 +00:00
[ASan] Move the shadow on Windows 32-bit from 0x20000000 to 0x40000000
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225641 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2cec3e9c11
commit
de4190697a
@ -67,6 +67,7 @@ static const uint64_t kMIPS32_ShadowOffset32 = 0x0aaa0000;
|
|||||||
static const uint64_t kMIPS64_ShadowOffset64 = 1ULL << 36;
|
static const uint64_t kMIPS64_ShadowOffset64 = 1ULL << 36;
|
||||||
static const uint64_t kFreeBSD_ShadowOffset32 = 1ULL << 30;
|
static const uint64_t kFreeBSD_ShadowOffset32 = 1ULL << 30;
|
||||||
static const uint64_t kFreeBSD_ShadowOffset64 = 1ULL << 46;
|
static const uint64_t kFreeBSD_ShadowOffset64 = 1ULL << 46;
|
||||||
|
static const uint64_t kWindowsShadowOffset32 = 1ULL << 30;
|
||||||
|
|
||||||
static const size_t kMinStackMallocSize = 1 << 6; // 64B
|
static const size_t kMinStackMallocSize = 1 << 6; // 64B
|
||||||
static const size_t kMaxStackMallocSize = 1 << 16; // 64K
|
static const size_t kMaxStackMallocSize = 1 << 16; // 64K
|
||||||
@ -307,6 +308,7 @@ static ShadowMapping getShadowMapping(Triple &TargetTriple, int LongSize) {
|
|||||||
TargetTriple.getArch() == llvm::Triple::mipsel;
|
TargetTriple.getArch() == llvm::Triple::mipsel;
|
||||||
bool IsMIPS64 = TargetTriple.getArch() == llvm::Triple::mips64 ||
|
bool IsMIPS64 = TargetTriple.getArch() == llvm::Triple::mips64 ||
|
||||||
TargetTriple.getArch() == llvm::Triple::mips64el;
|
TargetTriple.getArch() == llvm::Triple::mips64el;
|
||||||
|
bool IsWindows = TargetTriple.isOSWindows();
|
||||||
|
|
||||||
ShadowMapping Mapping;
|
ShadowMapping Mapping;
|
||||||
|
|
||||||
@ -319,6 +321,8 @@ static ShadowMapping getShadowMapping(Triple &TargetTriple, int LongSize) {
|
|||||||
Mapping.Offset = kFreeBSD_ShadowOffset32;
|
Mapping.Offset = kFreeBSD_ShadowOffset32;
|
||||||
else if (IsIOS)
|
else if (IsIOS)
|
||||||
Mapping.Offset = kIOSShadowOffset32;
|
Mapping.Offset = kIOSShadowOffset32;
|
||||||
|
else if (IsWindows)
|
||||||
|
Mapping.Offset = kWindowsShadowOffset32;
|
||||||
else
|
else
|
||||||
Mapping.Offset = kDefaultShadowOffset32;
|
Mapping.Offset = kDefaultShadowOffset32;
|
||||||
} else { // LongSize == 64
|
} else { // LongSize == 64
|
||||||
|
Loading…
x
Reference in New Issue
Block a user