Debian Patches

Status for libunwind/1.3.2-2

Patch Description Author Forwarded Bugs Origin Last update
0001-tests-Include-wait-related-headers-for-Ltest-mem-val.patch tests: Include wait-related headers for Ltest-mem-validate (#74)
Without these, I was getting errors from this test set claiming that
wait, WIFCONTINUED, et al. were undefined on FreeBSD 11.1.
Alex Arslan <ararslan@comcast.net> no 2018-04-12
0001-fix-compile-issue-on-SH-platform-137.patch fix compile issue on SH platform (#137)
The name must be unw_init_local_common
Michael Schenk <michaelschenk72@gmail.com> no 2019-10-31
libunwind-1.2-coredump-regs.patch https://bugs.gentoo.org/586092

this might not be correct, but at least it builds, and doesn't crash
no
libunwind-1.2-ia64-missing.patch Original libunwind release is missing a few ia64-specific files in tarball.
diff --git a/src/ia64/mk_Gcursor_i.c b/src/ia64/mk_Gcursor_i.c
new file mode 100644
index 0000000..67b14d5
no
libunwind-1.2-ia64-ptrace-coredump.patch Fix build failure on ia64.
coredump/_UPT_get_dyn_info_list_addr.c
is almost identical to
ptrace/_UPT_get_dyn_info_list_addr.c
It's clearly an __ia64 implementation copy.
diff --git a/src/coredump/_UPT_get_dyn_info_list_addr.c b/src/coredump/_UPT_get_dyn_info_list_addr.c
index 0d11905..176b146 100644
no
20140507-ppc_lib64.patch =================================================================== no
0001-aarch64-Use-__asm__-instead-of-asm-89.patch aarch64: Use __asm__ instead of asm (#89)
Otherwise this fails to compile with -stc=c99 like:

$ cat <<EOF > bla.c
#include <libunwind.h>

int main()
{
unw_tdep_context_t *uc = NULL;
unw_tdep_getcontext(uc);
}
EOF

# This works
$ gcc bla.c

# This does not
$ gcc -std=c99 bla.c
In file included from /usr/include/aarch64-linux-gnu/libunwind.h:7,
from bla.c:1:
bla.c: In function ‘main’:
bla.c:6:5: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘asm’
unw_tdep_getcontext(uc);
^~~~~~~~~~~~~~~~~~~
bla.c:6:5: error: ‘mcontext_t’ {aka ‘struct <anonymous>’} has no member named ‘regs’; did you mean ‘__regs’?
unw_tdep_getcontext(uc);
^~~~~~~~~~~~~~~~~~~
bla.c:6:5: error: ‘unw_base’ undeclared (first use in this function); did you mean ‘unw_ctx’?
unw_tdep_getcontext(uc);
^~~~~~~~~~~~~~~~~~~
bla.c:6:5: note: each undeclared identifier is reported only once for each function it appears in
bla.c:6:5: error: invalid lvalue in asm output 0
unw_tdep_getcontext(uc);
^~~~~~~~~~~~~~~~~~~

See https://gcc.gnu.org/onlinedocs/gcc/Extended-Asm.html:

The asm keyword is a GNU extension. When writing code that can be
compiled with -ansi and the various -std options, use __asm__ instead of
asm (see Alternate Keywords).
=?UTF-8?q?Guido=20G=C3=BCnther?= <agx@sigxcpu.org> no 2018-10-12
0001-Fix-compilation-with-fno-common.patch Fix compilation with -fno-common.
Making all other archs consistent with IA64 which should not have this problem.
Also move the FIXME to the correct place.

Also add some minimum comments about this...

diff --git a/src/aarch64/Ginit.c b/src/aarch64/Ginit.c
index dec235c8..35389762 100644
Yichao Yu <yyc1992@gmail.com> no 2020-03-31
0001-Link-Ltest-cxx-exceptions-with-libunwind.patch Link Ltest-cxx-exceptions with libunwind
Bernhard Übelacker noticed that Ltest-cxx-exceptions was actually
testing the gcc implementation due to not linking with libunwind.
Adrian Bunk <bunk@debian.org> no 2020-07-12
0001-ia64-Fix-dyn_info_list.S-with-newer-binutils.patch ia64: Fix dyn_info_list.S with newer binutils
Using binutils 2.34 or 2.35, libunwind fails to link on ia64 with:

/usr/bin/ld: .IA_64.unwind has both ordered [`.IA_64.unwind' in unwind/.libs/GetIPInfo.o] and unordered [`.IA_64.unwind' in ia64/.libs/dyn_info_list.o] sections

Fix this by using the right flags and type for the section, taken from
binutils's gas/testsuite/gas/ia64/unwind.s.
Jessica Clarke <jrtc27@jrtc27.com> no 2020-07-28
0001-Gia64-test-nat.c-include-signal.h-for-sigaction.patch Gia64-test-nat.c: #include <signal.h> for sigaction() Adrian Bunk <bunk@debian.org> no 2020-08-02
0001-Disable-Ltest-init-local-signal-on-ia64.patch Disable Ltest-init-local-signal on ia64 Adrian Bunk <bunk@debian.org> no 2020-08-05

All known versions for source package 'libunwind'

Links