[compiler-rt] Reland '[hwasan] Add fixed_shadow_base flag (#73980)' (PR #95445)

Thurston Dang via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 13 11:22:27 PDT 2024


================
@@ -106,8 +106,13 @@ static uptr GetHighMemEnd() {
 }
 
 static void InitializeShadowBaseAddress(uptr shadow_size_bytes) {
-  __hwasan_shadow_memory_dynamic_address =
-      FindDynamicShadowStart(shadow_size_bytes);
+  // Android static HWASan doesn't initialize flags correctly
+  if (!SANITIZER_ANDROID && flags()->fixed_shadow_base != (uptr)-1) {
----------------
thurstond wrote:

Done

https://github.com/llvm/llvm-project/pull/95445


More information about the llvm-commits mailing list