[PATCH] D53806: Handle NetBSD symbol mangling for nanosleep and vfork
Kamil Rytarowski via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 29 01:39:08 PDT 2018
krytarowski created this revision.
krytarowski added reviewers: vitalybuka, dvyukov, joerg.
krytarowski added a project: Sanitizers.
Herald added subscribers: llvm-commits, kubamracek.
Native code generated on NetBSD mangles:
- vfork into __vfork14
- nanosleep into __nanosleep50
Handle this accordingly in TSan.
Repository:
rL LLVM
https://reviews.llvm.org/D53806
Files:
lib/tsan/rtl/tsan_interceptors.cc
Index: lib/tsan/rtl/tsan_interceptors.cc
===================================================================
--- lib/tsan/rtl/tsan_interceptors.cc
+++ lib/tsan/rtl/tsan_interceptors.cc
@@ -53,6 +53,8 @@
#define stdout ((char*)&__sF + (__sF_size * 1))
#define stderr ((char*)&__sF + (__sF_size * 2))
+#define nanosleep __nanosleep50
+#define vfork __vfork14
#endif
#if SANITIZER_ANDROID
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D53806.171461.patch
Type: text/x-patch
Size: 394 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181029/14cdd96d/attachment.bin>
More information about the llvm-commits
mailing list