olga / rpms / glibc

Forked from rpms/glibc 5 years ago
Clone

Blame SOURCES/glibc-ppc64le-23.patch

00db10
# commit 02f04a6c7fea2b474b026bbce721d8c658d71fda
00db10
# Author: Alan Modra <amodra@gmail.com>
00db10
# Date:   Sat Aug 17 18:36:11 2013 +0930
00db10
# 
00db10
#     PowerPC LE _dl_hwcap access
00db10
#     http://sourceware.org/ml/libc-alpha/2013-08/msg00091.html
00db10
#     
00db10
#     More LE support, correcting word accesses to _dl_hwcap.
00db10
#     
00db10
#         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Use
00db10
#         HIWORD/LOWORD.
00db10
#         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Ditto.
00db10
#         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Ditto.
00db10
# 
00db10
diff -urN glibc-2.17-c758a686/sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S glibc-2.17-c758a686/sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
00db10
--- glibc-2.17-c758a686/sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S	2014-05-27 23:25:35.000000000 -0500
00db10
+++ glibc-2.17-c758a686/sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S	2014-05-27 23:25:38.000000000 -0500
00db10
@@ -151,15 +151,15 @@
00db10
 #   ifdef SHARED
00db10
 	lwz     r7,_rtld_global_ro@got(r7)
00db10
 	mtlr    r8
00db10
-	lwz     r7,RTLD_GLOBAL_RO_DL_HWCAP_OFFSET+4(r7)
00db10
+	lwz     r7,RTLD_GLOBAL_RO_DL_HWCAP_OFFSET+LOWORD(r7)
00db10
 #   else
00db10
 	lwz     r7,_dl_hwcap@got(r7)
00db10
 	mtlr    r8
00db10
-	lwz     r7,4(r7)
00db10
+	lwz     r7,LOWORD(r7)
00db10
 #   endif
00db10
 #  else
00db10
-	lis	r7,(_dl_hwcap+4)@ha
00db10
-	lwz     r7,(_dl_hwcap+4)@l(r7)
00db10
+	lis	r7,(_dl_hwcap+LOWORD)@ha
00db10
+	lwz     r7,(_dl_hwcap+LOWORD)@l(r7)
00db10
 #  endif
00db10
 	andis.	r7,r7,(PPC_FEATURE_HAS_ALTIVEC >> 16)
00db10
 
00db10
diff -urN glibc-2.17-c758a686/sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S glibc-2.17-c758a686/sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
00db10
--- glibc-2.17-c758a686/sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S	2014-05-27 23:25:35.000000000 -0500
00db10
+++ glibc-2.17-c758a686/sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S	2014-05-27 23:25:38.000000000 -0500
00db10
@@ -79,15 +79,15 @@
00db10
 # ifdef SHARED
00db10
 	lwz     r7,_rtld_global_ro@got(r7)
00db10
 	mtlr    r8
00db10
-	lwz     r7,RTLD_GLOBAL_RO_DL_HWCAP_OFFSET+4(r7)
00db10
+	lwz     r7,RTLD_GLOBAL_RO_DL_HWCAP_OFFSET+LOWORD(r7)
00db10
 # else
00db10
 	lwz     r7,_dl_hwcap@got(r7)
00db10
 	mtlr    r8
00db10
-	lwz     r7,4(r7)
00db10
+	lwz     r7,LOWORD(r7)
00db10
 # endif
00db10
 #else
00db10
-	lis	r7,(_dl_hwcap+4)@ha
00db10
-	lwz     r7,(_dl_hwcap+4)@l(r7)
00db10
+	lis	r7,(_dl_hwcap+LOWORD)@ha
00db10
+	lwz     r7,(_dl_hwcap+LOWORD)@l(r7)
00db10
 #endif
00db10
 
00db10
 #ifdef __CONTEXT_ENABLE_FPRS
00db10
diff -urN glibc-2.17-c758a686/sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S glibc-2.17-c758a686/sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
00db10
--- glibc-2.17-c758a686/sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S	2014-05-27 23:25:35.000000000 -0500
00db10
+++ glibc-2.17-c758a686/sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S	2014-05-27 23:25:38.000000000 -0500
00db10
@@ -152,15 +152,15 @@
00db10
 #  ifdef SHARED
00db10
 	lwz     r7,_rtld_global_ro@got(r7)
00db10
 	mtlr    r8
00db10
-	lwz     r7,RTLD_GLOBAL_RO_DL_HWCAP_OFFSET+4(r7)
00db10
+	lwz     r7,RTLD_GLOBAL_RO_DL_HWCAP_OFFSET+LOWORD(r7)
00db10
 #  else
00db10
 	lwz     r7,_dl_hwcap@got(r7)
00db10
 	mtlr    r8
00db10
-	lwz     r7,4(r7)
00db10
+	lwz     r7,LOWORD(r7)
00db10
 #  endif
00db10
 # else
00db10
-	lis	r7,(_dl_hwcap+4)@ha
00db10
-	lwz     r7,(_dl_hwcap+4)@l(r7)
00db10
+	lis	r7,(_dl_hwcap+LOWORD)@ha
00db10
+	lwz     r7,(_dl_hwcap+LOWORD)@l(r7)
00db10
 # endif
00db10
 
00db10
 # ifdef __CONTEXT_ENABLE_VRS
00db10
@@ -308,14 +308,14 @@
00db10
 	mtlr    r8
00db10
 #   ifdef SHARED
00db10
 	lwz     r7,_rtld_global_ro@got(r7)
00db10
-	lwz     r7,RTLD_GLOBAL_RO_DL_HWCAP_OFFSET+4(r7)
00db10
+	lwz     r7,RTLD_GLOBAL_RO_DL_HWCAP_OFFSET+LOWORD(r7)
00db10
 #   else
00db10
 	lwz     r7,_dl_hwcap@got(r7)
00db10
-	lwz     r7,4(r7)
00db10
+	lwz     r7,LOWORD(r7)
00db10
 #   endif
00db10
 #  else
00db10
-	lis	r7,(_dl_hwcap+4)@ha
00db10
-	lwz     r7,(_dl_hwcap+4)@l(r7)
00db10
+	lis	r7,(_dl_hwcap+LOWORD)@ha
00db10
+	lwz     r7,(_dl_hwcap+LOWORD)@l(r7)
00db10
 #  endif
00db10
 	andis.	r7,r7,(PPC_FEATURE_HAS_ALTIVEC >> 16)
00db10
 	la	r10,(_UC_VREGS)(r31)