[PATCH] D55703: Reimplement Thread Static Data MSan routines for NetBSD
Joerg Sonnenberger via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 14 12:43:36 PST 2018
On Fri, Dec 14, 2018 at 01:23:20PM +0000, Kamil Rytarowski via Phabricator wrote:
> Index: lib/msan/msan_linux.cc
> ===================================================================
> --- lib/msan/msan_linux.cc
> +++ lib/msan/msan_linux.cc
> @@ -34,6 +34,13 @@
> #include "sanitizer_common/sanitizer_common.h"
> #include "sanitizer_common/sanitizer_procmaps.h"
>
> +#if SANITIZER_NETBSD
> +#include <sys/cdefs.h>
> +extern "C" {
> +int __cxa_thread_atexit(void (*)(void *), void *, void *) __weak;
> +}
> +#endif
> +
What's the point of declaring it weak when it is used unconditionally?
Joerg
More information about the llvm-commits
mailing list