platform_bionic/libdl
Jiyong Park 4e46ac69c2 Load libc_malloc_* libraries from the runtime APEX
/system/lib/libc.so is a symlink to libc.so in the runtime APEX.
libc_malloc_* libraries are bundled with libc.so because they share
implementation details.

However, since libc.so is loaded in the default namespace where the
runtime APEX path (/apex/com.android.runtime/lib) is not accessible,
libc.so has been using libc_malloc_* from /system/lib. This is
wrong because libc.so (from the runtime APEX) and libc_malloc_* (from
the platform) may not be in-sync.

libc.so now uses android_dlopen_ext to load libc_malloc_* libraries
correctly from the "runtime" linker namespace.

Bug: 122566199
Test: bionic-unit-tests

Change-Id: I46980fbe89e93ea79a7760c9b8eb007af0ada8d8
(cherry picked from commit aea5c34423)
2019-04-06 00:19:37 +09:00
..
Android.bp Load libc_malloc_* libraries from the runtime APEX 2019-04-06 00:19:37 +09:00
libdl.cpp Fix CtsJniTestCases 2019-03-29 05:34:33 +01:00
libdl.map.txt Fix CtsJniTestCases 2019-03-29 05:34:33 +01:00
libdl_android.cpp Move platform-private symbols out of libdl.so 2019-03-20 12:16:57 +01:00
libdl_android.map.txt Move platform-private symbols out of libdl.so 2019-03-20 12:16:57 +01:00
libdl_cfi.cpp [cfi] Fix __cfi_check address calculation. 2017-09-15 14:15:54 -07:00
libdl_static.cpp Support getting/setting API level in static binaries. 2018-04-03 21:53:29 -07:00
MODULE_LICENSE_BSD auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00