Load wrapped library early in case of Android

On newer Android it is not possible to use the
LD_PRELOAD functionality. The target application
should be directly linked with the RenderDoc library.
However in that case we also need to load the
target library early, so a simple implementation
for the PosixHookLibrary is added.
This commit is contained in:
Peter Gal
2017-04-10 17:08:56 +02:00
committed by Baldur Karlsson
parent b37a01d8ad
commit 386c830b1d
+4 -1
View File
@@ -24,10 +24,13 @@
#include "os/posix/posix_hook.h"
#include <dlfcn.h>
void PosixHookInit()
{
}
void PosixHookLibrary(const char *name, dlopenCallback cb)
{
}
cb(dlopen(name, RTLD_NOW));
}