From 163da2664a68731432de1fc799f28bdb95669d34 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 9 Mar 2006 06:11:14 +0000 Subject: fix build/segv issues as reported and fixed by Brent Cook --- libc/sysdeps/linux/powerpc/brk.S | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'libc/sysdeps') 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 #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 -- cgit v1.2.3