diff --git a/glibc-rh985342.patch b/glibc-rh985342.patch new file mode 100644 index 0000000..20d0d13 --- /dev/null +++ b/glibc-rh985342.patch @@ -0,0 +1,40 @@ +# +# Both of these change are required and alraedy upstream. +# +# 2013-08-28 Kyle McMartin +# Carlos O'Donell +# +# * sysdeps/arm/dl-machine [!RTLD_BOOTSTRAP] (elf_machine_rel): +# Pass GLRO(dl_hwcap) to the IFUNC resolver. +# +# 2013-07-02 Will Newton +# +# * sysdeps/arm/dl-machine.h (elf_machine_rela): Pass dl_hwcap +# to IFUNC resolver functions. +# +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 +diff --git a/ports/sysdeps/arm/dl-machine.h b/ports/sysdeps/arm/dl-machine.h +index 4cf87a9..d251527 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 diff --git a/glibc.spec b/glibc.spec index ba06b26..c58f2fd 100644 --- a/glibc.spec +++ b/glibc.spec @@ -1,5 +1,6 @@ %define glibcsrcdir glibc-2.17-c758a686 %define glibcversion 2.17 +%define glibcrelease 17%{?dist} ### glibc.spec.in follows: %define run_glibc_tests 1 %define auxarches athlon alphaev6 @@ -27,7 +28,7 @@ Summary: The GNU libc libraries Name: glibc Version: %{glibcversion} -Release: 16%{?dist} +Release: %{glibcrelease} # GPLv2+ is used in a bunch of programs, LGPLv2+ is used for libraries. # Things that are linked directly into dynamically linked programs # and shared libraries (e.g. crt files, lib*_nonshared.a) have an additional @@ -130,6 +131,7 @@ Patch1008: %{name}-rh984829.patch Patch1009: %{name}-rh995841.patch Patch1010: %{name}-rh947892.patch Patch1011: %{name}-rh1008299.patch +Patch1012: %{name}-rh985342.patch # # Patches submitted, but not yet approved upstream. @@ -454,6 +456,7 @@ package or when debugging this package. %patch0041 -p1 %patch0042 -p1 %patch1011 -p1 +%patch1012 -p1 # On powerpc32, hp timing is only available in power4/power6 # libs, not in base, so pre-power4 dynamic linker is incompatible @@ -1244,6 +1247,10 @@ rm -f *.filelist* %endif %changelog +* Sun Sep 22 2013 Carlos O'Donell - 2.17-17 +- Fix indirect function support to avoid calling optimized routines + for the wrong hardware (#985342). + * Wed Sep 18 2013 Patsy Franklin - 2.17-16 - Fix conditional requiring specific binutils for s390/s390x.