aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorDerek Bruening <bruening@google.com>2016-06-14 15:15:38 +0000
committerDerek Bruening <bruening@google.com>2016-06-14 15:15:38 +0000
commitf6f149da29d9d4553901f4d24201d125cabfd4e9 (patch)
tree544c1b03be046ec58d2edc30dcebd57a92cb407e /clang/lib/CodeGen/CodeGenModule.cpp
parent5e6298b0f2b06c1b8c9713d2044576558e3186cb (diff)
downloadllvm-f6f149da29d9d4553901f4d24201d125cabfd4e9.zip
llvm-f6f149da29d9d4553901f4d24201d125cabfd4e9.tar.gz
llvm-f6f149da29d9d4553901f4d24201d125cabfd4e9.tar.bz2
[sanitizer][esan] Add internal_sigaction_syscall
Summary: Adds a version of sigaction that uses a raw system call, to avoid circular dependencies and support calling sigaction prior to setting up interceptors. The new sigaction relies on an assembly sigreturn routine for its restorer, which is Linux x86_64-only for now. Uses the new sigaction to initialize the working set tool's shadow fault handler prior to libc interceptor being set up. This is required to support instrumentation invoked during interceptor setup, which happens with an instrumented tcmalloc or other allocator compiled with esan. Adds a test that emulates an instrumented allocator. Reviewers: aizatsky Subscribers: vitalybuka, tberghammer, zhaoqin, danalbert, kcc, srhines, eugenis, llvm-commits, kubabrecka Differential Revision: http://reviews.llvm.org/D21083 llvm-svn: 272676
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions