From d0721e703d222c01a9e8c329311c4fb01dac6972 Mon Sep 17 00:00:00 2001 From: Carlos O'Donell Date: Thu, 29 Aug 2013 00:17:33 -0400 Subject: [PATCH] ARM: Pass dl_hwcap to IFUNC resolver. For REL relocs pass dl_hwcap to the IFUNC resolver as is required by the IFUNC API (bug 15905). --- NEWS | 2 +- ports/ChangeLog.arm | 7 +++++++ ports/sysdeps/arm/dl-machine.h | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ports/sysdeps/arm/dl-machine.h b/ports/sysdeps/arm/dl-machine.h index d251527..85dba67 100644 --- a/ports/sysdeps/arm/dl-machine.h +++ b/ports/sysdeps/arm/dl-machine.h @@ -503,7 +503,7 @@ elf_machine_rel (struct link_map *map, const Elf32_Rel *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 -- 1.7.0.9.GIT