From 7b701de5e035a1b382423316938e88e382e5e7ec Mon Sep 17 00:00:00 2001 From: Jiyong Park Date: Tue, 18 Apr 2017 08:10:57 +0900 Subject: [PATCH] linker: don't allow libui to SP-HALs and fix warning libui.so is not used by SP-HALs, so it is removed from the list of libs exposed from the default namespace. Also, this fixes a warning message "property value is empty" caused by the automatically removed trailing '/' for the section 'legacy'. Since the legacy behavior is already implemented by the linker itself, the behavior doesn't need to specified in ld.config.txt. Test: marlin/sailfish boots Test: no warning message is shown Change-Id: Ib679794d63b01c6794663dc88f1ab7e72cfb11d3 --- rootdir/etc/ld.config.txt | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/rootdir/etc/ld.config.txt b/rootdir/etc/ld.config.txt index fbe8b2870..1ec2bc019 100644 --- a/rootdir/etc/ld.config.txt +++ b/rootdir/etc/ld.config.txt @@ -7,7 +7,6 @@ dir.system = /system/bin/ dir.system = /system/xbin/ dir.vendor = /vendor/bin/ -dir.legacy = / [system] additional.namespaces = sphal,vndk,rs @@ -53,10 +52,10 @@ namespace.sphal.links = default,vndk # WARNING: only NDK libs can be listed here. # However, this is commented out because some SP-HALs (gralloc.msm8996.so, etc) -# are currently using some non-stable libs such as libui.so. We will get back +# are currently using some non-stable libs such as libbacktrace.so. We will get back # to this list once the dependencies are fixed. #namespace.sphal.link.default.shared_libs = libc.so:libz.so:libm.so:libdl.so:libstdc++.so:liblog.so:libnativewindow.so:libsync.so -namespace.sphal.link.default.shared_libs = libc.so:libz.so:libm.so:libdl.so:libstdc++.so:liblog.so:libnativewindow.so:libEGL.so:libsync.so:libui.so:libbacktrace.so:libGLESv1_CM.so:libGLESv2.so +namespace.sphal.link.default.shared_libs = libc.so:libz.so:libm.so:libdl.so:libstdc++.so:liblog.so:libnativewindow.so:libEGL.so:libsync.so:libbacktrace.so:libGLESv1_CM.so:libGLESv2.so # WARNING: only VNDK-SP libs can be listed here. DO NOT EDIT this line. namespace.sphal.link.vndk.shared_libs = android.hardware.graphics.allocator@2.0.so:android.hardware.graphics.mapper@2.0.so:android.hardware.graphics.common@1.0.so:android.hidl.base@1.0.so:libhwbinder.so:libbase.so:libcutils.so:libhardware.so:libhidlbase.so:libhidltransport.so:libutils.so:libc++.so @@ -77,20 +76,12 @@ namespace.vndk.links = default # WARNING: only NDK libs can be listed here. # However, this is commented out because some SP-HALs (gralloc.msm8996.so, etc) -# are currently using some non-stable libs such as libui.so. We will get back +# are currently using some non-stable libs such as libacktrace.so. We will get back # to this list once the dependencies are fixed. #namespace.vndk.link.default.shared_libs = libc.so:libz.so:libm.so:libdl.so:libstdc++.so:liblog.so:libnativewindow.so:libsync.so -namespace.vndk.link.default.shared_libs = libc.so:libz.so:libm.so:libdl.so:libstdc++.so:liblog.so:libnativewindow.so:libEGL.so:libsync.so:libui.so:libbacktrace.so +namespace.vndk.link.default.shared_libs = libc.so:libz.so:libm.so:libdl.so:libstdc++.so:liblog.so:libnativewindow.so:libEGL.so:libsync.so:libbacktrace.so [vendor] namespace.default.isolated = false namespace.default.search.paths = /vendor/${LIB}:/vendor/${LIB}/vndk-sp:/system/${LIB} - -# If a binary does not belong to any of the sections above, it falls back to -# this section, which is identical to the namespace configuration setup -# in pre-O. -[legacy] -namespace.default.isolated = false -namespace.default.search.path = /system/${LIB}:/vendor/${LIB} -namespace.default.asan.search.path = /data/asan/system/${LIB}:/system/${LIB}:/data/asan/vendor/${LIB}:/vendor/${LIB}