mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-11-26 00:57:39 +01:00
Add x86_64 support.
(Logical change 1.249)
This commit is contained in:
parent
e9cb33eaa2
commit
aa9a917cb4
3 changed files with 53 additions and 2 deletions
|
@ -6,6 +6,10 @@ include_HEADERS_tdep = include/libunwind-hppa.h
|
|||
else
|
||||
if ARCH_X86
|
||||
include_HEADERS_tdep = include/libunwind-x86.h
|
||||
else
|
||||
if ARCH_X86_64
|
||||
include_HEADERS_tdep = include/libunwind-x86_64.h
|
||||
endif # ARCH_X86_64
|
||||
endif # ARCH_X86
|
||||
endif # ARCH_HPPA
|
||||
endif # ARCH_IA64
|
||||
|
@ -29,6 +33,9 @@ EXTRA_DIST = include/dwarf.h include/dwarf_i.h \
|
|||
include/ia64/script.h \
|
||||
include/libunwind-hppa.h include/tdep-hppa.h \
|
||||
include/libunwind-x86.h include/tdep-x86.h \
|
||||
include/x86/dwarf-config.h
|
||||
include/x86/dwarf-config.h \
|
||||
include/libunwind-x86_64.h include/tdep-x86_64.h \
|
||||
include/x86/dwarf-config.h \
|
||||
include/x86_64/dwarf-config.h
|
||||
|
||||
DISTCLEANFILES = include/libunwind.h include/tdep.h
|
||||
|
|
|
@ -67,6 +67,7 @@ AM_CONDITIONAL(REMOTE_ONLY, test x$target_arch != x$build_arch)
|
|||
AM_CONDITIONAL(ARCH_IA64, test x$target_arch = xia64)
|
||||
AM_CONDITIONAL(ARCH_HPPA, test x$target_arch = xhppa)
|
||||
AM_CONDITIONAL(ARCH_X86, test x$target_arch = xx86)
|
||||
AM_CONDITIONAL(ARCH_X86_64, test x$target_arch = xx86_64)
|
||||
AM_CONDITIONAL(OS_LINUX, expr x$target_os : xlinux >/dev/null)
|
||||
AM_CONDITIONAL(OS_HPUX, expr x$target_os : xhpux >/dev/null)
|
||||
|
||||
|
|
|
@ -36,6 +36,8 @@ libunwind_setjmp_la_SOURCES_ia64 = ia64/setjmp.S ia64/sigsetjmp.S \
|
|||
libunwind_setjmp_la_SOURCES_hppa = setjmp.c sigsetjmp.c \
|
||||
hppa/siglongjmp.S
|
||||
libunwind_setjmp_la_SOURCES_x86 = setjmp.c sigsetjmp.c x86/siglongjmp.S
|
||||
libunwind_setjmp_la_SOURCES_x86_64 = setjmp.c sigsetjmp.c \
|
||||
x86_64/siglongjmp.S
|
||||
|
||||
### libunwind:
|
||||
|
||||
|
@ -157,6 +159,33 @@ libunwind_x86_la_SOURCES_x86 = $(libunwind_la_SOURCES_x86_common) \
|
|||
x86/Gis_signal_frame.c x86/Gget_proc_info.c x86/Gregs.c \
|
||||
x86/Gresume.c x86/Gstep.c
|
||||
|
||||
# The list of files that go both into libunwind and libunwind-x86_64:
|
||||
libunwind_la_SOURCES_x86_64_common = $(libunwind_la_SOURCES_common) \
|
||||
$(dwarf_SOURCES_common) \
|
||||
x86_64/init.h x86_64/unwind_i.h \
|
||||
x86_64/is_fpreg.c x86_64/regname.c
|
||||
|
||||
# The list of files that go into libunwind:
|
||||
libunwind_la_SOURCES_x86_64 = $(libunwind_la_SOURCES_x86_64_common) \
|
||||
$(libunwind_la_SOURCES_local) \
|
||||
elf64.c elf64.h \
|
||||
$(dwarf_SOURCES_local) \
|
||||
dwarf/Lfind_proc_info-lsb.c \
|
||||
x86_64/Lcreate_addr_space.c x86_64/Lget_save_loc.c x86_64/Lglobal.c \
|
||||
x86_64/Linit.c x86_64/Linit_local.c x86_64/Linit_remote.c \
|
||||
x86_64/Lis_signal_frame.c x86_64/Lget_proc_info.c x86_64/Lregs.c \
|
||||
x86_64/Lresume.c x86_64/Lstep.c
|
||||
|
||||
# The list of files that go into libunwind:
|
||||
libunwind_x86_64_la_SOURCES_x86_64 = $(libunwind_la_SOURCES_x86_64_common) \
|
||||
$(libunwind_la_SOURCES_generic) \
|
||||
$(dwarf_SOURCES_generic) \
|
||||
dwarf/Gfind_proc_info-lsb.c \
|
||||
x86_64/Gcreate_addr_space.c x86_64/Gget_save_loc.c x86_64/Gglobal.c \
|
||||
x86_64/Ginit.c x86_64/Ginit_local.c x86_64/Ginit_remote.c \
|
||||
x86_64/Gis_signal_frame.c x86_64/Gget_proc_info.c x86_64/Gregs.c \
|
||||
x86_64/Gresume.c x86_64/Gstep.c
|
||||
|
||||
if REMOTE_ONLY
|
||||
install-exec-hook:
|
||||
# Nothing to do here....
|
||||
|
@ -221,6 +250,18 @@ if !REMOTE_ONLY
|
|||
endif
|
||||
libunwind_setjmp_la_SOURCES = $(libunwind_setjmp_la_SOURCES_common) \
|
||||
$(libunwind_setjmp_la_SOURCES_x86)
|
||||
else
|
||||
if ARCH_X86_64
|
||||
lib_LTLIBRARIES_arch = libunwind-x86_64.la
|
||||
libunwind_la_SOURCES = $(libunwind_la_SOURCES_x86_64)
|
||||
libunwind_x86_64_la_SOURCES = $(libunwind_x86_64_la_SOURCES_x86_64)
|
||||
libunwind_x86_64_la_LDFLAGS = $(COMMON_SO_LDFLAGS) -version-info $(SOVERSION)
|
||||
if !REMOTE_ONLY
|
||||
libunwind_x86_64_la_LIBADD = libunwind.la -lc
|
||||
endif
|
||||
libunwind_setjmp_la_SOURCES = $(libunwind_setjmp_la_SOURCES_common) \
|
||||
$(libunwind_setjmp_la_SOURCES_x86_64)
|
||||
endif # ARCH_X86_64
|
||||
endif # ARCH_X86
|
||||
endif # ARCH_HPPA
|
||||
endif # ARCH_IA64
|
||||
|
@ -246,11 +287,13 @@ EXTRA_DIST = elfxx.h elfxx.c unwind-internal.h \
|
|||
$(libunwind_hppa_la_SOURCES_hppa) \
|
||||
$(libunwind_ia64_la_SOURCES_ia64) \
|
||||
$(libunwind_x86_la_SOURCES_x86) \
|
||||
$(libunwind_x86_64_la_SOURCES_x86_64) \
|
||||
$(libunwind_ptrace_a_SOURCES) \
|
||||
$(libunwind_setjmp_la_SOURCES_common) \
|
||||
$(libunwind_setjmp_la_SOURCES_hppa) \
|
||||
$(libunwind_setjmp_la_SOURCES_ia64) \
|
||||
$(libunwind_setjmp_la_SOURCES_x86)
|
||||
$(libunwind_setjmp_la_SOURCES_x86) \
|
||||
$(libunwind_setjmp_la_SOURCES_x86_64)
|
||||
|
||||
# The -version-info flag accepts an argument of the form
|
||||
# `current[:revision[:age]]'. So, passing `-version-info 3:12:1' sets
|
||||
|
|
Loading…
Reference in a new issue