arrfab / rpms / glibc

Forked from rpms/glibc 4 years ago
Clone

Blame SOURCES/glibc-rh1162847-p2.patch

147e83
#
147e83
# commit 4cb81307b3771672864fa3a7498bd39c13267a00
147e83
# Author: Alan Modra <amodra@gmail.com>
147e83
# Date:   Fri Oct 4 12:48:51 2013 +0930
147e83
# 
147e83
#     Use stdint.h types in union unaligned.
147e83
# 
147e83
#         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
147e83
#         Use stdint types in rather than __attribute__((mode())).
147e83
#         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
147e83
# 
147e83
diff --git glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/dl-machine.c glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/dl-machine.c
147e83
index f81899a..aba3618 100644
147e83
--- glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/dl-machine.c
147e83
+++ glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/dl-machine.c
147e83
@@ -418,8 +418,8 @@ __process_machine_rela (struct link_map *map,
147e83
 {
147e83
   union unaligned
147e83
     {
147e83
-      unsigned u2 __attribute__ ((mode (HI)));
147e83
-      unsigned u4 __attribute__ ((mode (SI)));
147e83
+      uint16_t u2;
147e83
+      uint32_t u4;
147e83
     } __attribute__((__packed__));
147e83
 
147e83
   switch (rinfo)
147e83
diff --git glibc-2.17-c758a686/sysdeps/powerpc/powerpc64/dl-machine.h glibc-2.17-c758a686/sysdeps/powerpc/powerpc64/dl-machine.h
147e83
index b69a1ce..18cf157 100644
147e83
--- glibc-2.17-c758a686/sysdeps/powerpc/powerpc64/dl-machine.h
147e83
+++ glibc-2.17-c758a686/sysdeps/powerpc/powerpc64/dl-machine.h
147e83
@@ -563,10 +563,10 @@ elf_machine_rela (struct link_map *map,
147e83
   const Elf64_Sym *const refsym = sym;
147e83
   union unaligned
147e83
     {
147e83
-      unsigned u2 __attribute__ ((mode (HI)));
147e83
-      unsigned u4 __attribute__ ((mode (SI)));
147e83
-      unsigned u8 __attribute__ ((mode (DI)));
147e83
-    } __attribute__((__packed__));
147e83
+      uint16_t u2;
147e83
+      uint32_t u4;
147e83
+      uint64_t u8;
147e83
+    } __attribute__ ((__packed__));
147e83
 
147e83
   if (r_type == R_PPC64_RELATIVE)
147e83
     {