[libunwind] Don't use dl_iterate_phdr if __ANDROID_API__ < 21
authorDan Albert <danalbert@google.com>
Wed, 1 Nov 2017 21:26:06 +0000 (21:26 +0000)
committerDan Albert <danalbert@google.com>
Wed, 1 Nov 2017 21:26:06 +0000 (21:26 +0000)
commit9288938561af7cb9ad18df553728ee01d31d2e37
tree8866833ebb9174119e93059fdfa6a2893ee630d9
parent5a4e27dfa6f346a8d1e5c4e834b4877a37c57b58
[libunwind] Don't use dl_iterate_phdr if __ANDROID_API__ < 21

Summary:
On ARM, dl_iterate_phdr is only implemented in the Android NDK version 21 or later:
https://android.googlesource.com/platform/prebuilts/ndk/+/dev/platform/sysroot/usr/include/link.h#55

Reviewers: thakis, danalbert

Reviewed By: danalbert

Subscribers: dtzWill, aemerson, srhines, kristof.beyls

Differential Revision: https://reviews.llvm.org/D39468

llvm-svn: 317125
libunwind/src/AddressSpace.hpp