diff options
author | Florian Weimer <fweimer@redhat.com> | 2021-03-01 15:56:36 +0100 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2021-03-01 16:00:22 +0100 |
commit | 97e42bd482b62d7b74889be11c98b0bbb4059dcd (patch) | |
tree | 374b3d1c4ab7dc13601bf1af77463aeefd5b73b9 /sysdeps/unix/sysv/linux/ia64 | |
parent | 6b7efa3d8703cfd020281706f8110bc4a41b1525 (diff) | |
download | glibc-97e42bd482b62d7b74889be11c98b0bbb4059dcd.tar glibc-97e42bd482b62d7b74889be11c98b0bbb4059dcd.tar.gz glibc-97e42bd482b62d7b74889be11c98b0bbb4059dcd.tar.bz2 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 'sysdeps/unix/sysv/linux/ia64')
-rw-r--r-- | sysdeps/unix/sysv/linux/ia64/unwind-forcedunwind.c | 16 |
1 files changed, 2 insertions, 14 deletions
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 <https://www.gnu.org/licenses/>. */ -#include <dlfcn.h> -#include <stdio.h> -#include <unwind.h> -#include <pthreadP.h> - -static _Unwind_Word (*libgcc_s_getbsp) (struct _Unwind_Context *); - -#define ARCH_CANCEL_INIT(handle) \ - ((libgcc_s_getbsp = __libc_dlsym (handle, "_Unwind_GetBSP")) == NULL) - #include <sysdeps/nptl/unwind-forcedunwind.c> _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); } |