[compiler-rt][hwasan] Do not call InitLoadedGlobals in __hwasan_init
authorLeonard Chan <leonardchan@google.com>
Tue, 8 Nov 2022 23:06:19 +0000 (23:06 +0000)
committerLeonard Chan <leonardchan@google.com>
Wed, 9 Nov 2022 19:47:05 +0000 (19:47 +0000)
commit40dffefa0e6557063763d814b824d721ce963e66
treedc3c3b11195dd2ae3a6d64b5caf97f2b510b4950
parente044796132abd9e10e21093822dc234003628fbd
[compiler-rt][hwasan] Do not call InitLoadedGlobals in __hwasan_init

Fuchsia's libc provides a new hook (__sanitizer_module_loaded) which calls
hwasan_library_loaded in the startup path which will register globals in
loaded modules.

Differential Revision: https://reviews.llvm.org/D137676
compiler-rt/lib/hwasan/hwasan.cpp