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 1555bb2b3..6128d9fa2 100644
--- a/libc/sysdeps/linux/powerpc/bsd-setjmp.S
+++ b/libc/sysdeps/linux/powerpc/bsd-setjmp.S
@@ -29,7 +29,11 @@
__setjmp:
li r4,1 /* Set second argument to 1. */
+#ifdef __PIC__
+ b __sigsetjmp@plt
+#else
b __sigsetjmp
+#endif
.size __setjmp,.-__setjmp
.globl setjmp;