Files
build_soong/cc
Ryan Prichard b49fe1bde7 Stop linking libdl.a into static bins
libdl.a has a no-op dlopen, which breaks static libraries that need a real
dlopen. Instead of automatically linking libdl.a into static executables,
make it optional.

Until recently, the libunwind_llvm.a unwinder, used on arm32, needed the
no-op dladdr, but it's now built using -D_LIBUNWIND_USE_DLADDR=0.

The HWASan run-time uses dlsym and dladdr, so add a libdl dependency for
HWASan-built static binaries. We could also remove the dependency from
libclang_rt.hwasan_static-*.a, but this is also easy to do.

Bug: http://b/141485154
Test: bionic unit tests, device boots, verify that static and dynamic
   executables can throw/catch an exception
Test: verify that a static executable using dlopen doesn't link (unless it
   adds an explicit dependency on libdl)

Change-Id: Ic52c3f336b671b4ed335e99c94a64dfe8614b618
2019-10-24 22:25:54 -07:00
..
2019-10-22 17:01:15 -07:00
2018-11-19 15:26:14 -08:00
2019-10-17 16:11:00 -07:00
2017-10-19 22:39:32 +09:00
2018-10-09 02:16:58 +00:00
2019-06-27 14:46:10 -07:00
2019-10-17 16:11:00 -07:00
2019-08-22 13:21:37 -07:00
2019-09-19 10:51:03 -07:00
2019-09-10 11:22:59 +09:00
2019-09-22 08:21:27 +09:00
2019-04-02 16:38:55 +00:00
2016-08-01 14:36:22 -07:00
2019-08-07 13:40:11 +08:00
2019-10-24 22:25:54 -07:00
2019-09-13 12:18:47 -07:00