platform/android/dlsym-weak: do not call LoadLibrary to find server library instance

This commit is contained in:
mittorn
2023-12-16 20:23:39 +03:00
committed by Alibek Omarov
parent 96c367973a
commit 4953656ee0
3 changed files with 10 additions and 2 deletions

View File

@@ -119,14 +119,15 @@ static Elf_Sym* dlsym_handle_lookup( soinfo* si, const char* name )
return soinfo_elf_lookup( si, elfhash( name ), name );
}
extern "C" void *ANDROID_LoadLibrary( const char *dllname );
#include "lib_android.h"
static int dladdr_fallback( const void *addr, Dl_info *info )
{
static soinfo *server_info;
Elf_Sym *sym;
if( !server_info )
server_info = ( soinfo* )ANDROID_LoadLibrary( "server" );
server_info = ( soinfo* )ANDROID_GetServerLibrary();
if( !server_info )
return 0;
//__android_log_print( ANDROID_LOG_ERROR, "dladdr_fb", "%p %p\n", addr, server_info );