summaryrefslogtreecommitdiffstats
path: root/lib/libc/amd64/gen/setjmp.S
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/amd64/gen/setjmp.S')
-rw-r--r--lib/libc/amd64/gen/setjmp.S9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/libc/amd64/gen/setjmp.S b/lib/libc/amd64/gen/setjmp.S
index 39e9c21..738407a 100644
--- a/lib/libc/amd64/gen/setjmp.S
+++ b/lib/libc/amd64/gen/setjmp.S
@@ -80,12 +80,11 @@ ENTRY(setjmp)
xorl %eax,%eax
ret
-#ifdef _THREAD_SAFE
-ENTRY(__longjmp)
-#else
-ALTENTRY(__longjmp)
-ENTRY(longjmp)
+#ifndef _THREAD_SAFE
+.weak CNAME(longjmp);
+.set CNAME(longjmp),CNAME(__longjmp);
#endif
+ENTRY(__longjmp)
movl 4(%esp),%edx
PIC_PROLOGUE
pushl $0 /* (sigset_t*)oset */
OpenPOWER on IntegriCloud