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