Skip to content

Commit 7612e58

Browse files
committed
[compiler-rt][hwasan] Call __hwasan_library_loaded via
__sanitizer_library_loaded on Fuchsia Differential Revision: https://reviews.llvm.org/D133806
1 parent 40dffef commit 7612e58

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

compiler-rt/lib/hwasan/hwasan_fuchsia.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,10 @@ void __sanitizer_thread_exit_hook(void *hook, thrd_t self) {
224224
__hwasan::ThreadExitHook(hook, self);
225225
}
226226

227+
void __sanitizer_module_loaded(const struct dl_phdr_info *info, size_t) {
228+
__hwasan_library_loaded(info->dlpi_addr, info->dlpi_phdr, info->dlpi_phnum);
229+
}
230+
227231
} // extern "C"
228232

229233
#endif // SANITIZER_FUCHSIA

0 commit comments

Comments
 (0)