[PATCH] D83664: [compiler-rt][sanitizers] Fix GetPcSpBp determination of SP on 32-bit Solaris/x86
Rainer Orth via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 14 03:57:02 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rGf0e9b76c3500: [compiler-rt][sanitizers] Fix GetPcSpBp determination of SP on 32-bit… (authored by ro).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D83664/new/
https://reviews.llvm.org/D83664
Files:
compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp
Index: compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp
===================================================================
--- compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp
+++ compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp
@@ -2042,13 +2042,13 @@
# ifndef REG_EBP
# define REG_EBP 6 // REG_FP
# endif
-# ifndef REG_ESP
-# define REG_ESP 17 // REG_SP
+# ifndef REG_UESP
+# define REG_UESP 17 // REG_SP
# endif
# endif
*pc = ucontext->uc_mcontext.gregs[REG_EIP];
*bp = ucontext->uc_mcontext.gregs[REG_EBP];
- *sp = ucontext->uc_mcontext.gregs[REG_ESP];
+ *sp = ucontext->uc_mcontext.gregs[REG_UESP];
# endif
#elif defined(__powerpc__) || defined(__powerpc64__)
ucontext_t *ucontext = (ucontext_t*)context;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D83664.277766.patch
Type: text/x-patch
Size: 745 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200714/536448ea/attachment.bin>
More information about the llvm-commits
mailing list