From d83e8ebe37d0c12fc10e10e2d8ff4abeed6f734c Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Mon, 22 Sep 2008 10:43:25 +0000 Subject: [PATCH] - Fix *.so scripts for multilib linking (BZ 463101, suggested by Jakub Jelinek). --- binutils-2.18.50.0.9-output-format.sed | 38 ++++++++++++++++++++++++++ binutils.spec | 28 +++++++++++++++---- 2 files changed, 61 insertions(+), 5 deletions(-) create mode 100644 binutils-2.18.50.0.9-output-format.sed diff --git a/binutils-2.18.50.0.9-output-format.sed b/binutils-2.18.50.0.9-output-format.sed new file mode 100644 index 0000000..fd770cb --- /dev/null +++ b/binutils-2.18.50.0.9-output-format.sed @@ -0,0 +1,38 @@ +# Generate OUTPUT_FORMAT line for .so files from the system linker output. +# Imported from glibc/Makerules. + +/ld.*[ ]-E[BL]/b f +/collect.*[ ]-E[BL]/b f +/OUTPUT_FORMAT[^)]*$/{N +s/\n[ ]*/ / +} +t o +: o +s/^.*OUTPUT_FORMAT(\([^,]*\), \1, \1).*$/OUTPUT_FORMAT(\1)/ +t q +s/^.*OUTPUT_FORMAT(\([^,]*\), \([^,]*\), \([^,]*\)).*$/\1,\2,\3/ +t s +s/^.*OUTPUT_FORMAT(\([^,)]*\).*$)/OUTPUT_FORMAT(\1)/ +t q +d +: s +s/"//g +G +s/\n// +s/^\([^,]*\),\([^,]*\),\([^,]*\),B/OUTPUT_FORMAT(\2)/p +s/^\([^,]*\),\([^,]*\),\([^,]*\),L/OUTPUT_FORMAT(\3)/p +s/^\([^,]*\),\([^,]*\),\([^,]*\)/OUTPUT_FORMAT(\1)/p +/,/s|^|*** BUG in libc/scripts/output-format.sed *** |p +q +: q +s/"//g +p +q +: f +s/^.*[ ]-E\([BL]\)[ ].*$/,\1/ +t h +s/^.*[ ]-E\([BL]\)$/,\1/ +t h +d +: h +h diff --git a/binutils.spec b/binutils.spec index e00bf47..874143b 100644 --- a/binutils.spec +++ b/binutils.spec @@ -17,11 +17,12 @@ Summary: A GNU collection of binary utilities Name: %{?cross}binutils%{?_with_debug:-debug} Version: 2.18.50.0.9 -Release: 3%{?dist} +Release: 4%{?dist} License: GPLv3+ Group: Development/Tools URL: http://sources.redhat.com/binutils Source: ftp://ftp.kernel.org/pub/linux/devel/binutils/binutils-%{version}.tar.bz2 +Source2: binutils-2.18.50.0.9-output-format.sed Patch1: binutils-2.18.50.0.6-ltconfig-multilib.patch Patch2: binutils-2.18.50.0.6-ppc64-pie.patch Patch3: binutils-2.18.50.0.8-place-orphan.patch @@ -235,15 +236,29 @@ sed -i -e '/^#include "ansidecl.h"/{p;s~^.*$~#include ~;}' \ %endif touch -r bfd/bfd-in2.h %{buildroot}%{_prefix}/include/bfd.h -cat >%{buildroot}%{_prefix}/%{_lib}/libbfd.so <%{buildroot}%{_prefix}/%{_lib}/libopcodes.so < 2.18.50.0.9-4 +- Fix *.so scripts for multilib linking (BZ 463101, suggested by Jakub Jelinek). + * Sun Sep 21 2008 Jan Kratochvil 2.18.50.0.9-3 - Provide libbfd.so and libopcodes.so for automatic dependencies (BZ 463101). - Fix .eh_frame_hdr build on C++ files with discarded common groups (BZ 458950).