summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/powerpc/bsd-_setjmp.S
diff options
context:
space:
mode:
authorDavid Schleef <ds@schleef.org>2002-04-10 07:20:20 +0000
committerDavid Schleef <ds@schleef.org>2002-04-10 07:20:20 +0000
commitf0923988dea536a51618d3cdca0c2621699143f4 (patch)
treea94477742415f4434d13774ff79a5345e2c75749 /libc/sysdeps/linux/powerpc/bsd-_setjmp.S
parent17c0e72289c2f3703405eba3392861077dae8030 (diff)
Make assembly code PIC-compatible.
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