commit 22798f32b0e6ab6147511c2d82e3130e20ad99cf (HEAD -> gentoo/binutils-2.43)
Author:     Nick Clifton <nickc@redhat.com>
AuthorDate: Sat Aug 17 18:18:25 2024 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Tue Aug 20 21:24:26 2024 +0200

    Re-enable development changes on the 2_43 branch
    
    (cherry picked from commit e4cfe6dab3ef7609d92fb3a61438d07eb174f470)

 bfd/development.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit 0f43a948126254a2f1576c2fae188ae8b7ce4bb2
Author:     Nick Clifton <nickc@redhat.com>
AuthorDate: Sat Aug 17 17:54:56 2024 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Tue Aug 20 21:24:10 2024 +0200

    This is the 2.43.1 release
    
    (cherry picked from commit beb2cdbcda911764b2bed5e57921fe90493260bd)

 ChangeLog.git          | 295 ++++++++++++++++++++++++++++++++++++-
 bfd/configure          |  20 +--
 bfd/development.sh     |   2 +-
 bfd/po/bfd.pot         | 344 +++++++++++++++++++++----------------------
 bfd/version.m4         |   2 +-
 binutils/configure     |  20 +--
 gas/configure          |  20 +--
 gas/po/gas.pot         | 386 ++++++++++++++++++++++++-------------------------
 gprof/configure        |  20 +--
 ld/configure           |  20 +--
 ld/po/ld.pot           |  22 +--
 opcodes/configure      |  20 +--
 opcodes/po/opcodes.pot |   2 +-
 13 files changed, 726 insertions(+), 447 deletions(-)

commit 561f71a83d027a1be99ec991a722a5082dacd440
Author:     Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
AuthorDate: Tue Aug 13 22:55:34 2024 -0700
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Tue Aug 20 21:23:51 2024 +0200

    gprofng: fix typo in src/collctrl.cc
    
    gprofng/ChangeLog
    2024-08-13  Vladimir Mezentsev  <vladimir.mezentsev@oracle.com>
    
            * src/collctrl.cc (read_cpuinfo): Fix typo.
    
    (cherry picked from commit 20fc1253743038b8e1038bd6dc26ed459382e271)

 gprofng/src/collctrl.cc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

commit 9fb0b2bc6f2c772e027a9f0f281931d0ded95e4a
Author:     H.J. Lu <hjl.tools@gmail.com>
AuthorDate: Wed Aug 14 20:50:02 2024 -0700
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Tue Aug 20 21:23:33 2024 +0200

    lto: Don't include unused LTO archive members in output
    
    When plugin_object_p is called by elf_link_is_defined_archive_symbol to
    check if a symbol in archive is a real definition, set archive member
    plugin_format to bfd_plugin_yes_unused to avoid including the unused LTO
    archive members in linker output.  When plugin_object_p is called as
    known used, call plugin claim_file if plugin_format is bfd_plugin_unknown
    or bfd_plugin_yes_unused.
    
    To get the proper support for archives with LTO common symbols with GCC,
    the GCC fix for
    
    https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116361
    
    is needed.
    
    bfd/
    
            PR ld/32083
            * archures.c (bfd_arch_get_compatible): Treat bfd_plugin_yes_unused
            the same as bfd_plugin_yes.
            * elflink.c (elf_link_is_defined_archive_symbol): Likewise.
            * bfd.c (bfd_plugin_format): Add bfd_plugin_yes_unused.
            * plugin.c (try_claim): Try claim_file_v2 first.
            * bfd-in2.h: Regenerated.
    
    ld/
    
            PR ld/32083
            * plugin.c (plugin_call_claim_file): Add an argument to return
            if LDPT_REGISTER_CLAIM_FILE_HOOK_V2 is used.
            (plugin_object_p): When KNOWN_USED is false, we call plugin
            claim_file if plugin_format is bfd_plugin_unknown and set
            plugin_format to bfd_plugin_yes_unused on LTO object.  When
            KNOWN_USED is true, we call plugin claim_file if plugin_format
            is bfd_plugin_unknown or bfd_plugin_yes_unused.
    
    Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
    (cherry picked from commit a6f8fe0a9e9cbe871652e46ba7c22d5e9fb86208)
    (cherry picked from commit 92b6ecd5589fb7db9f28dba41978f87974312aa5)

 bfd/archures.c |  1 +
 bfd/bfd-in2.h  |  3 ++-
 bfd/bfd.c      |  3 ++-
 bfd/elflink.c  |  1 +
 bfd/plugin.c   | 22 ++++++++++++++++------
 ld/plugin.c    | 35 ++++++++++++++++++++++++++---------
 6 files changed, 48 insertions(+), 17 deletions(-)

