diff options
author | Ryan Prichard <rprichard@google.com> | 2019-10-11 14:44:42 -0700 |
---|---|---|
committer | Ryan Prichard <rprichard@google.com> | 2019-10-11 14:45:23 -0700 |
commit | b846b13b015c3ad05a6d7166379f74f77c0f846e (patch) | |
tree | 37b064ed39fb4d21e486cb6f7dd61646e963e93c | |
parent | 9e1eb2ff225347aec5f9f8fc4ee19df0c03e8576 (diff) | |
download | libunwind_llvm-b846b13b015c3ad05a6d7166379f74f77c0f846e.tar.gz |
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
-rw-r--r-- | Android.bp | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -35,6 +35,7 @@ LIBUNWIND_LOCAL_INCLUDES = [ LIBUNWIND_CFLAGS = [ "-Wall", "-Werror", + "-D_LIBUNWIND_USE_DLADDR=0", ] LIBUNWIND_CPPFLAGS = [ |