fix: Remove RTLD_DEEPBIND from dlopen call

Resolves: NEO-15651

Signed-off-by: Pawel Szymichowski <pawel.szymichowski@intel.com>
This commit is contained in:
Pawel Szymichowski
2025-07-25 09:45:18 +00:00
committed by Compute-Runtime-Automation
parent bb734eb33a
commit 211cd3dd5d
2 changed files with 3 additions and 11 deletions

View File

@@ -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);