* commit '8a6217df921eadf7e2f92fb82f2e6f1bfe36d5cb': HACK: linker: check for handle==0xffffffff on LP64
This commit is contained in:
commit
5788984925
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user