hwasan: lay groundwork for importing subset of sanitizer_common interceptors [NFC]
authorThurston Dang <thurston@google.com>
Tue, 16 May 2023 19:34:31 +0000 (19:34 +0000)
committerThurston Dang <thurston@google.com>
Tue, 16 May 2023 21:27:25 +0000 (21:27 +0000)
commit02a029f7fb5a3feae60759eab6a528880e341358
treedb95ae719ff8378d242af16a290559624dd1e3b8
parenta5d98be515cf7ca8740aa2c74cc92feaab86d30b
hwasan: lay groundwork for importing subset of sanitizer_common interceptors [NFC]

This patch does the bare minimum to import sanitizer_common_interceptors, but
without actually enabling any interceptors or meaningfully defining the
COMMON_INTERCEPT macros.

This will allow selectively enabling sanitizer_common interceptors (if the
appropriate macros are defined), as suggested by Vitaly in D149701.

Differential Revision: https://reviews.llvm.org/D150708
compiler-rt/lib/hwasan/hwasan_interceptors.cpp
compiler-rt/lib/hwasan/hwasan_platform_interceptors.h [new file with mode: 0644]