OSDN Git Service

Do not load second copy of a library into same namespace
authorDimitry Ivanov <dimitry@google.com>
Wed, 1 Feb 2017 16:54:43 +0000 (08:54 -0800)
committerDimitry Ivanov <dimitry@google.com>
Wed, 1 Feb 2017 17:43:09 +0000 (09:43 -0800)
commit3bd906146be88fb82ee4a93d06ff389a559155a7
treef4968eca30e92469d910a604815f1078e23ed4b0
parentb88112dcfc7954f001e722bb274b110e253dae6e
Do not load second copy of a library into same namespace

This workaround was introduced in M in order to make sure
that linker loads libraries provided in apk in case a library
with the same name was loaded by the system.

This is no longer a problem starting with Android N because
app is using different namespace and therefore does not see
libraries loaded by the system.

Test: bionic-unit-tests --gtest_filter=dl*:Dl*
Change-Id: I9995258c0f361e8df35420682b84e85a0cb924b4
linker/linker.cpp