Implement <unwind-link.h> for dynamically loading the libgcc_s unwinder
authorFlorian Weimer <fweimer@redhat.com>
Mon, 1 Mar 2021 14:56:36 +0000 (15:56 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Mon, 1 Mar 2021 14:58:01 +0000 (15:58 +0100)
commit9fc813e1a37d2e2d5e85a97d5ac4fc1c15d839fb
tree62e5002b97acab6f776476c2325a37097693b0ea
parent764e9a0334350f52ab6953bef1db97f9b2e89ca5
Implement <unwind-link.h> for dynamically loading the libgcc_s unwinder

This will be used to consolidate the libgcc_s access for backtrace
and pthread_cancel.

Unlike the existing backtrace implementations, it provides some
hardening based on pointer mangling.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
20 files changed:
debug/backtrace.c
malloc/set-freeres.c
misc/Makefile
misc/Versions
misc/unwind-link.c [new file with mode: 0644]
sysdeps/alpha/unwind-arch.h [new file with mode: 0644]
sysdeps/arm/unwind-arch.h [new file with mode: 0644]
sysdeps/generic/unwind-arch.h
sysdeps/generic/unwind-link.h [new file with mode: 0644]
sysdeps/i386/unwind-arch.h [new file with mode: 0644]
sysdeps/ia64/unwind-arch.h [new file with mode: 0644]
sysdeps/m68k/m680x0/unwind-arch.h [new file with mode: 0644]
sysdeps/m68k/unwind-arch.h [new file with mode: 0644]
sysdeps/mach/hurd/fork.c
sysdeps/mips/unwind-arch.h [moved from sysdeps/unix/sysv/linux/mips/unwind-arch.h with 85% similarity]
sysdeps/nptl/fork.c
sysdeps/powerpc/powerpc32/unwind-arch.h [new file with mode: 0644]
sysdeps/s390/unwind-arch.h [new file with mode: 0644]
sysdeps/sh/unwind-arch.h [new file with mode: 0644]
sysdeps/sparc/unwind-arch.h [new file with mode: 0644]