File arm-dl_hwcap-ifunc-resolver.patch of Package glibc.4601

2013-08-28  Kyle McMartin  <kyle@redhat.com>
	    Carlos O'Donell  <carlos@redhat.com>

	[BZ #15905]
	* sysdeps/arm/dl-machine [!RTLD_BOOTSTRAP] (elf_machine_rel):
	Pass GLRO(dl_hwcap) to the IFUNC resolver.

Index: glibc-2.18/ports/sysdeps/arm/dl-machine.h
===================================================================
--- glibc-2.18.orig/ports/sysdeps/arm/dl-machine.h
+++ glibc-2.18/ports/sysdeps/arm/dl-machine.h
@@ -503,7 +503,7 @@ elf_machine_rel (struct link_map *map, c
 	  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
openSUSE Build Service is sponsored by