[PATCH] small powerpc/brk.S fix
Andreas Jaeger
aj@suse.de
Fri May 19 13:10:00 GMT 2000
>>>>> Greg McGary writes:
> This is a repost.
> This patch completes Geoff's incomplete fix to convert
> addressing of __curbrk from GP-relative to absolute.
Geoff, what do you think about this? Shall I commit it?
Andreas
> 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
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de
More information about the Libc-hacker
mailing list