platform_bionic/libdl
Jiyong Park 8dba7fefb0 Statically link libdl.a to linker
When libbase is built for an APEX, it uses dlsym to reflectively access
liblog symbols that are added in R. This is because the APEX where
libbasse is packaged into might be running in pre-R devices where the
symbols don't exist in liblog.so.

This however causes a problem for a static executable in an APEX. Since
it is in an APEX, the dlsym is used. But libdl.so which provides dlsym
is not available to static executable. Currently, the dynamic linker is
the only executable in an APEX that all of its dependencies are
statically linked. Fixing the issue by providing fake dlsym by
statically linking to libdl.a.

Exempt-From-Owner-Approval: cherry-pick rvc-dev

Bug: 149569129
Test: m

Merged-In: I2e9e45d9876c2d6c878e541715389e6d1ef56996
(cherry picked from commit ec829ed4ea)
Change-Id: I2e9e45d9876c2d6c878e541715389e6d1ef56996
2020-03-11 07:53:47 +00:00
..
Android.bp Statically link libdl.a to linker 2020-03-11 07:53:47 +00:00
libdl.cpp Delete definitions of __aeabi_unwind_cpp_pr0. 2020-01-10 10:40:43 -08:00
libdl.map.txt Fix CtsJniTestCases 2019-04-01 13:17:20 +02:00
libdl_android.cpp Delete definitions of __aeabi_unwind_cpp_pr0. 2020-01-10 10:40:43 -08:00
libdl_android.map.txt Move platform-private symbols out of libdl.so 2019-04-01 13:16:33 +02:00
libdl_cfi.cpp Fix a few bionic test failures caused by hwasan global instrumentation. 2019-08-15 09:21:34 -07:00
libdl_static.cpp Move dl_unwind_find_exidx from libdl.a to libc.a 2019-10-14 16:34:12 -07:00
MODULE_LICENSE_APACHE2 Move libdl and linker to static NOTICE files. 2019-04-19 14:18:07 -07:00
NOTICE Move libdl and linker to static NOTICE files. 2019-04-19 14:18:07 -07:00