From f0923988dea536a51618d3cdca0c2621699143f4 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Wed, 10 Apr 2002 07:20:20 +0000 Subject: Make assembly code PIC-compatible. --- libc/sysdeps/linux/powerpc/brk.S | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libc/sysdeps/linux/powerpc/brk.S') 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; -- cgit v1.2.3