OSDN Git Service

linker: Allow caller to specify parent namespace
authorDimitry Ivanov <dimitry@google.com>
Thu, 12 May 2016 22:20:21 +0000 (15:20 -0700)
committerDimitry Ivanov <dimitry@google.com>
Tue, 17 May 2016 22:58:28 +0000 (15:58 -0700)
commit49cfc899a3708fae9175e44c0c02cd479fda8b36
treeed4300b8819592483e04173f475ede593b0558a4
parentd120719e250d3f112b1c71ae775cab09c70191cd
linker: Allow caller to specify parent namespace

This change enables apps to share libraries opened
with RTLD_GLOBAL between different classloader namespaces.

The new parameter to create_namespace allows native_loader
to instruct the linker to share libraries belonging to
global group from a specified namespace instead of
using the caller_ns.

Bug: http://b/28560538
Bug: https://code.google.com/p/android/issues/detail?id=208458
Change-Id: I5d0c62730bbed19cdeb16c7559c74aa262a2475f
(cherry picked from commit fc2da53440383fe1026e0eb287d643b577c2707d)
linker/dlfcn.cpp
linker/linker.cpp
linker/linker.h
tests/dlext_private.h
tests/dlext_test.cpp