diff options
Diffstat (limited to 'sysdeps/unix/sysv')
-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); } |