am 26dde2d2: am ddc44974: Merge "Revert "HACK: linker: check for handle==0xffffffff on LP64""

* commit '26dde2d2e407b45ebeeacd9784823ff1c8f78f64':
  Revert "HACK: linker: check for handle==0xffffffff on LP64"
This commit is contained in:
Colin Cross 2014-06-29 03:24:21 +00:00 committed by Android Git Automerger
commit 4720dc7372

View File

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