Hello community,

here is the log from the commit of package binutils for openSUSE:Factory
checked in at Wed Aug 24 11:37:33 CEST 2011.



--------
--- binutils/binutils.changes   2011-07-12 10:56:05.000000000 +0200
+++ /mounts/work_src_done/STABLE/binutils/binutils.changes      2011-08-23 
13:43:50.000000000 +0200
@@ -1,0 +2,10 @@
+Tue Aug 23 11:39:25 UTC 2011 - [email protected]
+
+- Fix XLC object linker complaints.  [bnc#713504]
+
+-------------------------------------------------------------------
+Sun Aug 21 14:14:41 UTC 2011 - [email protected]
+
+- Make --no-copy-dt-needed-default the default for ld.
+
+-------------------------------------------------------------------
cross-alpha-binutils.changes: same change
cross-arm-binutils.changes: same change
cross-hppa-binutils.changes: same change
cross-hppa64-binutils.changes: same change
cross-i386-binutils.changes: same change
cross-ia64-binutils.changes: same change
cross-mips-binutils.changes: same change
cross-ppc-binutils.changes: same change
cross-ppc64-binutils.changes: same change
cross-s390-binutils.changes: same change
cross-s390x-binutils.changes: same change
cross-sparc-binutils.changes: same change
cross-spu-binutils.changes: same change
cross-x86_64-binutils.changes: same change

calling whatdependson for head-i586


New:
----
  binutils-no-copy-dt-needed-default.patch
  bnc713504.diff

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ binutils.spec ++++++
--- /var/tmp/diff_new_pack.tl7Ptq/_old  2011-08-24 11:34:16.000000000 +0200
+++ /var/tmp/diff_new_pack.tl7Ptq/_new  2011-08-24 11:34:16.000000000 +0200
@@ -31,7 +31,7 @@
 BuildRequires:  zlib-devel
 %endif
 Version:        2.21.1
-Release:        8
+Release:        10
 #
 # RUN_TESTS
 %define run_tests %(test ! -f %_sourcedir/RUN_TESTS ; echo $?)
@@ -96,6 +96,8 @@
 Patch18:        gold-depend-on-opcodes.diff
 Patch19:        readelf-bad-elf-endless-loop.patch
 Patch20:        bso12982.diff
+Patch21:        binutils-no-copy-dt-needed-default.patch
+Patch22:        bnc713504.diff
 Patch90:        cross-avr-nesc-as.patch
 Patch92:        cross-avr-omit_section_dynsym.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
@@ -311,6 +313,8 @@
 %patch18
 %patch19
 %patch20 -p1
+%patch21
+%patch22
 %if "%{TARGET}" == "avr"
 cp gas/config/tc-avr.h gas/config/tc-avr-nesc.h
 %patch90

++++++ cross-alpha-binutils.spec ++++++
--- /var/tmp/diff_new_pack.tl7Ptq/_old  2011-08-24 11:34:16.000000000 +0200
+++ /var/tmp/diff_new_pack.tl7Ptq/_new  2011-08-24 11:34:16.000000000 +0200
@@ -31,7 +31,7 @@
 BuildRequires:  zlib-devel
 %endif
 Version:        2.21.1
-Release:        3
+Release:        4
 #
 # RUN_TESTS
 %define run_tests %(test ! -f %_sourcedir/RUN_TESTS ; echo $?)
@@ -96,6 +96,8 @@
 Patch18:        gold-depend-on-opcodes.diff
 Patch19:        readelf-bad-elf-endless-loop.patch
 Patch20:        bso12982.diff
+Patch21:        binutils-no-copy-dt-needed-default.patch
+Patch22:        bnc713504.diff
 Patch90:        cross-avr-nesc-as.patch
 Patch92:        cross-avr-omit_section_dynsym.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
@@ -283,6 +285,8 @@
 %patch18
 %patch19
 %patch20 -p1
+%patch21
+%patch22
 %if "%{TARGET}" == "avr"
 cp gas/config/tc-avr.h gas/config/tc-avr-nesc.h
 %patch90

cross-arm-binutils.spec: same change
cross-hppa-binutils.spec: same change
cross-hppa64-binutils.spec: same change
cross-i386-binutils.spec: same change
cross-ia64-binutils.spec: same change
cross-mips-binutils.spec: same change
cross-ppc-binutils.spec: same change
cross-ppc64-binutils.spec: same change
cross-s390-binutils.spec: same change
cross-s390x-binutils.spec: same change
cross-sparc-binutils.spec: same change
cross-spu-binutils.spec: same change
cross-x86_64-binutils.spec: same change
++++++ binutils-no-copy-dt-needed-default.patch ++++++
From: Michael Matz <matz at suse dot de>
To: Ian Lance Taylor <iant at google dot com>
Cc: binutils at sourceware dot org
Subject: Re: Make no-copy-dt-needed default?


        * ldmain.c (add_DT_NEEDED_for_dynamic): Default to FALSE.
        * ld.texinfo (--copy-dt-needed-entries): Mention new default.

Index: ld.texinfo
===================================================================
RCS file: /cvs/src/src/ld/ld.texinfo,v
retrieving revision 1.279
diff -u -p -r1.279 ld.texinfo
--- ld/ld.texinfo       9 Aug 2011 13:10:44 -0000       1.279
+++ ld/ld.texinfo       16 Aug 2011 15:58:50 -0000
@@ -1258,21 +1258,20 @@ option.
 @itemx --no-copy-dt-needed-entries
 This option affects the treatment of dynamic libraries referred to 
 by DT_NEEDED tags @emph{inside} ELF dynamic libraries mentioned on the
-command line.  Normally the linker will add a DT_NEEDED tag to the
+command line.  Normally the linker won't add a DT_NEEDED tag to the
 output binary for each library mentioned in a DT_NEEDED tag in an
-input dynamic library.  With @option{--no-copy-dt-needed-entries}
+input dynamic library.  With @option{--copy-dt-needed-entries}
 specified on the command line however any dynamic libraries that
-follow it will have their DT_NEEDED entries ignored.  The default
-behaviour can be restored with @option{--copy-dt-needed-entries}.
+follow it will have their DT_NEEDED entries added.  The default
+behaviour can be restored with @option{--no-copy-dt-needed-entries}.
 
 This option also has an effect on the resolution of symbols in dynamic
-libraries.  With the default setting dynamic libraries mentioned on
-the command line will be recursively searched, following their
-DT_NEEDED tags to other libraries, in order to resolve symbols
-required by the output binary.  With
-@option{--no-copy-dt-needed-entries} specified however the searching
-of dynamic libraries that follow it will stop with the dynamic
-library itself.  No DT_NEEDED links will be traversed to resolve
+libraries.  With @option{--copy-dt-needed-entries} dynamic libraries
+mentioned on the command line will be recursively searched, following
+their DT_NEEDED tags to other libraries, in order to resolve symbols
+required by the output binary.  With the default setting however
+the searching of dynamic libraries that follow it will stop with the
+dynamic library itself.  No DT_NEEDED links will be traversed to resolve
 symbols.
 
 @cindex cross reference table
Index: ldmain.c
===================================================================
RCS file: /cvs/src/src/ld/ldmain.c,v
retrieving revision 1.158
diff -u -p -r1.158 ldmain.c
--- ld/ldmain.c 4 Aug 2011 20:47:46 -0000       1.158
+++ ld/ldmain.c 16 Aug 2011 15:58:50 -0000
@@ -105,7 +105,7 @@ bfd_boolean add_DT_NEEDED_for_regular;
 /* True means create DT_NEEDED entries for dynamic libraries that
    are DT_NEEDED by dynamic libraries specifically mentioned on
    the command line.  */
-bfd_boolean add_DT_NEEDED_for_dynamic = TRUE;
+bfd_boolean add_DT_NEEDED_for_dynamic;
 
 /* TRUE if we should demangle symbol names.  */
 bfd_boolean demangling;

++++++ bnc713504.diff ++++++
        * elf64-ppc.c (ppc64_elf_edit_toc): Ignore can_optimize bit if
        we haven't seen expected -mcmodel=medium/large code relocs.

Index: bfd/elf64-ppc.c
===================================================================
RCS file: /cvs/src/src/bfd/elf64-ppc.c,v
retrieving revision 1.360
diff -u -p -r1.360 elf64-ppc.c
--- bfd/elf64-ppc.c     14 Aug 2011 08:11:56 -0000      1.360
+++ bfd/elf64-ppc.c     19 Aug 2011 02:13:57 -0000
@@ -8267,7 +8362,7 @@ ppc64_elf_edit_toc (struct bfd_link_info
                some_unused = 1;
              last = 0;
            }
-         else if (*drop)
+         else if (*drop & ref_from_discarded)
            {
              some_unused = 1;
              last = ref_from_discarded;


++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



Remember to have fun...

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to