[PATCH] small powerpc/brk.S fix
Greg McGary
greg@mcgary.org
Fri May 19 12:20:00 GMT 2000
This is a repost.
This patch completes Geoff's incomplete fix to convert
addressing of __curbrk from GP-relative to absolute.
2000-05-17 Greg McGary <greg@mcgary.org>
* sysdeps/unix/sysv/linux/powerpc/brk.S [!PIC]:
Get low part of &__curbrk with @l.
Index: brk.S
===================================================================
RCS file: /cvs/glibc/libc/sysdeps/unix/sysv/linux/powerpc/brk.S,v
retrieving revision 1.3
diff -u -p -r1.3 brk.S
--- brk.S 2000/01/27 23:40:48 1.3
+++ brk.S 2000/05/18 01:14:41
@@ -37,7 +37,7 @@ ENTRY(__brk)
stw r3,0(r5)
#else
lis r4,__curbrk@ha
- stw r3,__curbrk@sdarel(r4)
+ stw r3,__curbrk@l(r4)
#endif
cmplw r6,r3
addi r1,r1,16
More information about the Libc-hacker
mailing list