commit 294a7a56149956f4fc9286a25339e48ea64dfe2d (HEAD -> gentoo/binutils-2.41, gentoo/gentoo/binutils-2.41)
Author:     YunQiang Su <yunqiang.su@cipunited.com>
AuthorDate: Tue Nov 21 12:57:15 2023 +0800
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Wed Dec 13 22:41:53 2023 +0100

    Gold/MIPS: Add targ_extra_size=64 for mips32 triples
    
    Backport commit: 619a8a364d6cdc43d6677f86369aa2b5d1a1cc0f
    
    (cherry picked from commit eb49941e7e16bfcd71bd76544c84bf347b03e64f)

 gold/ChangeLog     | 4 ++++
 gold/configure.tgt | 2 ++
 2 files changed, 6 insertions(+)

commit 250c85d98920019ef7e60459e37fc74b5fb17a6b
Author:     YunQiang Su <yunqiang.su@cipunited.com>
AuthorDate: Tue Nov 21 12:52:24 2023 +0800
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Wed Dec 13 22:41:32 2023 +0100

    Gold/MIPS: Use EM_MIPS instead of EM_MIPS_RS3_LE for little endian
    
    Backport commit: 870a4f2cc3df832eab92151e27fd9e7db9027726
    
    (cherry picked from commit c27eff41737c95a84c01bd1f498931ad2323141c)

 gold/ChangeLog     | 5 +++++
 gold/configure.tgt | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

