summaryrefslogtreecommitdiffstats
path: root/rootdir
diff options
context:
space:
mode:
authorLogan Chien <loganchien@google.com>2018-01-18 12:06:14 +0800
committerLogan Chien <loganchien@google.com>2018-01-23 11:02:54 +0800
commitea4a2bdd448ae6811d3073b2ee3f04632739c9cf (patch)
tree8d56df08209f0d55788579927696cccff474e866 /rootdir
parentc6805c3e9cdcbc8eed115f7f2a3632575ad06177 (diff)
downloadsystem_core-ea4a2bdd448ae6811d3073b2ee3f04632739c9cf.tar.gz
system_core-ea4a2bdd448ae6811d3073b2ee3f04632739c9cf.tar.bz2
system_core-ea4a2bdd448ae6811d3073b2ee3f04632739c9cf.zip
ld.config.txt: Link vendor vndk ns to default ns
This commit links the vndk namespace of vendor processes to the default namespace of vendor processes. allow_all_shared_libs is specified so that VNDK extensions can link with other vendor libraries in /vendor/lib[64]. Bug: 69824336 Test: Create a vndk-ext lib that links to vendor lib and use that vndk-ext lib in a vendor executable. Change-Id: Ibd3dc2e5f0f2e6ff9fc9677c6bcfcf87a1a70e50
Diffstat (limited to 'rootdir')
-rw-r--r--rootdir/etc/ld.config.txt.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/rootdir/etc/ld.config.txt.in b/rootdir/etc/ld.config.txt.in
index 2a801fad8..4aec85c98 100644
--- a/rootdir/etc/ld.config.txt.in
+++ b/rootdir/etc/ld.config.txt.in
@@ -285,10 +285,12 @@ namespace.vndk.asan.search.paths += /system/${LIB}/vndk%VNDK_VER%
# When these NDK libs are required inside this namespace, then it is redirected
# to the system namespace. This is possible since their ABI is stable across
# Android releases.
-namespace.vndk.links = system
+namespace.vndk.links = system,default
namespace.vndk.link.system.shared_libs = %LLNDK_LIBRARIES%
namespace.vndk.link.system.shared_libs += %SANITIZER_RUNTIME_LIBRARIES%
+namespace.vndk.link.default.allow_all_shared_libs = true
+
###############################################################################
# "system" namespace
#