[compiler-rt] [compiler-rt][NFC] Add preprocessor definitions for 64 bit file interceptors that were missing (PR #108059)
Chris Apple via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 10 10:28:39 PDT 2024
https://github.com/cjappl created https://github.com/llvm/llvm-project/pull/108059
These are needed in #108057
They follow the same pattern as PREAD64 etc, which can be seen below where I added these
>From 0c74b0f955bc0ba38b07b841fbcef832cb05ec27 Mon Sep 17 00:00:00 2001
From: Chris Apple <cja-private at pm.me>
Date: Tue, 10 Sep 2024 09:46:46 -0700
Subject: [PATCH] New platform interceptor definitions
---
.../lib/sanitizer_common/sanitizer_platform_interceptors.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
index 7d7ed9bc07ccfe..e71a6bcd6a8371 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
@@ -183,6 +183,11 @@
#define SANITIZER_INTERCEPT_FPUTS SI_POSIX
#define SANITIZER_INTERCEPT_PUTS SI_POSIX
+#define SANITIZER_INTERCEPT_CREAT64 (SI_GLIBC || SI_SOLARIS32)
+#define SANITIZER_INTERCEPT_FCNTL64 (SI_GLIBC || SI_SOLARIS32)
+#define SANITIZER_INTERCEPT_OPEN64 (SI_GLIBC || SI_SOLARIS32)
+#define SANITIZER_INTERCEPT_OPENAT64 (SI_GLIBC || SI_SOLARIS32)
+
#define SANITIZER_INTERCEPT_PREAD64 (SI_GLIBC || SI_SOLARIS32)
#define SANITIZER_INTERCEPT_PWRITE64 (SI_GLIBC || SI_SOLARIS32)
More information about the llvm-commits
mailing list