aboutsummaryrefslogtreecommitdiffstats
path: root/libdl/libdl.arm64.map
diff options
context:
space:
mode:
authorJiyong Park <jiyong@google.com>2017-04-03 23:10:37 +0900
committerJiyong Park <jiyong@google.com>2017-04-28 10:14:28 +0900
commit01de74e76d1131b5c5b0120d07e8f468ac5f8fac (patch)
tree1cd468876895e1ed149efcde3382edeaddcdab31 /libdl/libdl.arm64.map
parent627ed9162538d847ea4e530fd443570d37f57d65 (diff)
downloadandroid_bionic-01de74e76d1131b5c5b0120d07e8f468ac5f8fac.tar.gz
android_bionic-01de74e76d1131b5c5b0120d07e8f468ac5f8fac.tar.bz2
android_bionic-01de74e76d1131b5c5b0120d07e8f468ac5f8fac.zip
linker: add android_get_exported_namespace
Depending on how ld.config.txt is configured, there can be multiple built-in namespaces created by the linker from the beginning of a process. android_get_exported_namespace is a platform only API for getting a handle (android_namespace_t*) to one of the built-in namespaces with given name. The returned namespace can then be given to android_dlopen_ext in order to explicitly specify the target namespace where the library is searched and loaded from. Note that this function only returns 'exported' namespaces created via ld.config.txt file. In order to export a namespace, the visible property should be set to true: namespace.<name>.visible = true Namespaces are hidden by default. Hidden namespaces and namespaces that are created programmatically, notably 'classloader-namespace', aren't returned by this function. Bug: 36851137 Test: confirmed that namespaces created with ld.config.txt is retrieved. Test: linker-unit-tests passes Merged-in: I714b510fa24f77e42c3dfc4c827b3befa8bb2951 Change-Id: I0d05fa7e0e116009edf8ea362ab46774bc617cbf (cherry picked from commit d7c4832e6a640be972017e85ab21e72950dfeddd)
Diffstat (limited to 'libdl/libdl.arm64.map')
-rw-r--r--libdl/libdl.arm64.map1
1 files changed, 1 insertions, 0 deletions
diff --git a/libdl/libdl.arm64.map b/libdl/libdl.arm64.map
index 3b797f79e..8270fe99d 100644
--- a/libdl/libdl.arm64.map
+++ b/libdl/libdl.arm64.map
@@ -46,4 +46,5 @@ LIBC_PLATFORM {
android_init_anonymous_namespace;
android_create_namespace;
android_link_namespaces;
+ android_get_exported_namespace;
} LIBC_N;