43 Commits

Author SHA1 Message Date
Stephen Webb
8b9a387171 Add use of libabigail for ABI checks
Added `make -C src check-abi` target to leverage libabigail 2.0 tools to
check for ABI changes.

Add ABI baseline files for aarch64, i686, riscv, s390x, and x86_64 Linux
targets and aarch64 and x86_64 QNX SDP 7.1 targets.

Used the check-abi target in the CI-unix github workflow.
2024-05-14 12:02:11 -04:00
Stephen Webb
2c1613b7ad Remove tilegx as a target
This target is no longer supported by common toolchains or operating
systems. If support is required, it can still be found in libunwind
version 1.7 and earlier.
2023-07-05 14:03:58 -04:00
Stephen Webb
a9e1cb6c18 Add nto remote
QNX OS uses a special nto remote instead of the ptrace used by Linux and
the BSDs.
2023-06-27 10:07:33 -04:00
Stephen Webb
778dc30fbf Stop the autotools nag about AC_CONFIG_MACRO_DIRS
All warnings should be heeded, including the ones spat out by autoreconf. In
this case, autoconf wanted a place to generate its m4 files into and automake
wanted the right target names in doc/Makefile.am.

Also added AM_SILENT_FILES([yes]) to reduce the visual noise in build output to
make spotting build problems easier. You can override the silent default by
running `make` with `V=0` appended to the command line.

Removed the unnecessary and unused acinclude.m4 file to reduce clutter in the
source directory.
2022-08-13 11:00:06 -04:00
Youling Tang
c5f1d12c77 Add port for Linux on LoongArch
This commit adds support for Linux on LoongArch. Only 64-bit is supported
at the moment.

The changes were tested on a LoongArch architecture Loongson-3A5000
processor (LoongArch is a new RISC ISA, which is a bit like MIPS or
RISC-V.).

Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Signed-off-by: Qing Zhang <zhangqing@loongson.cn>
Signed-off-by: Jinyang He <hejinyang@loongson.cn>
Signed-off-by: Youling Tang <tangyouling@loongson.cn>
2021-11-30 13:37:02 -08:00
Zhaofeng Li
abd15da8af Add port for Linux on RISC-V (riscv)
This commit adds support for Linux on RISC-V. Only 64-bit is supported
at the moment.
2021-07-06 11:49:20 -07:00
Pedro Navarro
4b2015fbd8 Added --disable-unwind-header option
When set, unwind.h won't be copied to the installation directory. Some
platforms provide their own unwind.h that might conflict with the one
supplied with libunwind
2020-06-18 13:35:59 -07:00
Michael Munday
441adc46ff Add port to Linux on IBM Z (s390x)
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.
2018-01-09 07:37:55 -08:00
Bert Wesarg
e123b970c4 build: Honor --disable-foo configure flags when installing headers. 2017-01-24 11:28:14 -08:00
Королев Сергей
208a430bcb add --disable-tests option
Allows to skip tests build.
2017-01-13 08:27:39 -08:00
Olivier Fourdan
6e3254ea6e [PATCH] Fix build from scratch
- Add autogen.sh to bootstrap autotools generation
- Make generation of man pages optional, and check for
  availibity of latex2man if documentation is requested.

Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
Signed-off-by: Arun Sharma <asharma@fb.com>
2014-12-04 00:12:00 -08:00
Zhi-Gang Liu
790be1e40d Add TileGx platform support to libunwind.
"make check" passed.
======================================================
All 34 tests behaved as expected (2 expected failures)
======================================================
Zhi-Gang Liu @ Tilera
2014-09-08 16:21:53 -04:00
Yvan Roux
ac6c0a6535 [PATCH] AArch64 port. 2013-05-11 09:20:28 -06:00
Tommi Rantala
65bdcc6f9d Teach autotools current ARM `ex_tables.h' location 2012-09-28 14:51:21 +03:00
Tommi Rantala
8d5b1aeeff SuperH port
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.
2012-09-28 14:50:03 +03:00
Tommi Rantala
dc680c0b52 Pull attribute macros from libunwind_i.h' to new header compiler.h'
Pull attribute macros from `libunwind_i.h' to new header `compiler.h',
to allow the macros to also be used in the tests.
2012-09-28 13:52:21 +03:00
Arun Sharma
b08ae72d6c Add support for unwinding coredump images
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
2012-03-12 20:11:08 -07:00
Zachary T Welch
f7ed9c569b Improve top-level Makefile rules
Use automake's '+=' to simplify include_HEADERS rules.  Move most
EXTRA_DIST files to noinst_HEADERS, eliminating duplication of headers
listed by include_HEADERS.  Add MIPS and PPC32 headers that were not
being distributed previously.

Signed-off-by: Zachary T Welch <zwelch@codesourcery.com>
2010-11-29 11:28:40 -08:00
Zachary T Welch
651e9bb4fd Add MAINTAINERCLEANFILES to Makefile.am files.
Ensures 'make maintainer-clean' removes files generated by autotools.

