summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-03-09 06:11:14 +0000
committerMike Frysinger <vapier@gentoo.org>2006-03-09 06:11:14 +0000
commit163da2664a68731432de1fc799f28bdb95669d34 (patch)
tree1f13ad5070b6718f926251fb05c48b2a22f57d74 /libc
parentda2e16423c04fba09a50979dc3d66049a0ba9eed (diff)
fix build/segv issues as reported and fixed by Brent Cook
Diffstat (limited to 'libc')
-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