summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-06-14 22:21:23 +0300
committerAndrei Karas <akaras@inbox.ru>2018-06-18 22:05:19 +0300
commitec62bdfdde4f04e2ef05592219663ce183cb16be (patch)
tree652c1d6a193fefdc53602f589a2de571dcbff5e8
parent7c9860b275ee1c1d39bad2ca2551da82bd525267 (diff)
downloadhercules-ec62bdfdde4f04e2ef05592219663ce183cb16be.tar.gz
hercules-ec62bdfdde4f04e2ef05592219663ce183cb16be.tar.bz2
hercules-ec62bdfdde4f04e2ef05592219663ce183cb16be.tar.xz
hercules-ec62bdfdde4f04e2ef05592219663ce183cb16be.zip
Remove flag RTLD_DEEPBIND from dlopen.
This flag uneeded now, and it may prevent using asan in gcc-8.
-rw-r--r--src/common/HPM.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/common/HPM.h b/src/common/HPM.h
index e55397022..efa5d8370 100644
--- a/src/common/HPM.h
+++ b/src/common/HPM.h
@@ -42,11 +42,7 @@
#define DLL HINSTANCE
#else // ! WIN32
#include <dlfcn.h>
- #ifdef RTLD_DEEPBIND // Certain linux distributions require this, but it's not available everywhere
- #define plugin_open(x) dlopen((x),RTLD_NOW|RTLD_DEEPBIND)
- #else // ! RTLD_DEEPBIND
- #define plugin_open(x) dlopen((x),RTLD_NOW)
- #endif // RTLD_DEEPBIND
+ #define plugin_open(x) dlopen((x), RTLD_NOW)
#define plugin_import(x,y,z) (z)dlsym((x),(y))
#define plugin_close(x) dlclose(x)
#define plugin_geterror(buf) ((void)buf, dlerror())