diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2012-03-22 10:17:05 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2012-03-22 10:17:05 -0700 |
commit | 81b035fe638d677f90200598294d15811dcccf68 (patch) | |
tree | 651404fe8af2239f0a2de8c3553f351245ec220e /sysdeps | |
parent | 1da7940c77153881471f01d0510abb392aa164c5 (diff) | |
download | glibc-81b035fe638d677f90200598294d15811dcccf68.tar glibc-81b035fe638d677f90200598294d15811dcccf68.tar.gz glibc-81b035fe638d677f90200598294d15811dcccf68.tar.bz2 glibc-81b035fe638d677f90200598294d15811dcccf68.zip |
Replace Elf64_XXX with ElfW(XXX) in dl-irel.h
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/x86_64/dl-irel.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sysdeps/x86_64/dl-irel.h b/sysdeps/x86_64/dl-irel.h index bc7e54e985..830f5db8c8 100644 --- a/sysdeps/x86_64/dl-irel.h +++ b/sysdeps/x86_64/dl-irel.h @@ -25,23 +25,23 @@ #define ELF_MACHINE_IRELA 1 -static inline Elf64_Addr +static inline ElfW(Addr) __attribute ((always_inline)) -elf_ifunc_invoke (Elf64_Addr addr) +elf_ifunc_invoke (ElfW(Addr) addr) { - return ((Elf64_Addr (*) (void)) (addr)) (); + return ((ElfW(Addr) (*) (void)) (addr)) (); } static inline void __attribute ((always_inline)) -elf_irela (const Elf64_Rela *reloc) +elf_irela (const ElfW(Rela) *reloc) { - Elf64_Addr *const reloc_addr = (void *) reloc->r_offset; - const unsigned long int r_type = ELF64_R_TYPE (reloc->r_info); + ElfW(Addr) *const reloc_addr = (void *) reloc->r_offset; + const unsigned long int r_type = ELFW(R_TYPE) (reloc->r_info); if (__builtin_expect (r_type == R_X86_64_IRELATIVE, 1)) { - Elf64_Addr value = elf_ifunc_invoke(reloc->r_addend); + ElfW(Addr) value = elf_ifunc_invoke(reloc->r_addend); *reloc_addr = value; } else |