From 97e42bd482b62d7b74889be11c98b0bbb4059dcd Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Mon, 1 Mar 2021 15:56:36 +0100 Subject: nptl: Use for accessing the libgcc_s unwinder Reviewed-by: Carlos O'Donell --- sysdeps/unix/sysv/linux/ia64/unwind-forcedunwind.c | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) (limited to 'sysdeps/unix/sysv/linux') diff --git a/sysdeps/unix/sysv/linux/ia64/unwind-forcedunwind.c b/sysdeps/unix/sysv/linux/ia64/unwind-forcedunwind.c index e797ea22aa..eaed6cf2ef 100644 --- a/sysdeps/unix/sysv/linux/ia64/unwind-forcedunwind.c +++ b/sysdeps/unix/sysv/linux/ia64/unwind-forcedunwind.c @@ -16,23 +16,11 @@ License along with the GNU C Library; if not, see . */ -#include -#include -#include -#include - -static _Unwind_Word (*libgcc_s_getbsp) (struct _Unwind_Context *); - -#define ARCH_CANCEL_INIT(handle) \ - ((libgcc_s_getbsp = __libc_dlsym (handle, "_Unwind_GetBSP")) == NULL) - #include _Unwind_Word _Unwind_GetBSP (struct _Unwind_Context *context) { - if (__builtin_expect (libgcc_s_getbsp == NULL, 0)) - pthread_cancel_init (); - - return libgcc_s_getbsp (context); + return UNWIND_LINK_PTR (__pthread_unwind_link_get (), _Unwind_GetBSP) + (context); } -- cgit 1.4.1