From: Alan Modra Date: Fri, 4 Oct 2013 03:18:51 +0000 (+0930) Subject: Use stdint.h types in union unaligned. X-Git-Tag: glibc-2.19~665 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4cb81307b3771672864fa3a7498bd39c13267a00;p=thirdparty%2Fglibc.git Use stdint.h types in union unaligned. * 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. --- diff --git a/ChangeLog b/ChangeLog index 52bfa8ac7f0..0280837858c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2013-10-04 Alan Modra + + * 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 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela): diff --git a/sysdeps/powerpc/powerpc32/dl-machine.c b/sysdeps/powerpc/powerpc32/dl-machine.c index f81899a0ac5..aba3618561f 100644 --- a/sysdeps/powerpc/powerpc32/dl-machine.c +++ b/sysdeps/powerpc/powerpc32/dl-machine.c @@ -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) diff --git a/sysdeps/powerpc/powerpc64/dl-machine.h b/sysdeps/powerpc/powerpc64/dl-machine.h index b69a1ce06fe..18cf15738ac 100644 --- a/sysdeps/powerpc/powerpc64/dl-machine.h +++ b/sysdeps/powerpc/powerpc64/dl-machine.h @@ -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) {