Skip to content

Commit

Permalink
[sanitizer] Fix compilation on older systems
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalybuka committed Oct 20, 2020
1 parent 037ef7d commit f97ca48
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -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};

Expand Down

0 comments on commit f97ca48

Please sign in to comment.