From a5f914aef163e27bf49ce2c29f2cef12a131132f Mon Sep 17 00:00:00 2001 From: Jiyong Park Date: Sun, 20 Jan 2019 21:02:00 +0900 Subject: Add bionic mount points under /bionic This change adds following files and symlinks: Files: /bionic/lib[64]/lib{c|dl|m}.so /bionic/bin/linker[64] Symlinks: /system/lib[64]/lib{c|dl|m}.so -> /bionic/lib[64]/lib{c|dl|m}.so /system/bin/linker[64] -> /bionic/bin/linker[64] /system/bin/linker_asan[64] -> /bionic/bin/linker[64] The files serve as mount points for either the bootstrap Bionic or the default Bionic from the runtime APEX. init does the bind-mounting during booting. The symlinks are there to not change the ordinary paths to the bionic files; there are many places that the paths are implied or hard-coded, e.g., dlopen("/system/lib/libc.so") or DT_INTERP pointing to /system/bin/linker in the vendor prebuilts. Bug: 120266448 Test: m blueline, cf_x86, aosp_arm The aforementioned files and symlinks are found Change-Id: I97e38c29409ac0610dde285db8df6e94a7930094 --- libdl/Android.bp | 1 + 1 file changed, 1 insertion(+) (limited to 'libdl') diff --git a/libdl/Android.bp b/libdl/Android.bp index 262da6c7d..c17e72e27 100644 --- a/libdl/Android.bp +++ b/libdl/Android.bp @@ -105,6 +105,7 @@ cc_library { symbol_file: "libdl.map.txt", versions: ["10000"], }, + required: ["libdl.mountpoint"], } ndk_library { -- cgit v1.2.3