[libunwind] Replace chain-of-ifdefs for dl_iterate_phdr
authorRyan Prichard <rprichard@google.com>
Fri, 28 Aug 2020 06:46:49 +0000 (23:46 -0700)
committerRyan Prichard <rprichard@google.com>
Tue, 8 Sep 2020 22:49:35 +0000 (15:49 -0700)
commit88bf133c99c3124842c182a019306f83f2c1b856
tree9136aab2555b56777e8caeb99891cb716331e6a1
parent69da27c7496ea373567ce5121e6fe8613846e7a5
[libunwind] Replace chain-of-ifdefs for dl_iterate_phdr

Define a _LIBUNWIND_USE_DL_ITERATE_PHDR macro in config.h when there is
no other unwind info lookup method. Also define a
_LIBUNWIND_USE_DL_UNWIND_FIND_EXIDX macro to factor out
(__BIONIC__ and _LIBUNWIND_ARM_EHABI).

Differential Revision: https://reviews.llvm.org/D86768
libunwind/src/AddressSpace.hpp
libunwind/src/config.h
libunwind/test/frameheadercache_test.pass.cpp