mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-28 16:48:45 +08:00
fix: Remove RTLD_DEEPBIND from dlopen call
Resolves: NEO-15651 Signed-off-by: Pawel Szymichowski <pawel.szymichowski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
bb734eb33a
commit
211cd3dd5d
@@ -42,12 +42,7 @@ OsLibrary::OsLibrary(const OsLibraryCreateProperties &properties) {
|
||||
if (properties.libraryName.empty() || properties.performSelfLoad) {
|
||||
this->handle = SysCalls::dlopen(0, RTLD_LAZY);
|
||||
} else {
|
||||
#ifdef SANITIZER_BUILD
|
||||
auto dlopenFlag = RTLD_LAZY;
|
||||
#else
|
||||
auto dlopenFlag = RTLD_LAZY | RTLD_DEEPBIND;
|
||||
/* Background: https://github.com/intel/compute-runtime/issues/122 */
|
||||
#endif
|
||||
dlopenFlag = properties.customLoadFlags ? *properties.customLoadFlags : dlopenFlag;
|
||||
adjustLibraryFlags(dlopenFlag);
|
||||
this->handle = SysCalls::dlopen(properties.libraryName.c_str(), dlopenFlag);
|
||||
|
||||
Reference in New Issue
Block a user