diff options
author | Florian Weimer <fweimer@redhat.com> | 2021-03-01 15:56:36 +0100 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2021-03-01 15:58:01 +0100 |
commit | 9fc813e1a37d2e2d5e85a97d5ac4fc1c15d839fb (patch) | |
tree | 62e5002b97acab6f776476c2325a37097693b0ea /sysdeps/mach | |
parent | 764e9a0334350f52ab6953bef1db97f9b2e89ca5 (diff) | |
download | glibc-9fc813e1a37d2e2d5e85a97d5ac4fc1c15d839fb.tar glibc-9fc813e1a37d2e2d5e85a97d5ac4fc1c15d839fb.tar.gz glibc-9fc813e1a37d2e2d5e85a97d5ac4fc1c15d839fb.tar.bz2 glibc-9fc813e1a37d2e2d5e85a97d5ac4fc1c15d839fb.zip |
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>
Diffstat (limited to 'sysdeps/mach')
-rw-r--r-- | sysdeps/mach/hurd/fork.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sysdeps/mach/hurd/fork.c b/sysdeps/mach/hurd/fork.c index fb6c7ee8b7..2b39f4e8b5 100644 --- a/sysdeps/mach/hurd/fork.c +++ b/sysdeps/mach/hurd/fork.c @@ -29,6 +29,7 @@ #include <tls.h> #include <malloc/malloc-internal.h> #include <nss/nss_database.h> +#include <unwind-link.h> #undef __fork @@ -667,6 +668,8 @@ __fork (void) __sigemptyset (&_hurd_global_sigstate->pending); __sigemptyset (&ss->pending); + __libc_unwind_link_after_fork (); + /* Release malloc locks. */ _hurd_malloc_fork_child (); call_function_static_weak (__malloc_fork_unlock_child); |