[compiler-rt] ec7c8cd - [compiler-rt][NFC] Add preprocessor definitions for 64 bit file interceptors that were missing (#108059)

via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 11 14:34:48 PDT 2024


Author: Chris Apple
Date: 2024-09-11T15:34:45-06:00
New Revision: ec7c8cd45fa3ca8cc5584caee4b1eaf843294af5

URL: https://github.com/llvm/llvm-project/commit/ec7c8cd45fa3ca8cc5584caee4b1eaf843294af5
DIFF: https://github.com/llvm/llvm-project/commit/ec7c8cd45fa3ca8cc5584caee4b1eaf843294af5.diff

LOG: [compiler-rt][NFC] Add preprocessor definitions for 64 bit file interceptors that were missing (#108059)

These are needed in #108057

Added: 
    

Modified: 
    compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h

Removed: 
    


################################################################################
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