Build libunwind_llvm with -D_LIBUNWIND_USE_DLADDR=0

This macro removes the usage of dladdr from libunwind_llvm, which allows
linking libunwind_llvm.a into a static executable without needing the stub
dladdr from libdl.a(libdl_static.o).

dladdr is used for unw_get_proc_name, which isn't needed for C++ exception
handling. unw_get_proc_name can already fail with UNW_EUNSPEC if the PC is
not in the .dynsym table (e.g. a static function).

Bug: http://b/141485154
Test: bionic unit tests, manually verify that C++ exceptions work in
  static and dynamic binaries

Change-Id: I143ecafa19df75dc91aee52e7ee2207522ee0ef3
1 file changed