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