Fix dlsym() to take into account RTLD_GLOBAL/LOCAL

Symbols from libraries opened with RTLD_LOCAL (default)
  should not be visible via dlsym(RLTD_DEFAULT/RTLD_NEXT, .)

Bug: 17512583
Change-Id: I1758943081a67cf3d49ba5808e061b8251a91964
This commit is contained in:
Dmitriy Ivanov
2014-09-15 17:00:10 -07:00
parent 0b8f6d592a
commit e8ba50fe0d
5 changed files with 73 additions and 20 deletions

View File

@@ -19,6 +19,6 @@
uint32_t dlopen_testlib_taxicab_number = 1729;
bool dlopen_testlib_simple_func() {
extern "C" bool dlopen_testlib_simple_func() {
return true;
}