diff options
author | Vitaly Buka <vitalybuka@google.com> | 2020-10-19 22:44:34 -0700 |
---|---|---|
committer | Martin Liska <mliska@suse.cz> | 2020-10-20 11:15:10 +0200 |
commit | 00b355522b7843f4d9d93172aa7521b223b77587 (patch) | |
tree | 43951a8ef71ce3b65bdf96a98b37aaf61bd62ceb /libsanitizer/sanitizer_common | |
parent | f0c0f124ebe28b71abccbd7247678c9ac608b649 (diff) | |
download | gcc-00b355522b7843f4d9d93172aa7521b223b77587.tar.gz |
Fix compilation on older systems
Cherry-pick upstream commit f97ca48b1cbbf5da065e94271cb3af4f1c907dd4.
Fixes https://bugs.llvm.org/show_bug.cgi?id=47896
Diffstat (limited to 'libsanitizer/sanitizer_common')
-rw-r--r-- | libsanitizer/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libsanitizer/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cpp b/libsanitizer/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cpp index 6a3c00458ef..eb89f1fddc5 100644 --- a/libsanitizer/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cpp +++ b/libsanitizer/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cpp @@ -486,6 +486,10 @@ typedef user_regs_struct regs_struct; #define REG_SP rsp #endif #define ARCH_IOVEC_FOR_GETREGSET +// Support ptrace extensions even when compiled without required kernel support +#ifndef NT_X86_XSTATE +#define NT_X86_XSTATE 0x202 +#endif // Compiler may use FP registers to store pointers. static constexpr uptr kExtraRegs[] = {NT_X86_XSTATE, NT_FPREGSET}; |