OSDN Git Service

fix build/segv issues as reported and fixed by Brent Cook
authorMike Frysinger <vapier@gentoo.org>
Thu, 9 Mar 2006 06:11:14 +0000 (06:11 -0000)
committerMike Frysinger <vapier@gentoo.org>
Thu, 9 Mar 2006 06:11:14 +0000 (06:11 -0000)
libc/sysdeps/linux/powerpc/brk.S

index b7b19d1..2fd8e55 100644 (file)
 #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