[compiler-rt] r316598 - Try to unbreak Linux sanitizers
Kamil Rytarowski via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 25 10:56:36 PDT 2017
Author: kamil
Date: Wed Oct 25 10:56:36 2017
New Revision: 316598
URL: http://llvm.org/viewvc/llvm-project?rev=316598&view=rev
Log:
Try to unbreak Linux sanitizers
Add fallback definition of internal_syscall_ptr and internal_syscall64
for Linux/x86_64 and Linux/aarch64.
Modified:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_syscall_linux_aarch64.inc
compiler-rt/trunk/lib/sanitizer_common/sanitizer_syscall_linux_x86_64.inc
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_syscall_linux_aarch64.inc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_syscall_linux_aarch64.inc?rev=316598&r1=316597&r2=316598&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_syscall_linux_aarch64.inc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_syscall_linux_aarch64.inc Wed Oct 25 10:56:36 2017
@@ -127,6 +127,9 @@ static uptr __internal_syscall(u64 nr, u
#define internal_syscall(...) __SYSCALL_DISP(__internal_syscall, __VA_ARGS__)
+#define internal_syscall_ptr internal_syscall
+#define internal_syscall64 internal_syscall
+
// Helper function used to avoid cobbler errno.
bool internal_iserror(uptr retval, int *rverrno) {
if (retval >= (uptr)-4095) {
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_syscall_linux_x86_64.inc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_syscall_linux_x86_64.inc?rev=316598&r1=316597&r2=316598&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_syscall_linux_x86_64.inc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_syscall_linux_x86_64.inc Wed Oct 25 10:56:36 2017
@@ -20,6 +20,9 @@ static uptr internal_syscall(u64 nr) {
return retval;
}
+#define internal_syscall_ptr internal_syscall
+#define internal_syscall64 internal_syscall
+
template <typename T1>
static uptr internal_syscall(u64 nr, T1 arg1) {
u64 retval;
More information about the llvm-commits
mailing list