mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-11-16 21:27:38 +01:00
441adc46ff
This adds a port to Linux on the IBM Z platform (a.k.a s390x). It only supports the 64-bit ABI. Most functionality is working and all the tests pass with the exception of the coredump tests*. Unwinding is only supported if DWARF unwind information is present. libunwind can't currently make use of the backchain (if present). The getcontext/setcontext functions only preserve/restore a subset of registers. Currently this only consists of callee-saved registers and some parameter registers. Vector registers and access registers are not saved (and aren't callee- saved) by getcontext and cannot currently be modified. They will however be restored unmodified after resuming a context from a signal handler. There is no special libunwind support for setjmp, the functionality is emulated using glibc (I think all the ports do this for modern Linux kernels). * Unwinding on s390x requires floating point register access which the coredump library doesn't currently support.
38 lines
977 B
C
38 lines
977 B
C
/* Provide a real file - not a symlink - as it would cause multiarch conflicts
|
|
when multiple different arch releases are installed simultaneously. */
|
|
|
|
#ifndef UNW_REMOTE_ONLY
|
|
|
|
#if defined __aarch64__
|
|
#include "libunwind-aarch64.h"
|
|
#elif defined __arm__
|
|
# include "libunwind-arm.h"
|
|
#elif defined __hppa__
|
|
# include "libunwind-hppa.h"
|
|
#elif defined __ia64__
|
|
# include "libunwind-ia64.h"
|
|
#elif defined __mips__
|
|
# include "libunwind-mips.h"
|
|
#elif defined __powerpc__ && !defined __powerpc64__
|
|
# include "libunwind-ppc32.h"
|
|
#elif defined __powerpc64__
|
|
# include "libunwind-ppc64.h"
|
|
#elif defined __sh__
|
|
# include "libunwind-sh.h"
|
|
#elif defined __i386__
|
|
# include "libunwind-x86.h"
|
|
#elif defined __x86_64__
|
|
# include "libunwind-x86_64.h"
|
|
#elif defined __tilegx__
|
|
# include "libunwind-tilegx.h"
|
|
#elif defined __s390x__
|
|
# include "libunwind-s390x.h"
|
|
#else
|
|
# error "Unsupported arch"
|
|
#endif
|
|
|
|
#else /* UNW_REMOTE_ONLY */
|
|
|
|
# include "libunwind-@arch@.h"
|
|
|
|
#endif /* UNW_REMOTE_ONLY */
|