diff options
Diffstat (limited to 'main/llvm/compiler-rt-3.6-musl-no-dlvsym.patch')
-rw-r--r-- | main/llvm/compiler-rt-3.6-musl-no-dlvsym.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/main/llvm/compiler-rt-3.6-musl-no-dlvsym.patch b/main/llvm/compiler-rt-3.6-musl-no-dlvsym.patch new file mode 100644 index 0000000000..444f4e073b --- /dev/null +++ b/main/llvm/compiler-rt-3.6-musl-no-dlvsym.patch @@ -0,0 +1,19 @@ +diff --git a/lib/interception/interception_linux.cc b/lib/interception/interception_linux.cc +index 6e908ac..7fcf2a6 100644 +--- a/lib/interception/interception_linux.cc ++++ b/lib/interception/interception_linux.cc +@@ -21,13 +21,13 @@ namespace __interception { + bool GetRealFunctionAddress(const char *func_name, uptr *func_addr, + uptr real, uptr wrapper) { + *func_addr = (uptr)dlsym(RTLD_NEXT, func_name); + return real == wrapper; + } + +-#if !defined(__ANDROID__) // android does not have dlvsym ++#if 0 // !defined(__ANDROID__) // android does not have dlvsym + void *GetFuncAddrVer(const char *func_name, const char *ver) { + return dlvsym(RTLD_NEXT, func_name, ver); + } + #endif // !defined(__ANDROID__) + + } // namespace __interception |