From acfc63760eef50cd451b80df8860d17bbab1ca33 Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Mon, 16 Jun 2014 15:44:20 -0700 Subject: [PATCH] Revert "HACK: linker: check for handle==0xffffffff on LP64" This reverts commit 346fea0805b8c2a20171c9b4ab1aac5f66ede5de. Change-Id: Id3fd79451e4218e68e39ce22f21408cbf93255ee --- linker/dlfcn.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linker/dlfcn.cpp b/linker/dlfcn.cpp index 6d63ad646..f0b6c8afc 100644 --- a/linker/dlfcn.cpp +++ b/linker/dlfcn.cpp @@ -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);