[compiler-rt] 86832c9 - [compiler-rt][hwasan][Fuchsia] Do not emit FindDynamicShadowStart for Fuchsia

Leonard Chan via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 27 15:47:47 PDT 2021


Author: Leonard Chan
Date: 2021-07-27T15:47:11-07:00
New Revision: 86832c9440fbf1a8d707dc7ce25bdce197735fa1

URL: https://github.com/llvm/llvm-project/commit/86832c9440fbf1a8d707dc7ce25bdce197735fa1
DIFF: https://github.com/llvm/llvm-project/commit/86832c9440fbf1a8d707dc7ce25bdce197735fa1.diff

LOG: [compiler-rt][hwasan][Fuchsia] Do not emit FindDynamicShadowStart for Fuchsia

This function is unused because fuchsia does not support a dynamic shadow.

Differential Revision: https://reviews.llvm.org/D105735

Added: 
    

Modified: 
    compiler-rt/lib/hwasan/hwasan_dynamic_shadow.cpp

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/hwasan/hwasan_dynamic_shadow.cpp b/compiler-rt/lib/hwasan/hwasan_dynamic_shadow.cpp
index bde22dfa4bc4c..7642ba6c0bf08 100644
--- a/compiler-rt/lib/hwasan/hwasan_dynamic_shadow.cpp
+++ b/compiler-rt/lib/hwasan/hwasan_dynamic_shadow.cpp
@@ -113,6 +113,15 @@ uptr FindDynamicShadowStart(uptr shadow_size_bytes) {
 }
 
 }  // namespace __hwasan
+
+#elif SANITIZER_FUCHSIA
+
+namespace __hwasan {
+
+void InitShadowGOT() {}
+
+}  // namespace __hwasan
+
 #else
 namespace __hwasan {
 


        


More information about the llvm-commits mailing list