]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Use stdint.h types in union unaligned.
authorAlan Modra <amodra@gmail.com>
Fri, 4 Oct 2013 03:18:51 +0000 (12:48 +0930)
committerAlan Modra <amodra@gmail.com>
Fri, 4 Oct 2013 03:21:11 +0000 (12:51 +0930)
* sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
Use stdint types in rather than __attribute__((mode())).
* sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.

ChangeLog
sysdeps/powerpc/powerpc32/dl-machine.c
sysdeps/powerpc/powerpc64/dl-machine.h

index 52bfa8ac7f0886e0514536a54a37757d6d21d60f..0280837858cc847c39e4e2643e45fb20b3cf9d91 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2013-10-04  Alan Modra  <amodra@gmail.com>
+
+       * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
+       Use stdint types in rather than __attribute__((mode())).
+       * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
+
 2013-10-04  Alan Modra  <amodra@gmail.com>
 
        * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
index f81899a0ac522d7fd5fc180338421cb1a6428c1c..aba3618561f10410c227d418e2ee7ec7faa6f2d6 100644 (file)
@@ -418,8 +418,8 @@ __process_machine_rela (struct link_map *map,
 {
   union unaligned
     {
-      unsigned u2 __attribute__ ((mode (HI)));
-      unsigned u4 __attribute__ ((mode (SI)));
+      uint16_t u2;
+      uint32_t u4;
     } __attribute__((__packed__));
 
   switch (rinfo)
index b69a1ce06fed2022e64b4e8f1f19c25b57f49678..18cf15738ac059a795b7a1deffc587e9a0f73e76 100644 (file)
@@ -563,10 +563,10 @@ elf_machine_rela (struct link_map *map,
   const Elf64_Sym *const refsym = sym;
   union unaligned
     {
-      unsigned u2 __attribute__ ((mode (HI)));
-      unsigned u4 __attribute__ ((mode (SI)));
-      unsigned u8 __attribute__ ((mode (DI)));
-    } __attribute__((__packed__));
+      uint16_t u2;
+      uint32_t u4;
+      uint64_t u8;
+    } __attribute__ ((__packed__));
 
   if (r_type == R_PPC64_RELATIVE)
     {