Ryan Prichard
acf8b0ff00
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: Id26741f79dca50256a2dc23453af3026a6c88dca
2019-10-24 18:15:05 -07:00
..
2019-02-05 00:19:41 -08:00
2019-09-06 15:19:59 -07:00
2019-09-25 10:33:58 +09:00
2019-06-22 13:03:09 -07:00
2019-04-22 09:58:24 -07:00
2019-03-28 15:54:25 +00:00
2019-10-21 09:36:45 +01:00
2019-06-13 20:32:22 -07:00
2019-09-06 15:19:59 -07:00
2018-09-15 10:52:13 -07:00
2018-11-08 13:40:34 -08:00
2019-09-19 13:51:17 +00:00
2019-10-16 16:01:14 +00:00
2019-10-17 10:33:40 +00:00
2019-09-16 20:57:12 +00:00
2019-07-09 08:57:19 +00:00
2019-04-17 11:12:32 -07:00
2019-08-22 10:47:16 -07:00
2018-06-21 10:12:23 -07:00
2019-09-20 10:08:08 -07:00
2019-10-22 09:48:06 +00:00
2019-10-24 18:15:05 -07:00
2019-10-16 11:21:20 +01:00
2018-06-12 13:48:49 -07:00
2019-05-26 17:42:17 +00:00
2019-10-24 18:15:05 -07:00
2019-10-16 16:35:17 +00:00
2019-06-14 09:37:42 -07:00
2019-10-22 09:48:06 +00:00
2019-02-22 15:33:23 +00:00
2019-09-18 16:23:04 +00:00
2019-10-21 09:36:45 +01:00
2019-05-01 15:35:03 -07:00
2018-10-20 16:59:41 -07:00
2019-05-30 20:59:50 -07:00
2019-09-05 15:31:31 -07:00
2019-10-08 10:22:13 +00:00
2019-06-13 17:13:22 +00:00
2019-09-18 16:23:04 +00:00
2019-04-18 11:14:58 -07:00
2019-09-20 12:43:02 -07:00
2019-05-01 16:42:56 +01:00
2019-01-11 17:07:58 +09:00
2018-09-12 23:58:01 +00:00
2019-02-05 00:19:41 -08:00
2019-06-10 16:31:07 -07:00
2019-06-12 21:34:52 +00:00
2019-02-05 00:19:41 -08:00
2019-05-20 16:58:26 -07:00
2018-10-26 23:55:49 -07:00
2019-06-10 16:31:07 -07:00
2018-09-15 10:52:13 -07:00
2019-02-05 00:19:41 -08:00
2019-02-05 00:19:41 -08:00
2019-05-08 12:27:53 -07:00
2019-02-05 00:19:41 -08:00
2019-04-03 14:24:43 +01:00
2019-07-09 08:57:19 +00:00
2019-08-26 15:50:15 -07:00
2019-01-14 12:56:07 -08:00
2019-09-05 14:42:14 -07:00
2019-06-13 20:32:22 -07:00
2019-10-21 09:36:45 +01:00
2019-10-21 09:36:45 +01:00
2019-08-12 14:13:31 -04:00
2019-06-13 20:32:22 -07:00
2019-08-09 09:19:52 -07:00
2018-08-29 17:33:29 +00:00
2019-03-22 13:25:20 +00:00
2018-08-08 18:59:44 +08:00
2019-10-22 16:42:53 +00:00
2019-10-22 09:48:06 +00:00
2019-08-22 10:47:16 -07:00
2019-02-05 00:19:41 -08:00
2018-09-15 10:52:13 -07:00
2019-06-13 20:32:22 -07:00
2019-03-25 13:26:03 -07:00
2019-06-13 20:32:22 -07:00
2019-06-13 20:32:22 -07:00
2019-07-30 21:48:52 +00:00
2019-05-06 16:17:20 +01:00
2019-08-27 11:23:35 -07:00
2018-12-18 19:39:20 +00:00
2019-07-30 22:36:29 -07:00
2019-10-21 09:36:45 +01:00
2019-09-18 16:23:04 +00:00
2019-08-06 16:54:08 +01:00
2018-11-05 10:57:24 -08:00
2019-06-12 21:35:33 +00:00
2019-09-18 16:23:04 +00:00
2019-07-29 14:27:04 -07:00
2019-08-07 18:54:04 +09:00
2019-08-20 00:07:35 +00:00
2019-09-05 14:42:14 -07:00
2019-03-26 23:44:01 +00:00
2018-05-03 16:47:11 -07:00
2018-11-20 15:31:44 +08:00
2019-08-27 23:50:31 +00:00
2019-06-13 17:13:22 +00:00
2018-09-15 10:52:13 -07:00
2019-10-21 09:36:45 +01:00
2019-10-07 22:33:47 +09:00
2019-08-13 15:07:44 +01:00
2019-10-15 17:27:43 +01:00
2019-06-14 10:47:18 +08:00
2019-09-18 16:23:04 +00:00
2019-08-09 09:19:52 -07:00
2019-06-13 17:13:22 +00:00
2018-09-15 10:52:13 -07:00
2019-10-18 18:28:23 +00:00
2018-05-03 16:47:55 -07:00
2019-03-25 13:26:03 -07:00
2019-02-05 00:19:41 -08:00
2018-05-14 10:18:02 -07:00
2019-10-10 22:54:06 +00:00