sanitizer_common: Use plain thread_local for __sancov_lowest_stack definition.
authorPeter Collingbourne <peter@pcc.me.uk>
Sat, 18 Mar 2023 03:48:21 +0000 (20:48 -0700)
committerPeter Collingbourne <peter@pcc.me.uk>
Mon, 20 Mar 2023 23:26:02 +0000 (16:26 -0700)
commit402dd79a293dc23f0ccf521d79386880e4969584
tree4bee52e330820c03f4768c4417d69f4b10e48572
parent3b9732132d8b73d66a1c84edf0ce2a24bab52b5a
sanitizer_common: Use plain thread_local for __sancov_lowest_stack definition.

We can't use initial-exec for the definition of __sancov_lowest_stack
because it gets linked into shared libraries such as the UBSan and
HWASan runtimes on Android. I think we can expect plain thread_local
to work unconditionally in sanitizer_common as several other sanitizers
are already using it, so drop the platform-dependent macro and just use
thread_local in the definition.

Differential Revision: https://reviews.llvm.org/D146351
compiler-rt/lib/sanitizer_common/sanitizer_coverage_libcdep_new.cpp
compiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h