aboutsummaryrefslogtreecommitdiff
path: root/libc/private/bionic_ifuncs.h
diff options
context:
space:
mode:
Diffstat (limited to 'libc/private/bionic_ifuncs.h')
-rw-r--r--libc/private/bionic_ifuncs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libc/private/bionic_ifuncs.h b/libc/private/bionic_ifuncs.h
index f175becb8..e6b349aff 100644
--- a/libc/private/bionic_ifuncs.h
+++ b/libc/private/bionic_ifuncs.h
@@ -40,9 +40,12 @@
#define IFUNC_ARGS ()
#endif
+// We can't have HWASAN enabled in resolvers because they may be called before HWASAN is
+// initialized.
#define DEFINE_IFUNC_FOR(name) \
name##_func name __attribute__((ifunc(#name "_resolver"))); \
__attribute__((visibility("hidden"))) \
+ __attribute__((no_sanitize("hwaddress"))) \
name##_func* name##_resolver IFUNC_ARGS
#define DECLARE_FUNC(type, name) \