about summary refs log tree commit diff
path: root/nptl/pthread_cancel.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2021-03-01 15:56:36 +0100
committerFlorian Weimer <fweimer@redhat.com>2021-03-01 16:00:22 +0100
commit97e42bd482b62d7b74889be11c98b0bbb4059dcd (patch)
tree374b3d1c4ab7dc13601bf1af77463aeefd5b73b9 /nptl/pthread_cancel.c
parent6b7efa3d8703cfd020281706f8110bc4a41b1525 (diff)
downloadglibc-97e42bd482b62d7b74889be11c98b0bbb4059dcd.tar.gz
glibc-97e42bd482b62d7b74889be11c98b0bbb4059dcd.tar.xz
glibc-97e42bd482b62d7b74889be11c98b0bbb4059dcd.zip
nptl: Use <unwind-link.h> for accessing the libgcc_s unwinder
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'nptl/pthread_cancel.c')
-rw-r--r--nptl/pthread_cancel.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/nptl/pthread_cancel.c b/nptl/pthread_cancel.c
index f88fa24e19..a011d72fa1 100644
--- a/nptl/pthread_cancel.c
+++ b/nptl/pthread_cancel.c
@@ -35,7 +35,8 @@ __pthread_cancel (pthread_t th)
     return ESRCH;
 
 #ifdef SHARED
-  pthread_cancel_init ();
+  /* Trigger an error if libgcc_s cannot be loaded.  */
+  __pthread_unwind_link_get ();
 #endif
   int result = 0;
   int oldval;