commit 74a35528f7f09d8b4ccfd10460a5140bc2b34501 (HEAD -> gentoo/binutils-2.41, gentoo/gentoo/binutils-2.41)
Author: Alan Modra <amodra@gmail.com>
Date:   Fri Aug 4 15:09:53 2023 +0930

    PR30697, ppc32 mix of local-dynamic and global-dynamic TLS
    
    This fixes miscounting of dynamic relocations on GOT entries when
    a) there are both local-dynamic and global-dynamic tls accesss for a
       given symbol, and
    b) the symbol is global with non-default visibility, and
    c) the __tls_get_addr calls aren't optimised away.
    
            PR 30697
    bfd/
            * elf32-ppc.c (allocate_dynrelocs): Correct local-dynamic
            reloc count.
    ld/
            * testsuite/ld-powerpc/tls32ldgd.d,
            * testsuite/ld-powerpc/tls32ldgd.s: New test.
            * testsuite/ld-powerpc/powerpc.exp: Run it.
    
    (cherry picked from commit ae33771224660dac25e64c3f70943a17bfab7681)
    (cherry picked from commit 8c05bf16a51e413dfd3da2e018cbcd32a2a8c0f3)

 bfd/elf32-ppc.c                     | 16 +++++++---------
 ld/testsuite/ld-powerpc/powerpc.exp |  1 +
 ld/testsuite/ld-powerpc/tls32ldgd.d | 13 +++++++++++++
 ld/testsuite/ld-powerpc/tls32ldgd.s | 16 ++++++++++++++++
 4 files changed, 37 insertions(+), 9 deletions(-)

