summaryrefslogtreecommitdiff
path: root/tools/warn/java_warn_patterns.py
diff options
context:
space:
mode:
author Ryan Prichard <rprichard@google.com> 2019-10-21 20:47:53 -0700
committer Ryan Prichard <rprichard@google.com> 2019-10-24 18:15:05 -0700
commitacf8b0ff009def3466cad8d4244a04bab15e8bcd (patch)
tree31b92d77d38d41a8b7ab260f44f74b47cc43bcf9 /tools/warn/java_warn_patterns.py
parent3322f6ec35b6a795694b2162699bc3d4c401eb00 (diff)
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
Diffstat (limited to 'tools/warn/java_warn_patterns.py')
0 files changed, 0 insertions, 0 deletions