[compiler-rt] [tsan] Fix build for FreeBSD and NetBSD after 0784b1eefa36 (PR #79019)

Dimitry Andric via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 22 09:51:01 PST 2024


DimitryAndric wrote:

Now that I look at this again, I notice that the shared `CheckASLR()` (https://github.com/llvm/llvm-project/blob/main/compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp#L2261) is already called _before_ `__tsan::InitializePlatformEarly()`:

https://github.com/llvm/llvm-project/blob/main/compiler-rt/lib/tsan/rtl/tsan_rtl.cpp#L695

So why is there any need to check for ASLR again in `ReExecIfNeeded()`? It would already have been re-exec'd at this point?


https://github.com/llvm/llvm-project/pull/79019


More information about the llvm-commits mailing list