[PATCH] D51419: Switch syscall(2)/__syscall(2) calls to libc calls on NetBSD
Vitaly Buka via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 4 16:01:20 PDT 2018
vitalybuka added a comment.
Now SANITIZER_NETBSD shares almost nothing with the rest
May I ask you to create sanitizer_netbsd.cc and move code there?
================
Comment at: lib/sanitizer_common/sanitizer_linux.cc:204
+ void *real = dlsym(RTLD_NEXT, symbol);
+ if (!real)
+ real = dlsym(RTLD_DEFAULT, symbol);
----------------
This is very similar to GetRealFunctionAddress from interception/interception_linux.cc
Maybe just use DEFINE_REAL with INTERCEPT_FUNCTION?
Repository:
rL LLVM
https://reviews.llvm.org/D51419
More information about the llvm-commits
mailing list