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