forked from OSchip/llvm-project
[libunwind] Add support for Fuchsia
Fuchsia is a new operating system which uses libunwind as unwinder. Differential Revision: https://reviews.llvm.org/D25899 llvm-svn: 284951
This commit is contained in:
parent
642b5b27fe
commit
93d28f3507
|
@ -61,8 +61,8 @@ extern EHTEntry __exidx_end;
|
||||||
#endif // !defined(_LIBUNWIND_IS_BAREMETAL)
|
#endif // !defined(_LIBUNWIND_IS_BAREMETAL)
|
||||||
#endif // _LIBUNWIND_ARM_EHABI
|
#endif // _LIBUNWIND_ARM_EHABI
|
||||||
|
|
||||||
#if defined(__CloudABI__) || defined(__FreeBSD__) || defined(__linux__) || \
|
#if defined(__CloudABI__) || defined(__FreeBSD__) || defined(__Fuchsia__) || \
|
||||||
defined(__NetBSD__)
|
defined(__linux__) || defined(__NetBSD__)
|
||||||
#if _LIBUNWIND_SUPPORT_DWARF_UNWIND && _LIBUNWIND_SUPPORT_DWARF_INDEX
|
#if _LIBUNWIND_SUPPORT_DWARF_UNWIND && _LIBUNWIND_SUPPORT_DWARF_INDEX
|
||||||
#include <link.h>
|
#include <link.h>
|
||||||
// Macro for machine-independent access to the ELF program headers. This
|
// Macro for machine-independent access to the ELF program headers. This
|
||||||
|
|
|
@ -47,7 +47,8 @@
|
||||||
#define SYMBOL_IS_FUNC(name) .type name,@function
|
#define SYMBOL_IS_FUNC(name) .type name,@function
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__GNU__) || defined(__ANDROID__) || defined(__FreeBSD__)
|
#if defined(__GNU__) || defined(__ANDROID__) || defined(__FreeBSD__) || \
|
||||||
|
defined(__Fuchsia__)
|
||||||
#define NO_EXEC_STACK_DIRECTIVE .section .note.GNU-stack,"",%progbits
|
#define NO_EXEC_STACK_DIRECTIVE .section .note.GNU-stack,"",%progbits
|
||||||
#else
|
#else
|
||||||
#define NO_EXEC_STACK_DIRECTIVE
|
#define NO_EXEC_STACK_DIRECTIVE
|
||||||
|
|
Loading…
Reference in New Issue