aboutsummaryrefslogtreecommitdiffstats
path: root/main/llvm/compiler-rt-3.6-musl-no-dlvsym.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-05-21 11:37:40 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2015-05-21 11:59:24 +0000
commiteac22325a7d4cf3ca559fa4d3ee2e49f4e879ffd (patch)
treebe9d3da7650e4eeb3ba22c6d0c1cca45ccb51517 /main/llvm/compiler-rt-3.6-musl-no-dlvsym.patch
parent3681f34c0d3bd9b6d30a7817989a862e29ab4fe4 (diff)
downloadaports-eac22325a7d4cf3ca559fa4d3ee2e49f4e879ffd.tar.bz2
aports-eac22325a7d4cf3ca559fa4d3ee2e49f4e879ffd.tar.xz
main/llvm: upgrade to 3.6.0
move from testing fixes #4068
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.patch19
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