Also use dl_iterate_phdr() on CloudABI.

The unwinder now works on CloudABI. All exception-related libc++ tests
now pass.

This change was actually part of D8169, which also adds support for
FreeBSD. That, however, still requires some more polishing.

llvm-svn: 233676
This commit is contained in:
Ed Schouten
2015-03-31 07:59:53 +00:00
parent 4f6bceface
commit 25a624e43d

View File

@@ -57,7 +57,7 @@ extern EHTEntry __exidx_end;
#endif // !defined(_LIBUNWIND_IS_BAREMETAL)
#endif // LIBCXXABI_ARM_EHABI
#if defined(__linux__)
#if defined(__CloudABI__) || defined(__linux__)
#if _LIBUNWIND_SUPPORT_DWARF_UNWIND && _LIBUNWIND_SUPPORT_DWARF_INDEX
#include <link.h>
#include "EHHeaderParser.hpp"