From ea4a2bdd448ae6811d3073b2ee3f04632739c9cf Mon Sep 17 00:00:00 2001 From: Logan Chien Date: Thu, 18 Jan 2018 12:06:14 +0800 Subject: [PATCH] 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 --- rootdir/etc/ld.config.txt.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 #