aboutsummaryrefslogtreecommitdiffstats
path: root/main/llvm/compiler-rt-0001-musl-no-dlvsym.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/llvm/compiler-rt-0001-musl-no-dlvsym.patch')
-rw-r--r--main/llvm/compiler-rt-0001-musl-no-dlvsym.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/main/llvm/compiler-rt-0001-musl-no-dlvsym.patch b/main/llvm/compiler-rt-0001-musl-no-dlvsym.patch
new file mode 100644
index 0000000000..1d427d93b2
--- /dev/null
+++ b/main/llvm/compiler-rt-0001-musl-no-dlvsym.patch
@@ -0,0 +1,15 @@
+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
+@@ -24,7 +24,7 @@ bool GetRealFunctionAddress(const char *func_name, uptr *func_addr,
+ 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);
+ }
+--
+2.1.4