summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/powerpc/bsd-_setjmp.S
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/powerpc/bsd-_setjmp.S')
-rw-r--r--libc/sysdeps/linux/powerpc/bsd-_setjmp.S4
1 files changed, 4 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/powerpc/bsd-_setjmp.S b/libc/sysdeps/linux/powerpc/bsd-_setjmp.S
index ef898a7e1..d58e45b13 100644
--- a/libc/sysdeps/linux/powerpc/bsd-_setjmp.S
+++ b/libc/sysdeps/linux/powerpc/bsd-_setjmp.S
@@ -29,5 +29,9 @@
_setjmp:
li r4,0 /* Set second argument to 0. */
+#ifdef __PIC__
+ b __sigsetjmp@plt
+#else
b __sigsetjmp
+#endif
.size _setjmp,.-_setjmp