Even RTLD_GLOBAL loads can be linked to libraries we care about

* When a library libBlah.so is loaded, it might be linked to libGL.so. If so, we
  need to go populate our original functions and perform any callbacks when
  libGL.so gets loaded as a dependency. This is true even if the library isn't
  loaded as LOCAL.
This commit is contained in:
baldurk
2019-02-11 14:33:35 +00:00
parent 02abe02fe8
commit 78b03633fa
+2 -3
View File
@@ -161,10 +161,9 @@ void *intercept_dlopen(const char *filename, int flag, void *ret)
}
}
// for local library loads, this library might depend on one we care about, so check again as we
// this library might depend on one we care about, so check again as we
// did in EndHookRegistration to see if any library has been loaded.
if((flag & RTLD_GLOBAL) == 0)
CheckLoadedLibraries();
CheckLoadedLibraries();
return ret;
}