[compiler-rt] Re-exec TSan with no ASLR if memory layout is incompatible on Linux (PR #78351)

Thurston Dang via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 18 14:30:05 PST 2024


================
@@ -214,6 +214,88 @@ void InitializeShadowMemoryPlatform() {
 
 #endif  // #if !SANITIZER_GO
 
+#  if !SANITIZER_GO
+static void ReExecIfNeeded() {
+  // Go maps shadow memory lazily and works fine with limited address space.
+  // Unlimited stack is not a problem as well, because the executable
+  // is not compiled with -pie.
+  {
----------------
thurstond wrote:

Done!

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


More information about the llvm-commits mailing list