From 0cd9fdfce53ff8ea0589197838f13115469c6a18 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Tue, 31 Jul 2007 07:56:54 +0000 Subject: [PATCH] 2.17.50.0.17-7 --- binutils-2.17.50.0.17-secure-plt.patch | 16 ++++++++++++++++ binutils.spec | 7 ++++++- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 binutils-2.17.50.0.17-secure-plt.patch diff --git a/binutils-2.17.50.0.17-secure-plt.patch b/binutils-2.17.50.0.17-secure-plt.patch new file mode 100644 index 0000000..89a373a --- /dev/null +++ b/binutils-2.17.50.0.17-secure-plt.patch @@ -0,0 +1,16 @@ +2007-06-27 Alan Modra + + * elf32-ppc.c (ppc_elf_select_plt_layout): Properly iterate over + input bfds. + +--- bfd/elf32-ppc.c.jj 2007-06-18 13:31:40.000000000 -0400 ++++ bfd/elf32-ppc.c 2007-07-31 03:48:37.000000000 -0400 +@@ -3703,7 +3703,7 @@ ppc_elf_select_plt_layout (bfd *output_b + --secure-plt and we never see REL16 relocs. */ + if (plt_type == PLT_UNSET) + plt_type = PLT_OLD; +- for (ibfd = info->input_bfds; ibfd; ibfd = ibfd->next) ++ for (ibfd = info->input_bfds; ibfd; ibfd = ibfd->link_next) + if (is_ppc_elf_target (ibfd->xvec)) + { + if (ppc_elf_tdata (ibfd)->has_rel16) diff --git a/binutils.spec b/binutils.spec index 32989dc..6be0155 100644 --- a/binutils.spec +++ b/binutils.spec @@ -1,7 +1,7 @@ Summary: A GNU collection of binary utilities. Name: binutils Version: 2.17.50.0.17 -Release: 6 +Release: 7 License: GPL Group: Development/Tools URL: http://sources.redhat.com/binutils @@ -17,6 +17,7 @@ Patch8: binutils-2.17.50.0.17-version.patch Patch9: binutils-2.17.50.0.17-build-id.patch Patch10: binutils-2.17.50.0.17-pt_note-coalescing.patch Patch11: binutils-2.17.50.0.17-build-id-script.patch +Patch12: binutils-2.17.50.0.17-secure-plt.patch Buildroot: %{_tmppath}/binutils-root BuildRequires: texinfo >= 4.0, dejagnu, gettext, flex, bison @@ -73,6 +74,7 @@ to consider using libelf instead of BFD. %patch9 -p0 -b .build-id~ %patch10 -p0 -b .pt_note-coalescing~ %patch11 -p0 -b .build-id-script~ +%patch12 -p0 -b .secure-plt~ # On ppc64 we might use 64K pages sed -i -e '/#define.*ELF_COMMONPAGESIZE/s/0x1000$/0x10000/' bfd/elf*ppc.c @@ -223,6 +225,9 @@ fi %{_infodir}/bfd*info* %changelog +* Tue Jul 31 2007 Jakub Jelinek 2.17.50.0.17-7 +- fix ppc32 secure PLT detection (Alan Modra) + * Wed Jul 25 2007 Jakub Jelinek 2.17.50.0.17-6 - rebuilt to make sure even libbfd.so and libopcodes.so aren't broken by #249435