[PATCH] D25899: [libunwind] Add support for Fuchsia
Petr Hosek via llvm-commits
llvm-commits at lists.llvm.org
Sat Oct 22 18:34:38 PDT 2016
phosek created this revision.
phosek added reviewers: compnerd, rmaprath, emaste.
phosek added a subscriber: llvm-commits.
phosek set the repository for this revision to rL LLVM.
Herald added subscribers: srhines, danalbert, tberghammer.
Fuchsia is a new operating system which uses libunwind as unwinder.
Repository:
rL LLVM
https://reviews.llvm.org/D25899
Files:
src/AddressSpace.hpp
src/assembly.h
Index: src/assembly.h
===================================================================
--- src/assembly.h
+++ src/assembly.h
@@ -47,7 +47,8 @@
#define SYMBOL_IS_FUNC(name) .type name, at function
#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
#else
#define NO_EXEC_STACK_DIRECTIVE
Index: src/AddressSpace.hpp
===================================================================
--- src/AddressSpace.hpp
+++ src/AddressSpace.hpp
@@ -61,8 +61,8 @@
#endif // !defined(_LIBUNWIND_IS_BAREMETAL)
#endif // _LIBUNWIND_ARM_EHABI
-#if defined(__CloudABI__) || defined(__FreeBSD__) || defined(__linux__) || \
- defined(__NetBSD__)
+#if defined(__CloudABI__) || defined(__FreeBSD__) || defined(__Fuchsia__) || \
+ defined(__linux__) || defined(__NetBSD__)
#if _LIBUNWIND_SUPPORT_DWARF_UNWIND && _LIBUNWIND_SUPPORT_DWARF_INDEX
#include <link.h>
// Macro for machine-independent access to the ELF program headers. This
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D25899.75539.patch
Type: text/x-patch
Size: 1127 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161023/76298d1b/attachment.bin>
More information about the llvm-commits
mailing list