forked from pool/glibc
Andreas Schwab
5767ee0b6c
- ppc64-copysign.patch: Fix ppc64le copysign overwriting parent stack frame (BZ #16786) - aarch64-setcontext.patch: Fix aarch64 setcontext clobbering alternate signal stack (BZ #16629) OBS-URL: https://build.opensuse.org/request/show/228414 OBS-URL: https://build.opensuse.org/package/show/Base:System/glibc?expand=0&rev=351
24 lines
695 B
Diff
24 lines
695 B
Diff
2014-04-01 Alan Modra <amodra@gmail.com>
|
|
|
|
[BZ #16786]
|
|
* sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Don't trash stack.
|
|
|
|
Index: glibc-2.19/sysdeps/powerpc/powerpc64/fpu/s_copysign.S
|
|
===================================================================
|
|
--- glibc-2.19.orig/sysdeps/powerpc/powerpc64/fpu/s_copysign.S
|
|
+++ glibc-2.19/sysdeps/powerpc/powerpc64/fpu/s_copysign.S
|
|
@@ -27,11 +27,11 @@ ENTRY(__copysign)
|
|
/* double [f1] copysign (double [f1] x, double [f2] y);
|
|
copysign(x,y) returns a value with the magnitude of x and
|
|
with the sign bit of y. */
|
|
- stfd fp2,56(r1)
|
|
+ stfd fp2,-8(r1)
|
|
nop
|
|
nop
|
|
nop
|
|
- ld r3,56(r1)
|
|
+ ld r3,-8(r1)
|
|
cmpdi r3,0
|
|
blt L(0)
|
|
fabs fp1,fp1
|