[compiler-rt] 7612e58 - [compiler-rt][hwasan] Call __hwasan_library_loaded via

Leonard Chan via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 9 11:49:43 PST 2022


Author: Leonard Chan
Date: 2022-11-09T19:49:08Z
New Revision: 7612e5856550cf74fa729df842b1b5a3f906997f

URL: https://github.com/llvm/llvm-project/commit/7612e5856550cf74fa729df842b1b5a3f906997f
DIFF: https://github.com/llvm/llvm-project/commit/7612e5856550cf74fa729df842b1b5a3f906997f.diff

LOG: [compiler-rt][hwasan] Call __hwasan_library_loaded via
__sanitizer_library_loaded on Fuchsia

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

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/hwasan/hwasan_fuchsia.cpp b/compiler-rt/lib/hwasan/hwasan_fuchsia.cpp
index 967c796c339d..858fac05af23 100644
--- a/compiler-rt/lib/hwasan/hwasan_fuchsia.cpp
+++ b/compiler-rt/lib/hwasan/hwasan_fuchsia.cpp
@@ -224,6 +224,10 @@ void __sanitizer_thread_exit_hook(void *hook, thrd_t self) {
   __hwasan::ThreadExitHook(hook, self);
 }
 
+void __sanitizer_module_loaded(const struct dl_phdr_info *info, size_t) {
+  __hwasan_library_loaded(info->dlpi_addr, info->dlpi_phdr, info->dlpi_phnum);
+}
+
 }  // extern "C"
 
 #endif  // SANITIZER_FUCHSIA


        


More information about the llvm-commits mailing list