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

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 17 17:00:07 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.
+  {
----------------
vitalybuka wrote:

what is the purpose of whole function {}  ?

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


More information about the llvm-commits mailing list