Revert "Add support for protected local symbol lookup."

This reverts commit d97e9f546e.

Bug: 17107521
(cherry picked from commit 9419420919)

Change-Id: I1a6df946ac8075699e77d68ffa6ac4a21b88e4bf
This commit is contained in:
Dmitriy Ivanov
2014-08-18 15:08:51 -07:00
parent 0baf2ca34c
commit 02aa70589d
8 changed files with 31 additions and 163 deletions

View File

@@ -62,25 +62,6 @@ TEST(dlfcn, dlsym_in_self) {
ASSERT_EQ(0, dlclose(self));
}
#if defined(__arm__)
// This seems to be working only for arm.
// Others platforms optimize LOCAL PROTECTED symbols.
TEST(dlfcn, dlsym_local_symbol) {
void* handle = dlopen("libtest_local_symbol.so", RTLD_NOW);
ASSERT_TRUE(handle != NULL);
dlerror();
void* sym = dlsym(handle, "private_taxicab_number");
ASSERT_TRUE(sym == NULL);
ASSERT_STREQ("undefined symbol: private_taxicab_number", dlerror());
uint32_t (*f)(void);
f = reinterpret_cast<uint32_t (*)(void)>(dlsym(handle, "dlsym_local_symbol_get_taxicab_number_using_dlsym"));
ASSERT_TRUE(f != NULL);
ASSERT_EQ(1729U, f());
dlclose(handle);
}
#endif
TEST(dlfcn, dlsym_with_dependencies) {
void* handle = dlopen("libtest_with_dependency.so", RTLD_NOW);
ASSERT_TRUE(handle != NULL);