commit 658a5b9b5e3ce602212cf4bbfa04bde5e319dcd6
Author:     Jan Beulich <jbeulich@suse.com>
AuthorDate: Wed Sep 27 10:53:38 2023 +0200
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Wed Dec 13 22:40:31 2023 +0100

    x86-64: fix suffix-less PUSH of symbol address
    
    PR gas/30856
    
    In 5cc007751cdb ("x86: further adjust extend-to-32bit-address
    conditions") I neglected the case of PUSH, which is the only insn
    allowing (proper) symbol addresses to be used as immediates (not
    displacements, like CALL/JMP) in the absence of any register operands.
    Since it defaults to 64-bit operand size, guessing an L suffix is wrong
    there.
    
    (cherry picked from commit 7fe76f02413fff61566ae52ec80d581da1e264a2)

 gas/config/tc-i386.c             | 7 ++++++-
 gas/testsuite/gas/i386/immed64.d | 6 ++++++
 gas/testsuite/gas/i386/immed64.s | 6 ++++++
 3 files changed, 18 insertions(+), 1 deletion(-)

commit caf3dcf97c7d837f249a45dcbe23ea2b6742553d
Author:     Richard Sandiford <richard.sandiford@arm.com>
AuthorDate: Fri Sep 8 17:20:56 2023 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Mon Sep 18 01:51:41 2023 +0200

    aarch64: Remove unused function
    
    set_expected_error is no longer used.  It has been replaced by
    more specific error messages.
    
    (cherry picked from commit 6ffa5a420a0ce533feb6bc09f6f76bac9e3930bd)

 gas/config/tc-aarch64.c | 7 -------
 1 file changed, 7 deletions(-)

commit e3ed970fc5855687aeaad2482db39d52deb8aa33
Author:     Jan Beulich <jbeulich@suse.com>
AuthorDate: Fri Sep 8 08:45:11 2023 +0200
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Mon Sep 18 01:51:24 2023 +0200

    x86: restrict prefix use with .insn VEX/XOP/EVEX
    
    Avoid triggering the respective abort() in output_insn().
    
    (cherry picked from commit b6f6a3ecd15f4c55a4652933f8478feb8b685788)

 gas/config/tc-i386.c | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

commit 8fd29b7aa48cbb4774aa8c28af165fada652aaae
Author:     Alan Modra <amodra@gmail.com>
AuthorDate: Fri Aug 25 09:12:18 2023 +0930
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Mon Sep 18 01:50:57 2023 +0200

    PR30794, PowerPC gold: internal error in add_output_section_to_load
    
    Caused by commit 5a97377e5513, specifically this code added to
    Target_powerpc::do_relax
    +      if (parameters->options().output_is_position_independent())
    +       this->rela_dyn_size_
    +         = this->rela_dyn_section(layout)->current_data_size();
    
    The problem here is that if .rela.dyn isn't already created then the
    call to rela_dyn_section creates it, and as this comment in
    Target_powerpc::do_finalize_sections says:
              // Annoyingly, we need to make these sections now whether or
              // not we need them.  If we delay until do_relax then we
              // need to mess with the relaxation machinery checkpointing.
    We can't be creating sections in do_relax.
    
            PR 30794
            * powerpc.cc (Target_powerpc::do_relax): Only set rela_dyn_size_
            for size == 64, and assert that rela_dyn_ already exists.
            Tidy code setting plt_thread_safe, which also only needs to be
            set when size == 64 for ELFv1.
    
    (cherry picked from commit d537f77ef3b18a5fbfd598643aaad957652e9608)
    (cherry picked from commit 60834ae1eb7b4f87598cfa79abdc72221415ac9e)

 gold/powerpc.cc | 47 +++++++++++++++++++++++++----------------------
 1 file changed, 25 insertions(+), 22 deletions(-)

commit cce6b9497dca3abaf58ab7addd325a202d757856
Author:     Nick Clifton <nickc@redhat.com>
AuthorDate: Tue Aug 15 14:27:20 2023 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Mon Sep 18 01:50:25 2023 +0200

    Updated Russian translation for the bfd directory
    
    (cherry picked from commit 951a6945b44f1882847a45d55a0046b097a09943)

 bfd/po/ru.po | 3163 ++++++++++++++++++++++++++++++----------------------------
 1 file changed, 1645 insertions(+), 1518 deletions(-)

commit 3d3779cf128fa3d630cbac6e6def9cfba0e644ef
Author:     Alan Modra <amodra@gmail.com>
AuthorDate: Mon Aug 7 08:28:55 2023 +0930
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Mon Sep 18 01:50:06 2023 +0200

    PR30724, cygwin ld performance regression since 014a602b86
    
    According to the reporter of this bug the newlib fseek implementation
    is likely slowed down by locking and fflush, only attempting to
    optimise seeks when the file is opened read-only.  Thus when writing
    the output we get a dramatic slowdown due to commit 014a602b86.
    
            PR 30724
            * bfd.c (enum bfd_last_io): New.
            (struct bfd): Add last_io field.
            * bfd-in2.h: Regenerate.
            * bfd-io.c (bfd_bread, bfd_bwrite): Force seek if last_io is
            opposite direction.
            (bfd_seek): Reinstate optimisation for seek to same position.
    
    (cherry picked from commit f82ee0c8dc4ee32556e23e6cd83ef083618f704f)
    (cherry picked from commit 226f2e6b924612ecbdb7dfe4f3ca611116ed77f4)

 bfd/bfd-in2.h | 22 ++++++++++++++++++++++
 bfd/bfd.c     | 22 ++++++++++++++++++++++
 bfd/bfdio.c   | 23 +++++++++++++++++++++++
 3 files changed, 67 insertions(+)

commit 956986d27b3095885ad0ff59f8c93432531aa36e
Author:     H.J. Lu <hjl.tools@gmail.com>
AuthorDate: Mon Aug 7 10:23:16 2023 -0700
Commit:     Sam James <sam@gentoo.org>
CommitDate: Tue Aug 15 04:18:38 2023 +0100

    ld: Build libpr23169a.so with -z lazy
    
    pr23169b test only works with lazy binding.  To work with linker which
    disables lazy binding by default, build pr23169b binaries with -z lazy.
    
            PR ld/30698
            * ld-ifunc/ifunc.exp: Build pr23169b binaries with -z lazy.
    
    (cherry picked from commit 51dd9e7c4cab13748f31f6575aed0672f03d6710)

 ld/testsuite/ld-ifunc/ifunc.exp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

commit 9e03e99fc97f5f40624972cb959c24905133da39
Author:     Sam James <sam@gentoo.org>
AuthorDate: Mon Aug 14 04:28:35 2023 +0100
Commit:     Sam James <sam@gentoo.org>
CommitDate: Mon Aug 14 05:19:40 2023 +0100

    ld: fix relocatable, retain7a target pattens for HPPA
    
    Fix issue reported by Dave and Alan.
    
    Put back the old pattern for hppa-*-linux* and add hppa[12]*-*-linux* to cover
    Gentoo's hppa1.1 and hppa2.0 without including hppa64 inadvertently like I did
    before.
    
    ld/
            PR 30733
            PR 30734
            * ld/testsuite/ld-elf/relocatable.d: Use better pattern to exclude hppa64
              but include hppa1.1, hppa2.0.
            * ld/testsuite/ld-elf/retain7a.d: Ditto.
    
    Fixes: 0e339f6b4f2df25ed351cb94dc7fe16868626f49
    Fixes: e3b66187192ce6840df283c00f6395bb0ff15cf5
    Signed-off-by: Sam James <sam@gentoo.org>
    (cherry picked from commit 3b23a5ea693deee60648c9a9e9d666d83549298e)

 ld/testsuite/ld-elf/relocatable.d | 2 +-
 ld/testsuite/ld-elf/retain7a.d    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

commit 29b5fcf05c3cce523210fdc599d4b996fa4550ff
Author:     Sam James <sam@gentoo.org>
AuthorDate: Tue Aug 8 02:19:57 2023 +0100
Commit:     Sam James <sam@gentoo.org>
CommitDate: Tue Aug 8 18:51:55 2023 +0100

    ld: Fix retain7a.d XFAIL/notarget entry for hppa
    
    PR 30733
    * ld/testsuite/ld-elf/retain7a.d: Fix XFAIL entry for hppa to match
      hppa{1.1,2.0}*, like hppa2.0-unknown-linux-gnu which Gentoo uses.
    
    Signed-off-by: Sam James <sam@gentoo.org>
    (cherry picked from commit e3b66187192ce6840df283c00f6395bb0ff15cf5)

 ld/testsuite/ld-elf/retain7a.d | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit 460c39f36dbd79fac381cc8a6c723e065398a714
Author:     Sam James <sam@gentoo.org>
AuthorDate: Tue Aug 8 02:17:57 2023 +0100
Commit:     Sam James <sam@gentoo.org>
CommitDate: Tue Aug 8 18:51:50 2023 +0100

    ld: Fix relocatable.d XFAIL/notarget entry for hppa
    
    PR 30734
    * ld/testsuite/ld-elf/relocatable.d: Fix notarget entry for hppa to match
      hppa{1.1,2.0}*, like hppa2.0-unknown-linux-gnu which Gentoo uses.
    
    Signed-off-by: Sam James <sam@gentoo.org>
    (cherry picked from commit 0e339f6b4f2df25ed351cb94dc7fe16868626f49)

 ld/testsuite/ld-elf/relocatable.d | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit 135581651b636fdf29019b922071398e41641662
Author:     Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
AuthorDate: Thu Aug 3 12:56:54 2023 -0700
Commit:     Sam James <sam@gentoo.org>
CommitDate: Tue Aug 8 05:39:38 2023 +0100

    gprofng: 30700 tmpdir/gp-collect-app_F test fails
    
    gprofng/ChangeLog
    2023-08-03  Vladimir Mezentsev  <vladimir.mezentsev@oracle.com>
    
            PR gprofng/30700
            * testsuite/gprofng.display/gp-collect-app_F.exp: Fix -name argument
            for sub-experiment filtering.
    
    (cherry picked from commit e0282cf1284b4d358892427a6b4f60d6f4c0580b)

 gprofng/testsuite/gprofng.display/gp-collect-app_F.exp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

commit a65fee67c2aa0944ae51e6ccda5ee38b1b357216
Author:     Tom de Vries <tdevries@suse.de>
AuthorDate: Thu Aug 3 09:48:39 2023 +0100
Commit:     Sam James <sam@gentoo.org>
CommitDate: Tue Aug 8 05:39:28 2023 +0100

     Fix Wlto-type-mismatch in opcodes/ft32-dis.c
    
    (cherry picked from commit e34acfce343d53290e72c317213a28327bc52fb0)

 opcodes/ft32-dis.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit 9c515bcb4063556e54d2bfcd734db4b0952fc4ac
Author:     Nick Clifton <nickc@redhat.com>
AuthorDate: Tue Aug 1 14:37:04 2023 +0100
Commit:     Sam James <sam@gentoo.org>
CommitDate: Tue Aug 8 05:39:14 2023 +0100

    Fix "--only-keep-debug for ELF relocatables" binutils test for compilers which add .debug_macro sections to object files.
    
      PR 30699
      * binutils/testsuite/binutils-all/objcopy.exp (keep_debug_symbols_for_elf_relocatable): Do not add sections containing the string "debug_" to the list of non-debug sections.
    
    (cherry picked from commit b99a9693430a9f04165b1b868f890b622bb1b46c)

 binutils/testsuite/binutils-all/objcopy.exp | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

commit 74a35528f7f09d8b4ccfd10460a5140bc2b34501 (tag: gentoo/binutils-2.41-2)
Author:     Alan Modra <amodra@gmail.com>
AuthorDate: Fri Aug 4 15:09:53 2023 +0930
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Fri Aug 4 12:37:28 2023 +0200

    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>
AuthorDate: Tue Aug 1 12:39:44 2023 +0200
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Fri Aug 4 12:37:02 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>
AuthorDate: Mon Jul 31 13:53:47 2023 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Fri Aug 4 12:36:44 2023 +0200

    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>
AuthorDate: Sun Jul 30 16:03:48 2023 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Fri Aug 4 12:36:21 2023 +0200

    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 (tag: gentoo/binutils-2.41-1)
Author:     Sam James <sam@gentoo.org>
AuthorDate: Fri Jul 28 16:20:34 2023 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sun Jul 30 17:08:12 2023 +0200

    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>
AuthorDate: Wed Feb 22 20:05:35 2023 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sun Jul 30 17:08:09 2023 +0200

    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>
AuthorDate: Sat Jul 31 01:18:18 2021 +0200
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sun Jul 30 17:08:06 2023 +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>
AuthorDate: Sat Jul 24 15:20:16 2021 +0200
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sun Jul 30 17:08:03 2023 +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>
AuthorDate: Tue Jul 20 21:15:24 2021 +0200
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sun Jul 30 17:08:00 2023 +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>
AuthorDate: Tue Jul 20 21:12:38 2021 +0200
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sun Jul 30 17:07:57 2023 +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>
AuthorDate: Fri Jan 7 00:15:53 2005 -0500
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sun Jul 30 17:07:54 2023 +0200

    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>
AuthorDate: Tue Jul 20 21:08:31 2021 +0200
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sun Jul 30 17:07:51 2023 +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>
AuthorDate: Sun Jul 30 17:07:15 2023 +0200
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: 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(-)
