aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrooks Moses <bmoses@google.com>2014-05-19 15:05:10 -0700
committerBrooks Moses <bmoses@google.com>2014-05-19 15:05:10 -0700
commitfa5cf22b8406dda76b95d09299bfc0cbe972aa3b (patch)
treea3801d2f6e2a0569f971fa373f4f4f4c6a281ff8
parented6d472ee94a7fe207ed5ab5b61d2bdcb21007fd (diff)
downloadglibc-fa5cf22b8406dda76b95d09299bfc0cbe972aa3b.zip
glibc-fa5cf22b8406dda76b95d09299bfc0cbe972aa3b.tar.gz
glibc-fa5cf22b8406dda76b95d09299bfc0cbe972aa3b.tar.bz2
Backport PPC ELFv2 s_copysign stack temp bugfix (PR16786, b/13737066).
-rw-r--r--README.google6
-rw-r--r--sysdeps/powerpc/powerpc64/fpu/s_copysign.S4
2 files changed, 8 insertions, 2 deletions
diff --git a/README.google b/README.google
index 817b933..661d414 100644
--- a/README.google
+++ b/README.google
@@ -323,3 +323,9 @@ libio/wfileops.c
https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=091eff71a5edacb5a321c6e573f09a5358540675
https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=d4b17258bba38f206079fbae1e7255779db1b74c
(bmoses, already upstream)
+
+sysdeps/powerpc/powerpc64/fpu/s_copysign.S
+ For b/13737066, backport upstream patches for PR16786 (s_copysign
+ stack temp bugfix on PPC ELFv2):
+ https://sourceware.org/ml/libc-alpha/2014-04/msg00000.html
+ (bmoses, already upstream)
diff --git a/sysdeps/powerpc/powerpc64/fpu/s_copysign.S b/sysdeps/powerpc/powerpc64/fpu/s_copysign.S
index 51681aa..49c793d 100644
--- a/sysdeps/powerpc/powerpc64/fpu/s_copysign.S
+++ b/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