- Update to binutils 2.21.

OBS-URL: https://build.opensuse.org/package/show/devel:gcc/binutils?expand=0&rev=33
This commit is contained in:
Richard Biener 2011-01-10 16:53:49 +00:00 committed by Git OBS Bridge
parent b5f59ed764
commit 15f0bd9314
37 changed files with 232 additions and 217 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d7dba3f489bac87608e41182ca25371794c3732b8086234d855851f84b1bbfc4
size 17963211

3
binutils-2.21.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:60abec5bf448eb930a5a15acb8712612377dc8bcfb13dfd5131228f70561d0c7
size 18742991

View File

@ -1,8 +1,8 @@
Index: ld/emultempl/elf32.em
===================================================================
--- ld/emultempl/elf32.em.orig 2009-11-23 14:02:48.000000000 +0100
+++ ld/emultempl/elf32.em 2009-11-23 14:03:07.000000000 +0100
@@ -1394,15 +1394,46 @@ if test x"$LDEMUL_BEFORE_ALLOCATION" !=
--- ld/emultempl/elf32.em.orig 2010-10-29 14:10:36.000000000 +0200
+++ ld/emultempl/elf32.em 2011-01-10 17:42:31.000000000 +0100
@@ -1432,8 +1432,38 @@ if test x"$LDEMUL_BEFORE_ALLOCATION" !=
else
ELF_INTERPRETER_SET_DEFAULT=
fi
@ -11,110 +11,109 @@ Index: ld/emultempl/elf32.em
+ for path in $NATIVE_LIB_DIRS; do
+ libpath_nl="$libpath_nl\n$path"
+ done
+
fragment <<EOF
+static int
+gld${EMULATION_NAME}_is_contained (const char *path, const char *dc)
+{
+ while (*dc)
+ while (*dc)
+ {
+ const char *pc = path;
+
+ while (*dc && *pc && *dc == *pc && *dc != '\n'
+ && *pc != ':' && *dc != '=')
+ {
+ dc++;
+ pc++;
+ }
+ && *pc != ':' && *dc != '=')
+ {
+ dc++;
+ pc++;
+ }
+ if ((*pc == 0 || *pc == ':') && (*dc == '\n' || *dc == '=' || *dc == 0))
+ return 1;
+ return 1;
+
+ while (*dc && *dc != '\n')
+ dc++;
+ dc++;
+ if (*dc == '\n')
+ dc++;
+ dc++;
+ }
+
+ return 0;
+}
+
/* This is called after the sections have been attached to output
sections, but before any sizes or addresses have been set. */
/* used by before_allocation and handle_option. */
static void
gld${EMULATION_NAME}_append_to_separated_string (char **to, char *op_arg)
@@ -1480,7 +1510,7 @@ gld${EMULATION_NAME}_append_to_separated
static void
gld${EMULATION_NAME}_before_allocation (void)
{
- const char *rpath;
+ char *rpath;
asection *sinterp;
bfd *abfd;
if (link_info.hash->type == bfd_link_elf_hash_table)
@@ -1417,7 +1448,66 @@ gld${EMULATION_NAME}_before_allocation (
@@ -1496,7 +1526,65 @@ gld${EMULATION_NAME}_before_allocation (
by dynamic linking. */
rpath = command_line.rpath;
if (rpath == NULL)
- rpath = (const char *) getenv ("LD_RUN_PATH");
+ rpath = getenv ("LD_RUN_PATH");
+
+ if (rpath != NULL && getenv ("SUSE_IGNORED_RPATHS"))
+ if (rpath != NULL && getenv ("SUSE_IGNORED_RPATHS"))
+ {
+ char *dirs = 0;
+ FILE *ldso = fopen (getenv ("SUSE_IGNORED_RPATHS"), "r");
+ if (ldso)
+ {
+ off_t endcur = 0;
+ fseek (ldso, 0, SEEK_END);
+ endcur = ftell (ldso);
+ fseek (ldso, 0, SEEK_SET);
+ dirs = xmalloc (endcur);
+ if (fread (dirs, 1, endcur, ldso) != (size_t) endcur)
+ {
+ free (dirs);
+ dirs = NULL;
+ }
+ }
+ if (ldso)
+ {
+ off_t endcur = 0;
+ fseek (ldso, 0, SEEK_END);
+ endcur = ftell (ldso);
+ fseek (ldso, 0, SEEK_SET);
+ dirs = xmalloc (endcur);
+ if (fread (dirs, 1, endcur, ldso) != (size_t) endcur)
+ {
+ free (dirs);
+ dirs = NULL;
+ }
+ }
+ if (dirs)
+ {
+ char *cr;
+ rpath = xstrdup (rpath);
+ cr = rpath; /* cursor read */
+ {
+ char *cr;
+ rpath = xstrdup (rpath);
+ cr = rpath; /* cursor read */
+
+ while (*cr)
+ while (*cr)
+ {
+ if (gld${EMULATION_NAME}_is_contained (cr, dirs)
+ || gld${EMULATION_NAME}_is_contained (cr, "$libpath_nl"))
+ {
+ char *cc = cr, *cw = cr;
+ while (*cc && *cc != ':')
+ cc++;
+ if (*cc == ':')
+ if (gld${EMULATION_NAME}_is_contained (cr, dirs)
+ || gld${EMULATION_NAME}_is_contained (cr, "$libpath_nl"))
+ {
+ char *cc = cr, *cw = cr;
+ while (*cc && *cc != ':')
+ cc++;
+ if (*cc == ':')
+ {
+ cc++;
+ for (; *cc; cc++, cw++)
+ *cw = *cc;
+ cc++;
+ for (; *cc; cc++, cw++)
+ *cw = *cc;
+ }
+ else if (cw > rpath)
+ cw[-1] = 0;
+
+ *cw = 0;
+ }
+ else
+ {
+ while (*cr && *cr != ':')
+ cr++;
+ if (*cr == ':')
+ cr++;
+ }
+ }
+ if (*rpath == '\0')
+ {
+ free (rpath);
+ rpath = NULL;
+ }
+ }
+ *cw = 0;
+ }
+ else
+ {
+ while (*cr && *cr != ':')
+ cr++;
+ if (*cr == ':')
+ cr++;
+ }
+ }
+ if (*rpath == '\0')
+ {
+ free (rpath);
+ rpath = NULL;
+ }
+ }
+ }
+
if (! (bfd_elf_size_dynamic_sections
(link_info.output_bfd, command_line.soname, rpath,
command_line.filter_shlib,
for (abfd = link_info.input_bfds; abfd; abfd = abfd->link_next)
if (bfd_get_flavour (abfd) == bfd_target_elf_flavour)

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jan 10 16:51:10 UTC 2011 - rguenther@novell.com
- Update to binutils 2.21.
-------------------------------------------------------------------
Tue Jul 27 11:43:24 UTC 2010 - rguenther@novell.com

View File

@ -1,5 +1,5 @@
#
# spec file for package binutils (Version 2.20.0)
# spec file for package binutils (Version 2.21)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
@ -24,7 +24,7 @@ BuildRequires: zlib-devel-static
%else
BuildRequires: zlib-devel
%endif
Version: 2.20.0
Version: 2.21
Release: 11
#
# RUN_TESTS
@ -84,10 +84,8 @@ Patch11: use-hashtype-both-by-default.diff
Patch12: s390-pic-dso.diff
Patch14: binutils-build-as-needed.diff
Patch15: fixup-testcase-perturb.diff
Patch16: fix-ppc-perturb.diff
Patch90: cross-avr-nesc-as.patch
Patch92: cross-avr-omit_section_dynsym.patch
Patch100: xop.diff.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if "%{name}" != "binutils"
%define _prefix /opt/cross
@ -296,13 +294,11 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa
%patch12
%patch14
%patch15
%patch16 -p1
%if "%{TARGET}" == "avr"
cp gas/config/tc-avr.h gas/config/tc-avr-nesc.h
%patch90
%patch92
%endif
%patch100 -p1
#
# test_vanilla
%endif

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jan 10 16:51:10 UTC 2011 - rguenther@novell.com
- Update to binutils 2.21.
-------------------------------------------------------------------
Tue Jul 27 11:43:24 UTC 2010 - rguenther@novell.com

View File

@ -1,5 +1,5 @@
#
# spec file for package cross-alpha-binutils (Version 2.20.0)
# spec file for package binutils (Version 2.21)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
@ -17,14 +17,14 @@
Name: cross-alpha-binutils
Name: cross-alpha-binutils
BuildRequires: bison dejagnu flex gcc-c++
%if 0%{suse_version} > 1110
BuildRequires: zlib-devel-static
%else
BuildRequires: zlib-devel
%endif
Version: 2.20.0
Version: 2.21
Release: 11
#
# RUN_TESTS
@ -84,10 +84,8 @@ Patch11: use-hashtype-both-by-default.diff
Patch12: s390-pic-dso.diff
Patch14: binutils-build-as-needed.diff
Patch15: fixup-testcase-perturb.diff
Patch16: fix-ppc-perturb.diff
Patch90: cross-avr-nesc-as.patch
Patch92: cross-avr-omit_section_dynsym.patch
Patch100: xop.diff.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if "%{name}" != "binutils"
%define _prefix /opt/cross
@ -268,13 +266,11 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa
%patch12
%patch14
%patch15
%patch16 -p1
%if "%{TARGET}" == "avr"
cp gas/config/tc-avr.h gas/config/tc-avr-nesc.h
%patch90
%patch92
%endif
%patch100 -p1
#
# test_vanilla
%endif

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jan 10 16:51:10 UTC 2011 - rguenther@novell.com
- Update to binutils 2.21.
-------------------------------------------------------------------
Tue Jul 27 11:43:24 UTC 2010 - rguenther@novell.com

View File

@ -1,5 +1,5 @@
#
# spec file for package cross-arm-binutils (Version 2.20.0)
# spec file for package binutils (Version 2.21)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
@ -17,14 +17,14 @@
Name: cross-arm-binutils
Name: cross-arm-binutils
BuildRequires: bison dejagnu flex gcc-c++
%if 0%{suse_version} > 1110
BuildRequires: zlib-devel-static
%else
BuildRequires: zlib-devel
%endif
Version: 2.20.0
Version: 2.21
Release: 11
#
# RUN_TESTS
@ -84,10 +84,8 @@ Patch11: use-hashtype-both-by-default.diff
Patch12: s390-pic-dso.diff
Patch14: binutils-build-as-needed.diff
Patch15: fixup-testcase-perturb.diff
Patch16: fix-ppc-perturb.diff
Patch90: cross-avr-nesc-as.patch
Patch92: cross-avr-omit_section_dynsym.patch
Patch100: xop.diff.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if "%{name}" != "binutils"
%define _prefix /opt/cross
@ -268,13 +266,11 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa
%patch12
%patch14
%patch15
%patch16 -p1
%if "%{TARGET}" == "avr"
cp gas/config/tc-avr.h gas/config/tc-avr-nesc.h
%patch90
%patch92
%endif
%patch100 -p1
#
# test_vanilla
%endif

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jan 10 16:51:10 UTC 2011 - rguenther@novell.com
- Update to binutils 2.21.
-------------------------------------------------------------------
Tue Jul 27 11:43:24 UTC 2010 - rguenther@novell.com

View File

@ -1,5 +1,5 @@
#
# spec file for package cross-hppa-binutils (Version 2.20.0)
# spec file for package binutils (Version 2.21)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
@ -17,14 +17,14 @@
Name: cross-hppa-binutils
Name: cross-hppa-binutils
BuildRequires: bison dejagnu flex gcc-c++
%if 0%{suse_version} > 1110
BuildRequires: zlib-devel-static
%else
BuildRequires: zlib-devel
%endif
Version: 2.20.0
Version: 2.21
Release: 11
#
# RUN_TESTS
@ -84,10 +84,8 @@ Patch11: use-hashtype-both-by-default.diff
Patch12: s390-pic-dso.diff
Patch14: binutils-build-as-needed.diff
Patch15: fixup-testcase-perturb.diff
Patch16: fix-ppc-perturb.diff
Patch90: cross-avr-nesc-as.patch
Patch92: cross-avr-omit_section_dynsym.patch
Patch100: xop.diff.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if "%{name}" != "binutils"
%define _prefix /opt/cross
@ -268,13 +266,11 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa
%patch12
%patch14
%patch15
%patch16 -p1
%if "%{TARGET}" == "avr"
cp gas/config/tc-avr.h gas/config/tc-avr-nesc.h
%patch90
%patch92
%endif
%patch100 -p1
#
# test_vanilla
%endif

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jan 10 16:51:10 UTC 2011 - rguenther@novell.com
- Update to binutils 2.21.
-------------------------------------------------------------------
Tue Jul 27 11:43:24 UTC 2010 - rguenther@novell.com

View File

@ -1,5 +1,5 @@
#
# spec file for package cross-hppa64-binutils (Version 2.20.0)
# spec file for package binutils (Version 2.21)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
@ -17,14 +17,14 @@
Name: cross-hppa64-binutils
Name: cross-hppa64-binutils
BuildRequires: bison dejagnu flex gcc-c++
%if 0%{suse_version} > 1110
BuildRequires: zlib-devel-static
%else
BuildRequires: zlib-devel
%endif
Version: 2.20.0
Version: 2.21
Release: 11
#
# RUN_TESTS
@ -84,10 +84,8 @@ Patch11: use-hashtype-both-by-default.diff
Patch12: s390-pic-dso.diff
Patch14: binutils-build-as-needed.diff
Patch15: fixup-testcase-perturb.diff
Patch16: fix-ppc-perturb.diff
Patch90: cross-avr-nesc-as.patch
Patch92: cross-avr-omit_section_dynsym.patch
Patch100: xop.diff.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if "%{name}" != "binutils"
%define _prefix /opt/cross
@ -268,13 +266,11 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa
%patch12
%patch14
%patch15
%patch16 -p1
%if "%{TARGET}" == "avr"
cp gas/config/tc-avr.h gas/config/tc-avr-nesc.h
%patch90
%patch92
%endif
%patch100 -p1
#
# test_vanilla
%endif

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jan 10 16:51:10 UTC 2011 - rguenther@novell.com
- Update to binutils 2.21.
-------------------------------------------------------------------
Tue Jul 27 11:43:24 UTC 2010 - rguenther@novell.com

View File

@ -1,5 +1,5 @@
#
# spec file for package cross-i386-binutils (Version 2.20.0)
# spec file for package binutils (Version 2.21)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
@ -17,14 +17,14 @@
Name: cross-i386-binutils
Name: cross-i386-binutils
BuildRequires: bison dejagnu flex gcc-c++
%if 0%{suse_version} > 1110
BuildRequires: zlib-devel-static
%else
BuildRequires: zlib-devel
%endif
Version: 2.20.0
Version: 2.21
Release: 11
#
# RUN_TESTS
@ -84,10 +84,8 @@ Patch11: use-hashtype-both-by-default.diff
Patch12: s390-pic-dso.diff
Patch14: binutils-build-as-needed.diff
Patch15: fixup-testcase-perturb.diff
Patch16: fix-ppc-perturb.diff
Patch90: cross-avr-nesc-as.patch
Patch92: cross-avr-omit_section_dynsym.patch
Patch100: xop.diff.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if "%{name}" != "binutils"
%define _prefix /opt/cross
@ -268,13 +266,11 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa
%patch12
%patch14
%patch15
%patch16 -p1
%if "%{TARGET}" == "avr"
cp gas/config/tc-avr.h gas/config/tc-avr-nesc.h
%patch90
%patch92
%endif
%patch100 -p1
#
# test_vanilla
%endif

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jan 10 16:51:10 UTC 2011 - rguenther@novell.com
- Update to binutils 2.21.
-------------------------------------------------------------------
Tue Jul 27 11:43:24 UTC 2010 - rguenther@novell.com

View File

@ -1,5 +1,5 @@
#
# spec file for package cross-ia64-binutils (Version 2.20.0)
# spec file for package binutils (Version 2.21)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
@ -17,14 +17,14 @@
Name: cross-ia64-binutils
Name: cross-ia64-binutils
BuildRequires: bison dejagnu flex gcc-c++
%if 0%{suse_version} > 1110
BuildRequires: zlib-devel-static
%else
BuildRequires: zlib-devel
%endif
Version: 2.20.0
Version: 2.21
Release: 11
#
# RUN_TESTS
@ -84,10 +84,8 @@ Patch11: use-hashtype-both-by-default.diff
Patch12: s390-pic-dso.diff
Patch14: binutils-build-as-needed.diff
Patch15: fixup-testcase-perturb.diff
Patch16: fix-ppc-perturb.diff
Patch90: cross-avr-nesc-as.patch
Patch92: cross-avr-omit_section_dynsym.patch
Patch100: xop.diff.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if "%{name}" != "binutils"
%define _prefix /opt/cross
@ -268,13 +266,11 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa
%patch12
%patch14
%patch15
%patch16 -p1
%if "%{TARGET}" == "avr"
cp gas/config/tc-avr.h gas/config/tc-avr-nesc.h
%patch90
%patch92
%endif
%patch100 -p1
#
# test_vanilla
%endif

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jan 10 16:51:10 UTC 2011 - rguenther@novell.com
- Update to binutils 2.21.
-------------------------------------------------------------------
Tue Jul 27 11:43:24 UTC 2010 - rguenther@novell.com

View File

@ -1,5 +1,5 @@
#
# spec file for package cross-mips-binutils (Version 2.20.0)
# spec file for package binutils (Version 2.21)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
@ -17,14 +17,14 @@
Name: cross-mips-binutils
Name: cross-mips-binutils
BuildRequires: bison dejagnu flex gcc-c++
%if 0%{suse_version} > 1110
BuildRequires: zlib-devel-static
%else
BuildRequires: zlib-devel
%endif
Version: 2.20.0
Version: 2.21
Release: 11
#
# RUN_TESTS
@ -84,10 +84,8 @@ Patch11: use-hashtype-both-by-default.diff
Patch12: s390-pic-dso.diff
Patch14: binutils-build-as-needed.diff
Patch15: fixup-testcase-perturb.diff
Patch16: fix-ppc-perturb.diff
Patch90: cross-avr-nesc-as.patch
Patch92: cross-avr-omit_section_dynsym.patch
Patch100: xop.diff.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if "%{name}" != "binutils"
%define _prefix /opt/cross
@ -268,13 +266,11 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa
%patch12
%patch14
%patch15
%patch16 -p1
%if "%{TARGET}" == "avr"
cp gas/config/tc-avr.h gas/config/tc-avr-nesc.h
%patch90
%patch92
%endif
%patch100 -p1
#
# test_vanilla
%endif

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jan 10 16:51:10 UTC 2011 - rguenther@novell.com
- Update to binutils 2.21.
-------------------------------------------------------------------
Tue Jul 27 11:43:24 UTC 2010 - rguenther@novell.com

View File

@ -1,5 +1,5 @@
#
# spec file for package cross-ppc-binutils (Version 2.20.0)
# spec file for package binutils (Version 2.21)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
@ -17,14 +17,14 @@
Name: cross-ppc-binutils
Name: cross-ppc-binutils
BuildRequires: bison dejagnu flex gcc-c++
%if 0%{suse_version} > 1110
BuildRequires: zlib-devel-static
%else
BuildRequires: zlib-devel
%endif
Version: 2.20.0
Version: 2.21
Release: 11
#
# RUN_TESTS
@ -84,10 +84,8 @@ Patch11: use-hashtype-both-by-default.diff
Patch12: s390-pic-dso.diff
Patch14: binutils-build-as-needed.diff
Patch15: fixup-testcase-perturb.diff
Patch16: fix-ppc-perturb.diff
Patch90: cross-avr-nesc-as.patch
Patch92: cross-avr-omit_section_dynsym.patch
Patch100: xop.diff.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if "%{name}" != "binutils"
%define _prefix /opt/cross
@ -268,13 +266,11 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa
%patch12
%patch14
%patch15
%patch16 -p1
%if "%{TARGET}" == "avr"
cp gas/config/tc-avr.h gas/config/tc-avr-nesc.h
%patch90
%patch92
%endif
%patch100 -p1
#
# test_vanilla
%endif

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jan 10 16:51:10 UTC 2011 - rguenther@novell.com
- Update to binutils 2.21.
-------------------------------------------------------------------
Tue Jul 27 11:43:24 UTC 2010 - rguenther@novell.com

View File

@ -1,5 +1,5 @@
#
# spec file for package cross-ppc64-binutils (Version 2.20.0)
# spec file for package binutils (Version 2.21)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
@ -17,14 +17,14 @@
Name: cross-ppc64-binutils
Name: cross-ppc64-binutils
BuildRequires: bison dejagnu flex gcc-c++
%if 0%{suse_version} > 1110
BuildRequires: zlib-devel-static
%else
BuildRequires: zlib-devel
%endif
Version: 2.20.0
Version: 2.21
Release: 11
#
# RUN_TESTS
@ -84,10 +84,8 @@ Patch11: use-hashtype-both-by-default.diff
Patch12: s390-pic-dso.diff
Patch14: binutils-build-as-needed.diff
Patch15: fixup-testcase-perturb.diff
Patch16: fix-ppc-perturb.diff
Patch90: cross-avr-nesc-as.patch
Patch92: cross-avr-omit_section_dynsym.patch
Patch100: xop.diff.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if "%{name}" != "binutils"
%define _prefix /opt/cross
@ -268,13 +266,11 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa
%patch12
%patch14
%patch15
%patch16 -p1
%if "%{TARGET}" == "avr"
cp gas/config/tc-avr.h gas/config/tc-avr-nesc.h
%patch90
%patch92
%endif
%patch100 -p1
#
# test_vanilla
%endif

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jan 10 16:51:10 UTC 2011 - rguenther@novell.com
- Update to binutils 2.21.
-------------------------------------------------------------------
Tue Jul 27 11:43:24 UTC 2010 - rguenther@novell.com

View File

@ -1,5 +1,5 @@
#
# spec file for package cross-s390-binutils (Version 2.20.0)
# spec file for package binutils (Version 2.21)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
@ -17,14 +17,14 @@
Name: cross-s390-binutils
Name: cross-s390-binutils
BuildRequires: bison dejagnu flex gcc-c++
%if 0%{suse_version} > 1110
BuildRequires: zlib-devel-static
%else
BuildRequires: zlib-devel
%endif
Version: 2.20.0
Version: 2.21
Release: 11
#
# RUN_TESTS
@ -84,10 +84,8 @@ Patch11: use-hashtype-both-by-default.diff
Patch12: s390-pic-dso.diff
Patch14: binutils-build-as-needed.diff
Patch15: fixup-testcase-perturb.diff
Patch16: fix-ppc-perturb.diff
Patch90: cross-avr-nesc-as.patch
Patch92: cross-avr-omit_section_dynsym.patch
Patch100: xop.diff.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if "%{name}" != "binutils"
%define _prefix /opt/cross
@ -268,13 +266,11 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa
%patch12
%patch14
%patch15
%patch16 -p1
%if "%{TARGET}" == "avr"
cp gas/config/tc-avr.h gas/config/tc-avr-nesc.h
%patch90
%patch92
%endif
%patch100 -p1
#
# test_vanilla
%endif

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jan 10 16:51:10 UTC 2011 - rguenther@novell.com
- Update to binutils 2.21.
-------------------------------------------------------------------
Tue Jul 27 11:43:24 UTC 2010 - rguenther@novell.com

View File

@ -1,5 +1,5 @@
#
# spec file for package cross-s390x-binutils (Version 2.20.0)
# spec file for package binutils (Version 2.21)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
@ -17,14 +17,14 @@
Name: cross-s390x-binutils
Name: cross-s390x-binutils
BuildRequires: bison dejagnu flex gcc-c++
%if 0%{suse_version} > 1110
BuildRequires: zlib-devel-static
%else
BuildRequires: zlib-devel
%endif
Version: 2.20.0
Version: 2.21
Release: 11
#
# RUN_TESTS
@ -84,10 +84,8 @@ Patch11: use-hashtype-both-by-default.diff
Patch12: s390-pic-dso.diff
Patch14: binutils-build-as-needed.diff
Patch15: fixup-testcase-perturb.diff
Patch16: fix-ppc-perturb.diff
Patch90: cross-avr-nesc-as.patch
Patch92: cross-avr-omit_section_dynsym.patch
Patch100: xop.diff.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if "%{name}" != "binutils"
%define _prefix /opt/cross
@ -268,13 +266,11 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa
%patch12
%patch14
%patch15
%patch16 -p1
%if "%{TARGET}" == "avr"
cp gas/config/tc-avr.h gas/config/tc-avr-nesc.h
%patch90
%patch92
%endif
%patch100 -p1
#
# test_vanilla
%endif

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jan 10 16:51:10 UTC 2011 - rguenther@novell.com
- Update to binutils 2.21.
-------------------------------------------------------------------
Tue Jul 27 11:43:24 UTC 2010 - rguenther@novell.com

View File

@ -1,5 +1,5 @@
#
# spec file for package cross-sh4-binutils (Version 2.20.0)
# spec file for package binutils (Version 2.21)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
@ -17,14 +17,14 @@
Name: cross-sh4-binutils
Name: cross-sh4-binutils
BuildRequires: bison dejagnu flex gcc-c++
%if 0%{suse_version} > 1110
BuildRequires: zlib-devel-static
%else
BuildRequires: zlib-devel
%endif
Version: 2.20.0
Version: 2.21
Release: 11
#
# RUN_TESTS
@ -84,10 +84,8 @@ Patch11: use-hashtype-both-by-default.diff
Patch12: s390-pic-dso.diff
Patch14: binutils-build-as-needed.diff
Patch15: fixup-testcase-perturb.diff
Patch16: fix-ppc-perturb.diff
Patch90: cross-avr-nesc-as.patch
Patch92: cross-avr-omit_section_dynsym.patch
Patch100: xop.diff.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if "%{name}" != "binutils"
%define _prefix /opt/cross
@ -268,13 +266,11 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa
%patch12
%patch14
%patch15
%patch16 -p1
%if "%{TARGET}" == "avr"
cp gas/config/tc-avr.h gas/config/tc-avr-nesc.h
%patch90
%patch92
%endif
%patch100 -p1
#
# test_vanilla
%endif

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jan 10 16:51:10 UTC 2011 - rguenther@novell.com
- Update to binutils 2.21.
-------------------------------------------------------------------
Tue Jul 27 11:43:24 UTC 2010 - rguenther@novell.com

View File

@ -1,5 +1,5 @@
#
# spec file for package cross-sparc-binutils (Version 2.20.0)
# spec file for package binutils (Version 2.21)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
@ -17,14 +17,14 @@
Name: cross-sparc-binutils
Name: cross-sparc-binutils
BuildRequires: bison dejagnu flex gcc-c++
%if 0%{suse_version} > 1110
BuildRequires: zlib-devel-static
%else
BuildRequires: zlib-devel
%endif
Version: 2.20.0
Version: 2.21
Release: 11
#
# RUN_TESTS
@ -84,10 +84,8 @@ Patch11: use-hashtype-both-by-default.diff
Patch12: s390-pic-dso.diff
Patch14: binutils-build-as-needed.diff
Patch15: fixup-testcase-perturb.diff
Patch16: fix-ppc-perturb.diff
Patch90: cross-avr-nesc-as.patch
Patch92: cross-avr-omit_section_dynsym.patch
Patch100: xop.diff.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if "%{name}" != "binutils"
%define _prefix /opt/cross
@ -268,13 +266,11 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa
%patch12
%patch14
%patch15
%patch16 -p1
%if "%{TARGET}" == "avr"
cp gas/config/tc-avr.h gas/config/tc-avr-nesc.h
%patch90
%patch92
%endif
%patch100 -p1
#
# test_vanilla
%endif

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jan 10 16:51:10 UTC 2011 - rguenther@novell.com
- Update to binutils 2.21.
-------------------------------------------------------------------
Tue Jul 27 11:43:24 UTC 2010 - rguenther@novell.com

View File

@ -1,5 +1,5 @@
#
# spec file for package cross-spu-binutils (Version 2.20.0)
# spec file for package binutils (Version 2.21)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
@ -17,14 +17,14 @@
Name: cross-spu-binutils
Name: cross-spu-binutils
BuildRequires: bison dejagnu flex gcc-c++
%if 0%{suse_version} > 1110
BuildRequires: zlib-devel-static
%else
BuildRequires: zlib-devel
%endif
Version: 2.20.0
Version: 2.21
Release: 11
#
# RUN_TESTS
@ -84,10 +84,8 @@ Patch11: use-hashtype-both-by-default.diff
Patch12: s390-pic-dso.diff
Patch14: binutils-build-as-needed.diff
Patch15: fixup-testcase-perturb.diff
Patch16: fix-ppc-perturb.diff
Patch90: cross-avr-nesc-as.patch
Patch92: cross-avr-omit_section_dynsym.patch
Patch100: xop.diff.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if "%{name}" != "binutils"
%define _prefix /opt/cross
@ -268,13 +266,11 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa
%patch12
%patch14
%patch15
%patch16 -p1
%if "%{TARGET}" == "avr"
cp gas/config/tc-avr.h gas/config/tc-avr-nesc.h
%patch90
%patch92
%endif
%patch100 -p1
#
# test_vanilla
%endif

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jan 10 16:51:10 UTC 2011 - rguenther@novell.com
- Update to binutils 2.21.
-------------------------------------------------------------------
Tue Jul 27 11:43:24 UTC 2010 - rguenther@novell.com

View File

@ -1,5 +1,5 @@
#
# spec file for package cross-x86_64-binutils (Version 2.20.0)
# spec file for package binutils (Version 2.21)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
@ -17,14 +17,14 @@
Name: cross-x86_64-binutils
Name: cross-x86_64-binutils
BuildRequires: bison dejagnu flex gcc-c++
%if 0%{suse_version} > 1110
BuildRequires: zlib-devel-static
%else
BuildRequires: zlib-devel
%endif
Version: 2.20.0
Version: 2.21
Release: 11
#
# RUN_TESTS
@ -84,10 +84,8 @@ Patch11: use-hashtype-both-by-default.diff
Patch12: s390-pic-dso.diff
Patch14: binutils-build-as-needed.diff
Patch15: fixup-testcase-perturb.diff
Patch16: fix-ppc-perturb.diff
Patch90: cross-avr-nesc-as.patch
Patch92: cross-avr-omit_section_dynsym.patch
Patch100: xop.diff.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if "%{name}" != "binutils"
%define _prefix /opt/cross
@ -268,13 +266,11 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa
%patch12
%patch14
%patch15
%patch16 -p1
%if "%{TARGET}" == "avr"
cp gas/config/tc-avr.h gas/config/tc-avr-nesc.h
%patch90
%patch92
%endif
%patch100 -p1
#
# test_vanilla
%endif

View File

@ -1,8 +1,8 @@
Index: bfd/elf32-s390.c
===================================================================
--- bfd/elf32-s390.c.orig 2009-11-23 14:02:48.000000000 +0100
+++ bfd/elf32-s390.c 2009-11-23 14:03:09.000000000 +0100
@@ -2509,13 +2509,34 @@ elf_s390_relocate_section (output_bfd, i
--- bfd/elf32-s390.c.orig 2010-10-25 17:54:14.000000000 +0200
+++ bfd/elf32-s390.c 2011-01-10 17:46:32.000000000 +0100
@@ -2504,13 +2504,34 @@ elf_s390_relocate_section (output_bfd, i
unresolved_reloc = FALSE;
break;
@ -42,9 +42,9 @@ Index: bfd/elf32-s390.c
Index: bfd/elf64-s390.c
===================================================================
--- bfd/elf64-s390.c.orig 2009-11-23 14:02:48.000000000 +0100
+++ bfd/elf64-s390.c 2009-11-23 14:03:09.000000000 +0100
@@ -2486,15 +2486,36 @@ elf_s390_relocate_section (output_bfd, i
--- bfd/elf64-s390.c.orig 2010-10-25 17:54:15.000000000 +0200
+++ bfd/elf64-s390.c 2011-01-10 17:46:32.000000000 +0100
@@ -2497,15 +2497,36 @@ elf_s390_relocate_section (bfd *output_b
unresolved_reloc = FALSE;
break;
@ -87,17 +87,17 @@ Index: bfd/elf64-s390.c
Index: ld/testsuite/ld-elfvers/vers.exp
===================================================================
--- ld/testsuite/ld-elfvers/vers.exp.orig 2009-11-23 14:02:48.000000000 +0100
+++ ld/testsuite/ld-elfvers/vers.exp 2009-11-23 14:03:09.000000000 +0100
--- ld/testsuite/ld-elfvers/vers.exp.orig 2010-11-05 04:54:21.000000000 +0100
+++ ld/testsuite/ld-elfvers/vers.exp 2011-01-10 17:47:22.000000000 +0100
@@ -97,6 +97,7 @@ if [istarget mips*-*-*] {
case $target_triplet in {
{ ia64-*-* } { set as_options "-x" }
+ { s390-*-linux-* } { set as_options "-march=z900" }
{ sparc-*-* } { set as_options "-Av9a" }
default { set as_options "" }
}
@@ -767,8 +768,9 @@ proc build_exec { test source execname f
@@ -768,8 +769,9 @@ proc build_exec { test source execname f
pass $test
}
@ -111,9 +111,9 @@ Index: ld/testsuite/ld-elfvers/vers.exp
set pic "no"
Index: ld/testsuite/ld-elfvsb/elfvsb.exp
===================================================================
--- ld/testsuite/ld-elfvsb/elfvsb.exp.orig 2009-11-23 14:02:48.000000000 +0100
+++ ld/testsuite/ld-elfvsb/elfvsb.exp 2009-11-23 14:03:09.000000000 +0100
@@ -269,6 +269,7 @@ proc visibility_run {visibility} {
--- ld/testsuite/ld-elfvsb/elfvsb.exp.orig 2010-02-09 11:46:26.000000000 +0100
+++ ld/testsuite/ld-elfvsb/elfvsb.exp 2011-01-10 17:46:32.000000000 +0100
@@ -292,6 +292,7 @@ proc visibility_run {visibility} {
setup_xfail "sparc*-*-linux*"
}
}
@ -121,7 +121,7 @@ Index: ld/testsuite/ld-elfvsb/elfvsb.exp
setup_xfail "x86_64-*-linux*"
if { ![istarget hppa*64*-*-linux*] } {
setup_xfail "hppa*-*-linux*"
@@ -307,6 +308,7 @@ proc visibility_run {visibility} {
@@ -333,6 +334,7 @@ proc visibility_run {visibility} {
setup_xfail "alpha*-*-linux*"
setup_xfail "mips*-*-linux*"
}
@ -129,7 +129,7 @@ Index: ld/testsuite/ld-elfvsb/elfvsb.exp
setup_xfail "x86_64-*-linux*"
if { ![istarget hppa*64*-*-linux*] } {
setup_xfail "hppa*-*-linux*"
@@ -373,6 +375,7 @@ proc visibility_run {visibility} {
@@ -402,6 +404,7 @@ proc visibility_run {visibility} {
setup_xfail "sparc*-*-linux*"
}
}
@ -139,32 +139,32 @@ Index: ld/testsuite/ld-elfvsb/elfvsb.exp
setup_xfail "hppa*-*-linux*"
Index: ld/testsuite/ld-shared/shared.exp
===================================================================
--- ld/testsuite/ld-shared/shared.exp.orig 2009-11-23 14:02:48.000000000 +0100
+++ ld/testsuite/ld-shared/shared.exp 2009-11-23 14:03:09.000000000 +0100
@@ -211,7 +211,7 @@ if ![ld_compile "$CC $CFLAGS $SHCFLAG" $
--- ld/testsuite/ld-shared/shared.exp.orig 2010-10-28 11:08:35.000000000 +0200
+++ ld/testsuite/ld-shared/shared.exp 2011-01-10 17:48:12.000000000 +0100
@@ -234,7 +234,7 @@ if ![ld_compile "$CC $CFLAGS $SHCFLAG" $
setup_xfail "sparc*-*-linux*"
}
setup_xfail "x86_64-*-linux*"
- setup_xfail "s390x-*-linux*"
+ setup_xfail "s390*-*-linux*"
shared_test shnp "shared (non PIC)" mainnp.o sh1np.o sh2np.o shared
# Test ELF shared library relocations with a non-zero load
@@ -231,7 +231,7 @@ if ![ld_compile "$CC $CFLAGS $SHCFLAG" $
if [ string match $shared_needs_pic "yes" ] {
setup_xfail "arm*-*-linux*"
}
@@ -257,7 +257,7 @@ if ![ld_compile "$CC $CFLAGS $SHCFLAG" $
setup_xfail "sparc*-*-linux*"
}
setup_xfail "x86_64-*-linux*"
- setup_xfail "s390x-*-linux*"
+ setup_xfail "s390*-*-linux*"
shared_test shnp "shared (non PIC, load offset)" \
mainnp.o sh1np.o sh2np.o shared \
"-T $srcdir/$subdir/elf-offset.ld"
@@ -280,7 +280,7 @@ if ![ld_compile "$CC $CFLAGS $SHCFLAG $p
if [ string match $shared_needs_pic "yes" ] {
setup_xfail "arm*-*-linux*"
}
@@ -310,7 +310,7 @@ if ![ld_compile "$CC $CFLAGS $SHCFLAG $p
setup_xfail "sparc*-*-linux*"
}
setup_xfail "x86_64-*-linux*"
- setup_xfail "s390x-*-linux*"
+ setup_xfail "s390*-*-linux*"
shared_test shmpnp "shared (PIC main, non PIC so)" mainp.o sh1np.o sh2np.o shared
}
} else {
if [ string match $shared_needs_pic "yes" ] {
setup_xfail "arm*-*-linux*"
}

View File

@ -1,26 +1,26 @@
Index: libiberty/configure
===================================================================
--- libiberty/configure.orig 2009-11-23 14:02:49.000000000 +0100
+++ libiberty/configure 2009-11-23 14:03:07.000000000 +0100
@@ -4859,7 +4859,7 @@ if [ "${shared}" = "yes" ]; then
--- libiberty/configure.orig 2010-11-05 11:31:22.000000000 +0100
+++ libiberty/configure 2011-01-10 17:45:26.000000000 +0100
@@ -4865,7 +4865,7 @@ if [ "${shared}" = "yes" ]; then
*-fpic* ) PICFLAG=-fpic ;;
* ) PICFLAG=-fPIC ;;
esac ;;
- s390*-*-*) PICFLAG=-fpic ;;
+ s390*-*-*) PICFLAG=-fPIC ;;
sh*-*-*) PICFLAG=-fPIC ;;
esac
fi
Index: libiberty/configure.ac
===================================================================
--- libiberty/configure.ac.orig 2009-11-23 14:02:49.000000000 +0100
+++ libiberty/configure.ac 2009-11-23 14:03:07.000000000 +0100
--- libiberty/configure.ac.orig 2010-11-05 00:41:21.000000000 +0100
+++ libiberty/configure.ac 2011-01-10 17:45:33.000000000 +0100
@@ -216,7 +216,7 @@ if [[ "${shared}" = "yes" ]]; then
*-fpic* ) PICFLAG=-fpic ;;
* ) PICFLAG=-fPIC ;;
esac ;;
- s390*-*-*) PICFLAG=-fpic ;;
+ s390*-*-*) PICFLAG=-fPIC ;;
sh*-*-*) PICFLAG=-fPIC ;;
esac
fi
AC_SUBST(PICFLAG)