Debian Patches

Status for libunwind/1.8.1-0.2

Patch Description Author Forwarded Bugs Origin Last update
0001-Fixed-miscompilation-of-unw_getcontext-on-ARM.patch Fixed miscompilation of unw_getcontext() on ARM Ian Zborovsky <ian@veego.io> no 2024-05-06
fix-arm64-build.diff Made -nostdlib depend on exception support
When libunwind is configured to provide the Itanium Level 1 Exception
Support it needs to avoid linking in any compiler runtime libraries that
already provide that support (for example, libgcc_s.so) in order to
avoid duplicate symbols or ODR violations. This caused a problem on
more recent GCC editions because of some dark magic in which
libgcc_s.so is actually a linker script instead of a shared object so
the library will be underlinked on some platforms.

The use of `-nostdlib` should be limited to only the case in which the
optional exception support is selected at configure time. When that is
the case, we can assume the developer knows what they're doing (they're
writing their own exception handling stack) and can pass the right LDADD
explcitly as required.

This changes makes the use of `-nostdlib` and `-lc -lgcc_s` dependent on
the configure-time `--enable-cxx-exceptions=yes`, which is not the
default.
Stephen Webb <swebb@qnx.com> no 2025-08-22
457612f470f8c0e718cdf7f14ef1ecb583f3b3a6.patch Fix bad prototype for malloc() in test
The unit test Gtest-nomalloc.c had an incorrect prototype for malloc()
which caused newer compilers to fail compiling for newer C editions.

Corrected the prototype and corrected a few other errors. The unit now
compiles using GCC with `CFLAGS=-Wall -Wextra -pedantic -C11` with no
warnings, which is the minimum requirement.

Added the tests/unw_test.h header as a first step to cleaning up some
unit tests further.
Stephen Webb <swebb@blackberry.com> no 2025-02-12

All known versions for source package 'libunwind'

Links