Skip to content

Commit c2df8b7

Browse files
committed
[compiler-rt] Don't intercept sigaction and signal for CHERI RISCV
This avoids the following errors: <inline asm>:10:1: error: instruction requires the following: Not Capability Mode 10 | tail __interceptor_signal@plt | ^ <inline asm>:19:1: error: instruction requires the following: Not Capability Mode 19 | tail __interceptor_sigaction@plt |
1 parent 4c80839 commit c2df8b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@
498498
#define SANITIZER_INTERCEPT_WCSLEN 1
499499
#define SANITIZER_INTERCEPT_WCSCAT SI_POSIX
500500
#define SANITIZER_INTERCEPT_WCSDUP SI_POSIX
501-
#define SANITIZER_INTERCEPT_SIGNAL_AND_SIGACTION (!SI_WINDOWS && SI_NOT_FUCHSIA)
501+
#define SANITIZER_INTERCEPT_SIGNAL_AND_SIGACTION (!SI_WINDOWS && SI_NOT_FUCHSIA && !SANITIZER_RISCV64)
502502
#define SANITIZER_INTERCEPT_BSD_SIGNAL SI_ANDROID
503503

504504
#define SANITIZER_INTERCEPT_ACCT (SI_NETBSD || SI_FREEBSD)

0 commit comments

Comments
 (0)