Signed-off-by: Zachary T Welch <zwelch@codesourcery.com>
2010-11-08 09:06:09 -08:00
Sven Neumann
7909c71e5d [PATCH] Add files to EXTRA_DIST so that 'make dist' works again 2010-08-04 14:26:39 -07:00
Arun Sharma
b483ea3f0e Multilib support.
This is useful when packaging for multiple target architectures.

Signed-off-by: Jan Kratochvil <jan.kratochvil@redhat.com>
2009-04-13 12:00:31 -07:00
Daniel Jacobowitz
3842dac733 Add initial ARM and MIPS support. To support this, also enable the
reading of .debug_frame sections (used in lieu of .eh_frame sections
when they're not available).
2008-02-04 17:16:37 -07:00
Jose Flavio Aguilar Paulino
4499bb29a6 [PPC32] First check-in to add preliminary support for Linux/PPC32. 2007-09-12 21:52:25 -06:00
Jose Flavio Aguilar Paulino
b33021e4b2 Add PPC64 support. 2007-08-02 09:59:43 -06:00
hp.com!davidm
d0cf8551fe Move target-specific headers into tdep-$(arch).
(Logical change 1.294)
2005-05-20 09:48:08 +00:00
mostang.com!davidm
a0a5f89645 (EXTRA_DIST): Mention include/hppa/jmpbuf.h and
include/hppa/dwarf-config.h.

2004/11/23 16:59:56-08:00 mostang.com!davidm
(EXTRA_DIST): Mention include/dwarf-eh.h.

(Logical change 1.290)
2005-05-03 09:13:17 +00:00
homeip.net!davidm
ebf7fdb2f3 (include_HEADERS_common): Remove include/libunwind-common.h.in.
(nodist_include_HEADERS): Mention include/libunwind-common.h.
(EXTRA_DIST): Mention include/libunwind-common.h.in.

(Logical change 1.271)
2004-10-05 16:28:06 +00:00
mostang.com!davidm
88a3e7efcd (include_HEADERS_common): Rename libunwind-common.h to
libunwind-common.h.in.

(Logical change 1.261)
2004-09-08 17:36:28 +00:00
hp.com!davidm
9c01662f1d (EXTRA_DIST): Mention include/{ia64,x86,x86_64}/jmpbuf.h.
(Logical change 1.259)
2004-08-31 13:59:10 +00:00
ibm.com!masbock
aa9a917cb4 Add x86_64 support.
(Logical change 1.249)
2004-08-19 13:39:10 +00:00
hp.com!davidm
55ea19fa91 (EXTRA_DIST): Mention dwarf_i.h and x86/dwarf-config.h.
(Logical change 1.233)
2004-05-06 22:02:00 +00:00
mostang.com!davidm
4a33190ccb (EXTRA_DIST): Mention incluide/ia64/rse.h.
(Logical change 1.221)
2004-05-04 22:16:57 +00:00
hp.com!davidm
dfba455dcd (EXTRA_DIST): Mention include/remote.h.
(Logical change 1.217)
2004-04-28 04:43:25 +00:00
hp.com!davidm
e5863bcee7 (include_HEADERS_common): Mention libunwind-ptrace.h.
(Logical change 1.206)
2004-04-20 23:13:49 +00:00
hp.com!davidm
67cfd98db9 (EXTRA_DIST): Mention include/dwarf.h.
(Logical change 1.146)
2003-12-20 11:50:00 +00:00
hp.com!davidm
bf42f3a06c (include_HEADERS): Mention include/unwind.h.
(Logical change 1.135)
2003-12-04 07:44:21 +00:00
mostang.com!davidm
836c52dbfb (DISTCLEANFILES): New macro. Mention libunwind.h and tdep.h to ensure they get
cleaned for "distclean".  Reported by Matthieu Delahaye.

(Logical change 1.63)
2003-03-19 19:25:18 +00:00
mostang.com!davidm
676b9901cd Add ARCH_HPPA.
(EXTRA_DIST): Mention x86 and hppa headers.

(Logical change 1.33)
2003-01-14 07:11:56 +00:00
mostang.com!davidm
e2e110850f Rename ia32 to x86.
(EXTRA_DIST): Mention mempool.h.

(Logical change 1.32)
2002-12-19 07:16:50 +00:00
mostang.com!davidm
9420207ac6 (include_HEADERS_common): Mention libunwind-dynamic.h.
(EXTRA_DIST): Mention include/internal.h, include/tdep-ia64.h, and
	include/ia64/script.h.

(Logical change 1.30)
2002-12-12 09:17:41 +00:00
hp.com!davidm
a2d64d9efb Modify for multi-architecture support.
(Logical change 1.12)
2002-04-05 23:37:55 +00:00
mostang.com!davidm
95ce9146a7 Initial revision 2002-02-23 20:27:03 +00:00
mostang.com!davidm
1a9fe6168d (Logical change 1.7) 2002-02-23 20:27:03 +00:00