summaryrefslogtreecommitdiffstats
path: root/libcxxabi
diff options
context:
space:
mode:
authorHoward Hinnant <hhinnant@apple.com>2012-09-21 19:12:56 +0000
committerHoward Hinnant <hhinnant@apple.com>2012-09-21 19:12:56 +0000
commited3d690f68d2a49a55f2f767a68f5dd66914b64a (patch)
tree9ba276a754d409151375b280f7611bb0dfed57bd /libcxxabi
parent165f8af8c52130ad8fc5945e4e53ac0bb2b340df (diff)
downloadbcm5719-llvm-ed3d690f68d2a49a55f2f767a68f5dd66914b64a.tar.gz
bcm5719-llvm-ed3d690f68d2a49a55f2f767a68f5dd66914b64a.zip
Tweak use of dlopen to be a little more correct and higher performing.
llvm-svn: 164404
Diffstat (limited to 'libcxxabi')
-rw-r--r--libcxxabi/src/stdexcept.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxxabi/src/stdexcept.cpp b/libcxxabi/src/stdexcept.cpp
index 7071915addb..4f175a27ef3 100644
--- a/libcxxabi/src/stdexcept.cpp
+++ b/libcxxabi/src/stdexcept.cpp
@@ -44,7 +44,7 @@ private:
const void*
compute_gcc_empty_string_storage() _LIBCPP_CANTTHROW
{
- void* handle = dlopen("libstdc++.dylib", RTLD_LAZY);
+ void* handle = dlopen("/usr/lib/libstdc++.6.dylib", RTLD_NOLOAD);
if (handle == 0)
return 0;
return (const char*)dlsym(handle, "_ZNSs4_Rep20_S_empty_rep_storageE") + offset;
OpenPOWER on IntegriCloud