Skip to content

Commit cf30f64

Browse files
committedApr 24, 2018
[HWASan] Use dynamic shadow memory on Android only.
There're issues with IFUNC support on other platforms. Differential Revision: https://reviews.llvm.org/D45847 llvm-svn: 330666
1 parent 909fb12 commit cf30f64

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎compiler-rt/lib/hwasan/hwasan_mapping.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ static constexpr __sanitizer::u64 kDefaultShadowSentinel = ~(__sanitizer::u64)0;
5353
constexpr __sanitizer::uptr kShadowScale = 4;
5454
constexpr __sanitizer::uptr kShadowAlignment = 1ULL << kShadowScale;
5555

56-
#if defined(__x86_64__)
57-
# define HWASAN_FIXED_MAPPING 1
58-
#else
56+
#if SANITIZER_ANDROID
5957
# define HWASAN_FIXED_MAPPING 0
58+
#else
59+
# define HWASAN_FIXED_MAPPING 1
6060
#endif
6161

6262
#if HWASAN_FIXED_MAPPING

0 commit comments

Comments
 (0)
Please sign in to comment.