summaryrefslogtreecommitdiff
path: root/libc/sysdeps
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps')
-rw-r--r--libc/sysdeps/linux/powerpc/brk.S14
1 files changed, 13 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/powerpc/brk.S b/libc/sysdeps/linux/powerpc/brk.S
index b7b19d153..2fd8e5518 100644
--- a/libc/sysdeps/linux/powerpc/brk.S
+++ b/libc/sysdeps/linux/powerpc/brk.S
@@ -24,7 +24,19 @@
#include <sys/syscall.h>
#ifdef __NR_brk
- .comm __curbrk,4,4
+
+#ifdef __PIC__
+.section .bss
+ .align 4
+ .globl __curbrk
+__curbrk: .skip 4
+ .type __curbrk,@object
+ .size __curbrk,4
+#else
+.comm __curbrk, 4,4
+#endif
+libc_hidden_data_def(__curbrk)
+
.text
.globl brk
.type brk,@function