]> 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)
committerAdhemerval Zanella <azanella@linux.vnet.ibm.com>
Fri, 15 Nov 2013 17:32:52 +0000 (11:32 -0600)
* 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 a96112654bbb81f2c7cc8b8ab42ab99cae5be9c9..bf099c9cfa535e3f5ad9a19bf443486eeab500e4 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 ec64951e22aa8ee057125b83d560147d02fe18f8..df8c14eca9e61ab79adedfbb16370eff987f8c34 100644 (file)
@@ -425,8 +425,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)
     {