[PATCH] [Sanitizers] Order initialization of coverage and guard arrays
eugenis at google.com
Thu Jan 29 11:52:46 PST 2015
It sounds like __sancov module constructor should have the same logic as, for example, asan interceptors: initialize asan if not initialized yet. We could have a hook to "initialize the current sanitizer" available in sanitizer_common and call that.
This problem is tied to the concept of "current sanitizer" and the initialization order of UBSan which is currently very poorly defined (see ubsan init trying to guess if any other sanitizer has been initialized yet).
More information about the llvm-commits