mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-11-22 07:37:38 +01:00
8d5b1aeeff
Add support for the 32bit SuperH architecture running Linux. Specifically, support is added for SH4, and support for earlier SH versions and to the 64bit SH5 are left out. This was tested in qemu with a little-endian SH4 debian image & GCC 4.7 cross compiler.
32 lines
810 B
C
32 lines
810 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 __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"
|
|
#else
|
|
# error "Unsupported arch"
|
|
#endif
|
|
|
|
#else /* UNW_REMOTE_ONLY */
|
|
|
|
# include "libunwind-@arch@.h"
|
|
|
|
#endif /* UNW_REMOTE_ONLY */
|