403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.216.168
Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31
System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64
User : studiokobylisy_cz ( 1008)
PHP Version : 7.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/ports/lang/intel-compute-runtime/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/lang/intel-compute-runtime/files/patch-rtld
RTLD_DEEPBIND isn't available on non-Linux

shared/source/os_interface/linux/os_library_helper.cpp:17:24: error: use of undeclared identifier 'RTLD_DEEPBIND'
        dlopenFlag &= ~RTLD_DEEPBIND;
                       ^
shared/source/os_interface/linux/os_library_linux.cpp:41:39: error: use of undeclared identifier 'RTLD_DEEPBIND'
        auto dlopenFlag = RTLD_LAZY | RTLD_DEEPBIND;
                                      ^

--- shared/source/os_interface/linux/os_library_helper.cpp.orig	2021-03-01 17:17:25 UTC
+++ shared/source/os_interface/linux/os_library_helper.cpp
@@ -14,7 +14,9 @@ namespace NEO {
 namespace Linux {
 void adjustLibraryFlags(int &dlopenFlag) {
     if (DebugManager.flags.DisableDeepBind.get()) {
+#ifdef RTLD_DEEPBIND
         dlopenFlag &= ~RTLD_DEEPBIND;
+#endif
     }
 }
 } // namespace Linux
--- shared/source/os_interface/linux/os_library_linux.cpp.orig	2021-03-01 17:17:25 UTC
+++ shared/source/os_interface/linux/os_library_linux.cpp
@@ -35,7 +35,7 @@ OsLibrary::OsLibrary(const std::string &name) {
     if (name.empty()) {
         this->handle = SysCalls::dlopen(0, RTLD_LAZY);
     } else {
-#ifdef SANITIZER_BUILD
+#if defined(SANITIZER_BUILD) || !defined(RTLD_DEEPBIND)
         auto dlopenFlag = RTLD_LAZY;
 #else
         auto dlopenFlag = RTLD_LAZY | RTLD_DEEPBIND;

Youez - 2016 - github.com/yon3zu
LinuXploit