commit 8e86a6ae413c769d54c5ecaa8686a12ddbc5d1ec
Author:     Jan Beulich <jbeulich@suse.com>
AuthorDate: Wed Aug 14 11:25:34 2024 +0200
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Tue Aug 20 21:23:08 2024 +0200

    gas: correct .irpc handling with empty string
    
    Following 69cab370cf66 ("gas: adjust handling of quotes for .irpc") the
    closing quote was mistakenly treated as the first quoted character.
    
    (cherry picked from commit cb204acaff5d85f88f1fb006265bc361d566ff2d)

 gas/macro.c                           | 1 +
 gas/testsuite/gas/macros/irpc-quote.s | 4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

commit 83d37358312dc4785abbe0d5ec8d4398b342116b
Author:     Jan Beulich <jbeulich@suse.com>
AuthorDate: Wed Aug 14 11:25:12 2024 +0200
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Tue Aug 20 21:22:50 2024 +0200

    x86: correct .insn with opcode extension and VEX/XOP/EVEX encoding
    
    When VexVVVV handling was re-worked, .insn broke: When an opcode
    extension is in use, VexVVVV_DST needs using now, as ModR/M.reg is
    already occupied, matching what c8866e3ec5e2 ("x86: Drop using
    extension_opcode to encode vvvv register") did.
    
    While adding (bad) POP2 forms, also slightly adjust existing ones:
    No need to use XMM registers, and no need to specify %r8 when really
    %rax is meant twice (EVEX.vvvv not really being the culprit there, or
    else EVEX.V' would also have needed mentioning).
    
    (cherry picked from commit d13452d18a919ff56de6861b2e0ebeaaf3aa057a)

 gas/config/tc-i386.c                                  |  3 ++-
 gas/testsuite/gas/i386/x86-64-apx-evex-promoted-bad.d |  5 ++++-
 gas/testsuite/gas/i386/x86-64-apx-evex-promoted-bad.s | 12 +++++++++---
 3 files changed, 15 insertions(+), 5 deletions(-)

commit c1bd591897cfe51a7cbb174751c810bec0175f1d
Author:     H.J. Lu <hjl.tools@gmail.com>
AuthorDate: Sat Aug 10 07:23:53 2024 -0700
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Tue Aug 20 21:22:29 2024 +0200

    ld: Add PR ld/32067 tests
    
    Add PR ld/32067 tests with the compiler driver since the -plugin option
    is needed to trigger this --oformat binary bug.
    
            PR ld/32067
            * testsuite/ld-i386/i386.exp: Run PR ld/32067 test.
            * testsuite/ld-x86-64/x86-64.exp: Likewise.
            * testsuite/ld-i386/start.s: Add .note.GNU-stack section.
            * testsuite/ld-x86-64/pr32067.s: New file.
    
    Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
    (cherry picked from commit 602f5cf7e3a82229d75998a5f6eb13753f828bb3)
    (cherry picked from commit 2dc940272ab5b72bb5cfece8e210effc23213b0b)

 ld/testsuite/ld-i386/i386.exp     | 8 ++++++++
 ld/testsuite/ld-i386/start.s      | 1 +
 ld/testsuite/ld-x86-64/pr32067.s  | 5 +++++
 ld/testsuite/ld-x86-64/x86-64.exp | 8 ++++++++
 4 files changed, 22 insertions(+)

commit 80ee1182e4077e897e89f3dfbe7aa17432dbf8c0
Author:     Alan Modra <amodra@gmail.com>
AuthorDate: Sat Aug 10 08:41:16 2024 +0930
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Tue Aug 20 21:22:10 2024 +0200

    PR32067, ld -Wl,--oformat,binary crash in _bfd_elf_link_keep_memory
    
    The direct fix for this segfault is to test for a non-NULL bed in
    _bfd_elf_link_keep_memory, but also there isn't much point in running
    code for LTO if the output is binary.
    
            PR 32067
            * elflink.c (_bfd_elf_link_keep_memory): Test for non-NULL bed.
            (elf_link_add_object_symbols): Don't run the loop setting
            non_ir_ref_regular if the output hash table is not ELF.
    
    (cherry picked from commit ec8f5671b4e70806fe3053636426a8d179dfef55)
    (cherry picked from commit 28867943aa28087a1f71ac8167321711de759be7)

 bfd/elflink.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

commit 723786d95f2618cb76235af9fb113bcccf6f0b81 (gentoo/gentoo/binutils-2.43)
Author:     Richard Henderson <richard.henderson@linaro.org>
AuthorDate: Fri Aug 9 08:32:54 2024 +1000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Fri Aug 9 22:40:06 2024 +0200

    gas: sparc: Fix faligndatai assembly and disassembly
    
    The first operand is a general register, not an fp register;
    the third operand is encoded into RS2, not RS3;
    the second operand must match the destination operand.
    
    (cherry picked from commit 4fe3091816a6e2d3d72e3f42dafea79e38a1f70c)

 gas/config/tc-sparc.c                | 17 +++++++++--------
 gas/testsuite/gas/sparc/sparc5vis4.d |  2 +-
 gas/testsuite/gas/sparc/sparc5vis4.s |  2 +-
 opcodes/sparc-opc.c                  |  2 +-
 4 files changed, 12 insertions(+), 11 deletions(-)

commit 687add4698e49ddbc52bf09dd5a46090dc00576b
Author:     Xiao Zeng <zengxiao@eswincomputing.com>
AuthorDate: Wed Jun 12 09:28:18 2024 +0800
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Fri Aug 9 22:39:32 2024 +0200

    RISC-V: Add support for Zcmop extension
    
    This implements the Zcmop (Compressed Zimop) extension, as of version 1.0.
    
    View detailed information in:
    <https://github.com/riscv/riscv-isa-manual/blob/main/src/zimop.adoc>
    
    The Zcmop extension requires the Zca extension.
    
    bfd/ChangeLog:
    
            * elfxx-riscv.c (riscv_multi_subset_supports): Handle Zcmop.
            (riscv_multi_subset_supports_ext): Ditto.
    
    gas/ChangeLog:
    
            * NEWS: Updated.
            * testsuite/gas/riscv/march-help.l: Ditto.
            * testsuite/gas/riscv/zcmop.d: New test.
            * testsuite/gas/riscv/zcmop.s: New test.
    
    include/ChangeLog:
    
            * opcode/riscv-opc.h (DECLARE_INSN): New declarations for Zcmop.
            (MATCH_C_MOP_1, MATCH_C_MOP_3, MATCH_C_MOP_5, MATCH_C_MOP_7,
            MATCH_C_MOP_9, MATCH_C_MOP_11, MATCH_C_MOP_13, MATCH_C_MOP_15): Define.
            (MASK_C_MOP_1, MASK_C_MOP_3, MASK_C_MOP_5, MASK_C_MOP_7,
            MASK_C_MOP_9, MASK_C_MOP_11, MASK_C_MOP_13, MASK_C_MOP_15): Ditto.
            * opcode/riscv.h (enum riscv_insn_class): Add INSN_CLASS_ZCMOP.
    
    opcodes/ChangeLog:
    
            * riscv-opc.c: Add Zcmop instructions.
    
    (cherry picked from commit bb566d7fa0aeb05f042f3cc9c706e73adb08f216)

 bfd/elfxx-riscv.c                    |  6 ++++++
 gas/NEWS                             |  2 +-
 gas/testsuite/gas/riscv/imply.d      |  1 +
 gas/testsuite/gas/riscv/imply.s      |  1 +
 gas/testsuite/gas/riscv/march-help.l |  1 +
 gas/testsuite/gas/riscv/zcmop.d      | 16 ++++++++++++++++
 gas/testsuite/gas/riscv/zcmop.s      | 10 ++++++++++
 include/opcode/riscv-opc.h           | 26 ++++++++++++++++++++++++++
 include/opcode/riscv.h               |  1 +
 opcodes/riscv-opc.c                  | 10 ++++++++++
 10 files changed, 73 insertions(+), 1 deletion(-)

commit c13e447badad4bdc232eb1d4e396f636258acfae
Author:     Xiao Zeng <zengxiao@eswincomputing.com>
AuthorDate: Wed Jun 12 09:28:17 2024 +0800
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Fri Aug 9 22:38:33 2024 +0200

    RISC-V: Add support for Zimop extension
    
    This implements the Zimop (May-Be-Operations) extension, as of version 1.0.
    
    View detailed information in:
    <https://github.com/riscv/riscv-isa-manual/blob/main/src/zimop.adoc>
    
    bfd/ChangeLog:
    
            * elfxx-riscv.c (riscv_multi_subset_supports): Handle Zimop
            (riscv_multi_subset_supports_ext): Ditto.
    
    gas/ChangeLog:
    
            * NEWS: Updated.
            * testsuite/gas/riscv/march-help.l: Ditto.
            * testsuite/gas/riscv/zimop.d: New test.
            * testsuite/gas/riscv/zimop.s: New test.
    
    include/ChangeLog:
    
            * opcode/riscv-opc.h (DECLARE_INSN): New declarations for Zimop.
            (MATCH_MOP_R_0, MATCH_MOP_R_1, MATCH_MOP_R_2, MATCH_MOP_R_3,
            MATCH_MOP_R_4, MATCH_MOP_R_5, MATCH_MOP_R_6, MATCH_MOP_R_7,
            MATCH_MOP_R_8, MATCH_MOP_R_9, MATCH_MOP_R_10, MATCH_MOP_R_11,
            MATCH_MOP_R_12, MATCH_MOP_R_13, MATCH_MOP_R_14, MATCH_MOP_R_15,
            MATCH_MOP_R_16, MATCH_MOP_R_17, MATCH_MOP_R_18, MATCH_MOP_R_19,
            MATCH_MOP_R_20, MATCH_MOP_R_21, MATCH_MOP_R_22, MATCH_MOP_R_23,
            MATCH_MOP_R_24, MATCH_MOP_R_25, MATCH_MOP_R_26, MATCH_MOP_R_27,
            MATCH_MOP_R_28, MATCH_MOP_R_29, MATCH_MOP_R_30, MATCH_MOP_R_31,
            MATCH_MOP_RR_0, MATCH_MOP_RR_1, MATCH_MOP_RR_2, MATCH_MOP_RR_3,
            MATCH_MOP_RR_4, MATCH_MOP_RR_5, MATCH_MOP_RR_6, MATCH_MOP_RR_7): Define.
            (MASK_MOP_R_0, MASK_MOP_R_1, MASK_MOP_R_2, MASK_MOP_R_3, MASK_MOP_R_4,
            MASK_MOP_R_5, MASK_MOP_R_6, MASK_MOP_R_7, MASK_MOP_R_8, MASK_MOP_R_9,
            MASK_MOP_R_10, MASK_MOP_R_11, MASK_MOP_R_12, MASK_MOP_R_13,
            MASK_MOP_R_14, MASK_MOP_R_15, MASK_MOP_R_16, MASK_MOP_R_17,
            MASK_MOP_R_18, MASK_MOP_R_19, MASK_MOP_R_20, MASK_MOP_R_21,
            MASK_MOP_R_22, MASK_MOP_R_23, MASK_MOP_R_24, MASK_MOP_R_25,
            MASK_MOP_R_26, MASK_MOP_R_27, MASK_MOP_R_28, MASK_MOP_R_29,
            MASK_MOP_R_30, MASK_MOP_R_31, MASK_MOP_RR_0, MASK_MOP_RR_1,
            MASK_MOP_RR_2, MASK_MOP_RR_3, MASK_MOP_RR_4, MASK_MOP_RR_5,
            MASK_MOP_RR_6, MASK_MOP_RR_7): Ditto.
            * opcode/riscv.h (enum riscv_insn_class): Add INSN_CLASS_ZIMOP.
    
    opcodes/ChangeLog:
    
            * riscv-opc.c: Add Zimop instructions.
    
    (cherry picked from commit 305fe5ed3fae8eb30be9e94bdc66998fe734657b)

 bfd/elfxx-riscv.c                    |   5 ++
 gas/NEWS                             |   2 +
 gas/testsuite/gas/riscv/march-help.l |   1 +
 gas/testsuite/gas/riscv/zimop.d      |  48 ++++++++++++++
 gas/testsuite/gas/riscv/zimop.s      |  43 ++++++++++++
 include/opcode/riscv-opc.h           | 122 +++++++++++++++++++++++++++++++++++
 include/opcode/riscv.h               |   1 +
 opcodes/riscv-opc.c                  |  42 ++++++++++++
 8 files changed, 264 insertions(+)

commit 27c785dc7cff2f8ed87feeaf15a44da41ac7fb2b
Author:     Xi Ruoyao <xry111@xry111.site>
AuthorDate: Mon Aug 5 15:15:54 2024 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Tue Aug 6 21:59:24 2024 +0200

    LoongArch: Fix DT_RELR and relaxation interaction
    
    (cherry picked from commit 7999dae69612295e1bbffe64aff87044372a0059)

 bfd/elfnn-loongarch.c                              | 17 ++++++++++++++++-
 ld/testsuite/ld-loongarch-elf/ld-loongarch-elf.exp |  1 +
 ld/testsuite/ld-loongarch-elf/relr-got-start.d     |  7 +++++++
 ld/testsuite/ld-loongarch-elf/relr-got-start.s     |  5 +++++
 4 files changed, 29 insertions(+), 1 deletion(-)

commit fc6a20271cb9e0b2db04ad944a08e83e00b8375b (tag: gentoo/binutils-2.43-1)
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: Mon Aug 5 09:14:38 2024 +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 3752586e5113e0518e28022ed72600c64267abb9
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: Mon Aug 5 09:14:35 2024 +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 87bcee8c283b3cdf619a0eb0eca4c54dc6381e8a
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: Mon Aug 5 09:14:32 2024 +0200

    Gentoo: Give also libctf optionally a gentoo-specific soversion

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

commit f3ee0de2c6fb3556274fb8b4cead255b6e6bfe94
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: Tue Jul 20 21:12:38 2021 +0200
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Mon Aug 5 09:14:29 2024 +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 4dcca4dade5b7ea20e45595bcea3783e7607cebf
Author:     Mike Frysinger <vapier@gentoo.org>
AuthorDate: Fri Jan 7 00:15:53 2005 -0500
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Mon Aug 5 09:14:22 2024 +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 2fbb863136724cfef2fc2f4c2b7f51be36f132c7
Author:     H.J. Lu <hjl.tools@gmail.com>
AuthorDate: Fri Aug 2 19:52:00 2024 -0700
Commit:     Alan Modra <amodra@gmail.com>
CommitDate: Mon Aug 5 11:23:45 2024 +0930

    LTO: Restore the wrapper symbol check for standard function
    
    Call unwrap_hash_lookup to restore the wrapper symbol check for standard
    function since reference to standard function may not show up in LTO
    symbol table:
    
    [hjl@gnu-tgl-3 pr31956-3]$ nm foo.o
    00000000 T main
             U __real_malloc
    00000000 T __wrap_malloc
    [hjl@gnu-tgl-3 pr31956-3]$  lto-dump -list foo.o
    Type   Visibility  Size  Name
    function  default     0  malloc
    function  default     0  __real_malloc
    function  default     3  main
    function  default     5  __wrap_malloc
    [hjl@gnu-tgl-3 pr31956-3]$ make
    gcc -O2 -flto -Wall   -c -o foo.o foo.c
    gcc -Wl,--wrap=malloc -O2 -flto -Wall -o x foo.o
    /usr/local/bin/ld: /tmp/ccsPW0a9.ltrans0.ltrans.o: in function `main':
    <artificial>:(.text.startup+0xa): undefined reference to `__wrap_malloc'
    collect2: error: ld returned 1 exit status
    make: *** [Makefile:22: x] Error 1
    [hjl@gnu-tgl-3 pr31956-3]$
    
    Also add a test to verify that the unused wrapper is removed.
    
            PR ld/31956
            * plugin.c (get_symbols): Restore the wrapper symbol check for
            standard function.
            * testsuite/ld-plugin/lto.exp: Run the malloc test and the
            unused test.
            * testsuite/ld-plugin/pr31956c.c: New file.
            * testsuite/ld-plugin/pr31956d.c: New file.
            * testsuite/ld-plugin/pr31956d.d: New file.
    
    Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
    (cherry picked from commit 3221c470f0765886a49a1a3d2ec602e4104a377b)

 ld/plugin.c                       | 14 ++++++++++++--
 ld/testsuite/ld-plugin/lto.exp    | 16 ++++++++++++++++
 ld/testsuite/ld-plugin/pr31956c.c | 19 +++++++++++++++++++
 ld/testsuite/ld-plugin/pr31956d.c |  7 +++++++
 ld/testsuite/ld-plugin/pr31956d.d |  4 ++++
 5 files changed, 58 insertions(+), 2 deletions(-)

commit b9be3e07d6a613eb4aeb4829d7c8cae3dc753731
Author:     GDB Administrator <gdbadmin@sourceware.org>
AuthorDate: Mon Aug 5 00:01:20 2024 +0000
Commit:     GDB Admin <brobecker@adacore.com>
CommitDate: Mon Aug 5 00:01:20 2024 +0000

    Automatic date update in version.in

 bfd/version.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit 02e488d0c7d5f3559fb78022dfb5f3c9eb678ff2
Author:     Nick Clifton <nickc@redhat.com>
AuthorDate: Sun Aug 4 17:45:00 2024 +0100
Commit:     Nick Clifton <nickc@redhat.com>
CommitDate: Sun Aug 4 17:45:00 2024 +0100

    Re-enable development on 2.43 branch

 bfd/configure                  | 20 ++++++++++----------
 bfd/development.sh             |  2 +-
 bfd/po/bfd.pot                 |  2 +-
 bfd/version.m4                 |  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 ++++++++++----------
 12 files changed, 85 insertions(+), 85 deletions(-)
