[compiler-rt] [asan] Intercept __makecontext_v2 on Solaris/SPARC (PR #81588)

Michał Górny via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 16 02:06:33 PST 2024


================
@@ -352,8 +352,16 @@ static void ClearShadowMemoryForContextStack(uptr stack, uptr ssize) {
   PoisonShadow(bottom, ssize, 0);
 }
 
+// Since Solaris 10/SPARC, ucp->uc_stack.ss_sp refers to the stack base address
----------------
mgorny wrote:

Don't you need some kind of version check? Also, I suppose there's no need to intercept the old symbol to handle executables using old ABI, correct?

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


More information about the llvm-commits mailing list