Skip to content

Commit 7281f67

Browse files
Use RTLD_DEEPBIND flag in dlopen not to override symbols from loaded library
Change-Id: I7cee40bb034a04aafa348343fa76b5878b91cdff Signed-off-by: Mateusz Jablonski <[email protected]>
1 parent cacdcf1 commit 7281f67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/inc/ze_util.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
# define HMODULE void*
2626
# define MAKE_LIBRARY_NAME(NAME, VERSION) "lib" NAME ".so." VERSION
2727
# define MAKE_VALIDATION_LAYER_NAME(NAME) "lib" NAME ".so." L0_VALIDATION_LAYER_SUPPORTED_VERSION
28-
# define LOAD_DRIVER_LIBRARY(NAME) dlopen(NAME, RTLD_LAZY|RTLD_LOCAL)
28+
# define LOAD_DRIVER_LIBRARY(NAME) dlopen(NAME, RTLD_LAZY|RTLD_LOCAL|RTLD_DEEPBIND)
2929
# define FREE_DRIVER_LIBRARY(LIB) if(LIB) dlclose(LIB)
3030
# define GET_FUNCTION_PTR(LIB, FUNC_NAME) dlsym(LIB, FUNC_NAME)
3131
#endif

0 commit comments

Comments
 (0)