diff options
author | Simon Dardis <simon.dardis@imgtec.com> | 2017-09-26 11:49:04 +0000 |
---|---|---|
committer | Simon Dardis <simon.dardis@imgtec.com> | 2017-09-26 11:49:04 +0000 |
commit | 03dddb6de705e6d97d6cbadc47c50a5a29171c48 (patch) | |
tree | 47d55fd47543a774b6929c492fe742c0a2f7e5a6 /test/asan/TestCases/Linux | |
parent | 1f707b9f77ccd90b3a5ca32248d5fdfe177e7852 (diff) |
[mips][asan] Fix preinstalled_signal.cc test for mips
Linux for mips has a non-standard layout for the kernel sigaction struct.
Adjust the layout by the minimally amount to get the test to pass, as we
don't require the usage of the restorer function.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@314200 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/asan/TestCases/Linux')
-rw-r--r-- | test/asan/TestCases/Linux/preinstalled_signal.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/asan/TestCases/Linux/preinstalled_signal.cc b/test/asan/TestCases/Linux/preinstalled_signal.cc index 2beba4e66..ac4ea93a5 100644 --- a/test/asan/TestCases/Linux/preinstalled_signal.cc +++ b/test/asan/TestCases/Linux/preinstalled_signal.cc @@ -32,8 +32,14 @@ void SigHandler(int signum) { handler = "TestSigHandler"; } void SigAction(int, siginfo_t *, void *) { handler = "TestSigAction"; } struct KernelSigaction { + +#if defined(__mips__) + unsigned long flags; + __sighandler_t handler; +#else __sighandler_t handler; unsigned long flags; +#endif void (*restorer)(); char unused[1024]; }; |