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

This commit is contained in:
Colin Cross
2014-05-20 23:03:07 +00:00
committed by Gerrit Code Review

View File

@@ -102,7 +102,7 @@ void* dlsym(void* handle, const char* symbol) {
ElfW(Sym)* sym = NULL;
if (handle == RTLD_DEFAULT) {
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);
soinfo* si = find_containing_library(caller_addr);