From 1413c693d3390e02399a0042ef97b73918749977 Mon Sep 17 00:00:00 2001 From: Will Newton Date: Tue, 2 Jul 2013 13:01:21 +0000 Subject: ARM: Pass dl_hwcap to IFUNC resolver functions. --- ports/ChangeLog.arm | 5 +++++ ports/sysdeps/arm/dl-machine.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'ports') diff --git a/ports/ChangeLog.arm b/ports/ChangeLog.arm index 6cc665c99c..2674d0ee0a 100644 --- a/ports/ChangeLog.arm +++ b/ports/ChangeLog.arm @@ -1,3 +1,8 @@ +2013-07-02 Will Newton + + * sysdeps/arm/dl-machine.h (elf_machine_rela): Pass dl_hwcap + to IFUNC resolver functions. + 2013-06-28 Ryan S. Arnold * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_dl_procinfo): Add diff --git a/ports/sysdeps/arm/dl-machine.h b/ports/sysdeps/arm/dl-machine.h index 4cf87a99f9..d251527338 100644 --- a/ports/sysdeps/arm/dl-machine.h +++ b/ports/sysdeps/arm/dl-machine.h @@ -595,7 +595,7 @@ elf_machine_rela (struct link_map *map, const Elf32_Rela *reloc, break; case R_ARM_IRELATIVE: value = map->l_addr + *reloc_addr; - value = ((Elf32_Addr (*) (void)) value) (); + value = ((Elf32_Addr (*) (int)) value) (GLRO(dl_hwcap)); *reloc_addr = value; break; #endif -- cgit v1.2.3