commit 7e90c6364a68f198c82685337a16815ba40ce311
Author: Jan Beulich <jbeulich@suse.com>
Date:   Tue Aug 1 12:39:44 2023 +0200

    gas: rework timestamp preservation on doc/asconfig.texi
    
    PR 28909
    
    Sadly "cp -p", doing more than just preserving the time stamp, can fail
    e.g. upon trying to preserve ownership (which we don't care about), as
    can be observed on e.g. Cygwin. Replace the use of -p by a use of touch,
    this way also only preserving modification time.
    
    (cherry picked from commit 31b78cc991781265d9404bd55151691bedd6d556)

 gas/Makefile.in  | 2 +-
 gas/doc/local.mk | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

commit e586c4f9391486e80a734b254e6dbef96ea6eb60
Author: Nick Clifton <nickc@redhat.com>
Date:   Mon Jul 31 13:53:47 2023 +0100

    Updated Spanish translation for the gprof directory
    
    (cherry picked from commit fd3cc73ee4a84df3ace3c0e470250a957e7d3468)

 gprof/po/es.po | 84 +++++++++++++++++++++++++++++-----------------------------
 1 file changed, 42 insertions(+), 42 deletions(-)

commit 3688ce64af8e386ea61851ac9850aed04df9fa9c
Author: Nick Clifton <nickc@redhat.com>
Date:   Sun Jul 30 16:03:48 2023 +0100

    Reset 2.41 branch back to development mode
    
    (cherry picked from commit 7872e3bdb0de234ae4ace053cde0c915ff2332d4)

 bfd/configure                  | 20 ++++++++++----------
 bfd/po/bfd.pot                 |  2 +-
 binutils/configure             | 20 ++++++++++----------
 gas/configure                  | 20 ++++++++++----------
 gprof/configure                | 20 ++++++++++----------
 gprofng/configure              | 20 ++++++++++----------
 gprofng/doc/version.texi       |  4 ++--
 gprofng/libcollector/configure | 20 ++++++++++----------
 ld/configure                   | 20 ++++++++++----------
 opcodes/configure              | 20 ++++++++++----------
 10 files changed, 83 insertions(+), 83 deletions(-)

commit 20c8173cfd78714039395eb635b2b37347efd4bb
Author: Sam James <sam@gentoo.org>
Date:   Fri Jul 28 16:20:34 2023 +0100

    ld: Fix test failures with --enable-textrel-check=error
    
    Tested with the following:
    * --enable-textrel-check=error
    * --enable-warn-execstack=yes
    * --enable-warn-rwx-segments=yes
    * --enable-default-execstack=no
    in preparation for hopefully toggling these in Gentoo Hardened
    at least.
    
    This is similar in nature to 0ab7005043ee404dabfd690952efc25c399995ae
    and 340640f710e690b37c885166949595cde5f827b2.
    
    This fixes the following test failures:
    * FAIL: ld-x86-64/pr18801a
    * FAIL: ld-x86-64/pr18801b
    * FAIL: ld-x86-64/ifunc-textrel-1a
    * FAIL: ld-x86-64/ifunc-textrel-1b
    * FAIL: ld-i386/pr18801a
    * FAIL: ld-i386/pr18801b
    * FAIL: ld-i386/ifunc-textrel-1a
    * FAIL: ld-i386/ifunc-textrel-1b
    
    Signed-off-by: Sam James <sam@gentoo.org>

 ld/testsuite/ld-i386/ifunc-textrel-1a.d   | 2 +-
 ld/testsuite/ld-i386/ifunc-textrel-1b.d   | 2 +-
 ld/testsuite/ld-i386/pr18801a.d           | 2 +-
 ld/testsuite/ld-i386/pr18801b.d           | 2 +-
 ld/testsuite/ld-x86-64/ifunc-textrel-1a.d | 2 +-
 ld/testsuite/ld-x86-64/ifunc-textrel-1b.d | 2 +-
 ld/testsuite/ld-x86-64/pr18801a.d         | 2 +-
 ld/testsuite/ld-x86-64/pr18801b.d         | 2 +-
 8 files changed, 8 insertions(+), 8 deletions(-)

commit 3ce4e0647074f0005940e590837720bd211616fd
Author: Andreas K. Hüttel <dilfridge@gentoo.org>
Date:   Wed Feb 22 20:05:35 2023 +0100

    Apply a similar libiberty fix as in 7d53105d for libopcodes and libgprofng
    
    Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=29042
    Bug: https://bugs.gentoo.org/834720
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 gprofng/src/Makefile.am | 3 ++-
 gprofng/src/Makefile.in | 3 ++-
 opcodes/configure       | 4 ++--
 opcodes/configure.ac    | 4 ++--
 4 files changed, 8 insertions(+), 6 deletions(-)

commit 4fc7a369eb3606408442f4e5e832d2bb33b53916
Author: Andreas K. Hüttel <dilfridge@gentoo.org>
Date:   Sat Jul 31 01:18:18 2021 +0200

    Gentoo: XFAIL 15 broken ld.gold tests
    
    It seems like either the tests or ld.gold in general cannot handle
    compilers built with --enable-default-pie. No fix yet, so let's ignore
    these test failures for the moment. For details see the linked bugs.
    
    Bug: https://bugs.gentoo.org/684046
    Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=22755
    Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=27303

 gold/testsuite/Makefile.am |  6 ++++++
 gold/testsuite/Makefile.in | 16 ++++++++++++----
 2 files changed, 18 insertions(+), 4 deletions(-)

commit c03c2f111a294735b9bca66edd1d4020644328b6
Author: Andreas K. Hüttel <dilfridge@gentoo.org>
Date:   Sat Jul 24 15:20:16 2021 +0200

    Gentoo: Give also libctf optionally a gentoo-specific soversion

 libctf/Makefile.am  | 14 +++++++++++++-
 libctf/Makefile.in  |  9 ++++++++-
 libctf/configure    | 35 +++++++++++++++++++++++++++++++++--
 libctf/configure.ac | 10 ++++++++++
 4 files changed, 64 insertions(+), 4 deletions(-)

commit 6c1949bf6986f9b270acf5fb15526e530148ed22
Author: Andreas K. Hüttel <dilfridge@gentoo.org>
Date:   Tue Jul 20 21:15:24 2021 +0200

    Gentoo: Pass --hash-style=sysv to ld in the testsuite

 binutils/testsuite/lib/binutils-common.exp |  2 +-
 ld/testsuite/lib/ld-lib.exp                | 16 ++++++++++++++--
 2 files changed, 15 insertions(+), 3 deletions(-)

commit deb3e29c91722e1b8558c23295dc6a90a34aaee0
Author: Sergei Trofimovich <slyfox@gentoo.org>
Date:   Tue Jul 20 21:12:38 2021 +0200

    Gentoo: add --with-extra-soversion-suffix= option
    
    --with-extra-soversion-suffix= will allow Gentoo to
    distinct libbfd.so and libopcodes.so to have more precise
    SONAME.
    
    Today --enable-targets=all and --enable-64-bit-bfd change
    libbfd.so ABI:
    --enable-targets=all adds new symbols to the library
    --enable-64-bit-bfd modifies BFD_ARCH_SIZE default and
    changes sizes of integer parameters and fields to most
    APIs.
    
    --with-extra-soversion-suffix= will allow Gentoo to inject
    additional keys into SONAME to indicate ABI change and avoid
    hard to diagnose crashes when user reinstalls libbfd.so
    built with different flags (see https://bugs.gentoo.org/663690).
    
    Bug: https://bugs.gentoo.org/666100
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
    
    Ported to binutils 2.37 by Andreas K. Hüttel <dilfridge@gentoo.org>

 bfd/Makefile.am  |  5 +++++
 bfd/Makefile.in  |  4 ++++
 bfd/configure    | 13 +++++++++++++
 bfd/configure.ac |  7 +++++++
 4 files changed, 29 insertions(+)

commit 4fe7206bdb207021c50e70f19b2b669b7212e58b
Author: Mike Frysinger <vapier@gentoo.org>
Date:   Fri Jan 7 00:15:53 2005 -0500

    Gentoo: libiberty: install PIC version of libiberty.a
    
    This will install a PIC version of libiberty.a by overwriting the non-PIC
    version of libiberty.a while compiling.  We do this because there is no
    shared version of libiberty for random apps to link against which means if
    someone wants to use this in a shared library or PIE, they're out of luck.
    It's arguable whether people should be able to use this in a shared lib,
    but usage in PIE should be fine.  You could argue that this penalizes the
    non-PIE users, but the counter point is that people using this library in
    general are fairly low, and we'd rather have things work for all of them.
    
    (cherry picked from commit 112aff9ad3e2675556370c4281117a6df0a879d9)

 libiberty/Makefile.in | 1 +
 1 file changed, 1 insertion(+)

commit ab439dc6f1380631d7340858907326948c52e0eb
Author: Mike Frysinger <vapier@gentoo.org>
Date:   Tue Jul 20 21:08:31 2021 +0200

    Gentoo: gold/ld: add support for poisoned system directories
    
    This is based on the old CodeSourcery patch written by Joseph Myers to add
    support to the link for detecting & rejecting bad -L paths when using a
    cross-compiler.  The differences here:
    * The command line flags are always available.
    * We can turn on & off the warning via the command line.
    * The configure option controls the default warning behavior.
    * Add support for gold.
    
    It is not currently upstream, nor has it been submitted at all.  There are
    no plans to do so currently either.
    
    BUG=chromium:488360
    TEST=`cbuildbot chromiumos-sdk` passes  # tests arm/amd64/mipsel/x86
    TEST=`cbuildbot panther_moblab-full whirlwind-release` pass
    TEST=`cbuildbot {x32,arm64}-generic-full` has no new failures
    TEST=x86_64-cros-linux-gnu-ld throws warnings when using -L/lib (gold & bfd)
    
    Reviewed-on: https://chromium-review.googlesource.com/272083
    (cherry picked from commit f92dbf35c00ab13cee36f6be8ae5ca46454d9000)
    
    Ported to binutils 2.37 by Andreas K. Hüttel <dilfridge@gentoo.org>
    Ported to binutils 2.39 by WANG Xuerui <xen0n@gentoo.org>

 gold/options.cc | 33 +++++++++++++++++++++++++++++++++
 gold/options.h  |  7 +++++++
 ld/config.in    |  3 +++
 ld/configure    | 20 ++++++++++++++++++--
 ld/configure.ac | 10 ++++++++++
 ld/ld.h         |  7 +++++++
 ld/ld.texi      | 18 ++++++++++++++++++
 ld/ldfile.c     | 20 ++++++++++++++++++++
 ld/ldlex.h      |  3 +++
 ld/ldmain.c     |  7 +++++++
 ld/lexsup.c     | 24 ++++++++++++++++++++++++
 11 files changed, 150 insertions(+), 2 deletions(-)

commit ce6a46ceef6471398c50116f53c922ac457928d3
Author: Andreas K. Hüttel <dilfridge@gentoo.org>
Date:   Sun Jul 30 17:07:15 2023 +0200

    Re-enable development
    
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 bfd/development.sh | 2 +-
 bfd/version.m4     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
