am 3d2bc5d6: Merge "HACK: linker: check for handle==0xffffffff on LP64"

* commit '3d2bc5d6c8f08e587a8dad848829f98776549ba6':
  HACK: linker: check for handle==0xffffffff on LP64
This commit is contained in:
Colin Cross
2014-05-20 23:36:41 +00:00
committed by Android Git Automerger

View File

@@ -102,7 +102,7 @@ void* dlsym(void* handle, const char* symbol) {
ElfW(Sym)* sym = NULL; ElfW(Sym)* sym = NULL;
if (handle == RTLD_DEFAULT) { if (handle == RTLD_DEFAULT) {
sym = dlsym_linear_lookup(symbol, &found, NULL); sym = dlsym_linear_lookup(symbol, &found, NULL);
} else if (handle == RTLD_NEXT) { } else if (handle == RTLD_NEXT || handle == (void*)0xffffffffL) {
void* caller_addr = __builtin_return_address(0); void* caller_addr = __builtin_return_address(0);
soinfo* si = find_containing_library(caller_addr); soinfo* si = find_containing_library(caller_addr);