summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/powerpc/brk.S
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/powerpc/brk.S')
-rw-r--r--libc/sysdeps/linux/powerpc/brk.S4
1 files changed, 4 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/powerpc/brk.S b/libc/sysdeps/linux/powerpc/brk.S
index 57a8fb838..3a9b9fd37 100644
--- a/libc/sysdeps/linux/powerpc/brk.S
+++ b/libc/sysdeps/linux/powerpc/brk.S
@@ -51,7 +51,11 @@ __brk:
li r3,0
blelr+
li r3,ENOMEM
+#ifdef __PIC__
+ b __syscall_error@plt
+#else
b __syscall_error
+#endif
.size __brk,.-__brk
.weak brk;