commit f3a5cb841cd6a790fe16442df4ec97dc4357f3be (HEAD -> gentoo/binutils-2.34, gentoo/gentoo/binutils-2.34)
Author: Alan Modra <amodra@gmail.com>
Date:   Fri May 1 15:32:00 2020 +0930

    PR25900, RISC-V: null pointer dereference
    
            PR 25900
            * elfnn-riscv.c (_bfd_riscv_relax_section): Check root.type before
            accessing root.u.def of symbols.  Also check root.u.def.section
            is non-NULL.  Reverse tests so as to make the logic positive.
    
    (cherry picked from commit a2714d6cca1f1c7695f8dc84b49a4a51d1db86c8)

 bfd/ChangeLog     |  7 +++++++
 bfd/elfnn-riscv.c | 11 ++++++-----
 2 files changed, 13 insertions(+), 5 deletions(-)

commit c73ab63eb7aeda73ccb9f5c666ce719ae175a0ff
Author: Sergei Trofimovich <siarheit@google.com>
Date:   Sat Feb 1 23:16:11 2020 +0000

    binutils: drop redundant 'program_name' definition (-fno-common)
    
            * coffdump.c (program_name): Drop redundant definition.
            * srconv.c (program_name): Likewise
            * sysdump.c (program_name): Likewise
    
    Signed-off-by: Sergei Trofimovich <siarheit@google.com>

 binutils/ChangeLog  | 6 ++++++
 binutils/coffdump.c | 2 --
 binutils/srconv.c   | 2 --
 binutils/sysdump.c  | 2 --
 4 files changed, 6 insertions(+), 6 deletions(-)

commit 8e936a613ea7b0b4d7787c8d51ad6ef675f3bab1 (tag: gentoo/binutils-2.34-4)
Author: Andreas K. Hüttel <dilfridge@gentoo.org>
Date:   Sun May 10 20:59:05 2020 +0300

    Gentoo: Fix regexp of hilarious ld detection heuristic
    
    The new linker used to be called as "ld/ld-new" but is now called as "./ld-new"
    Test for just "ld-new" and hope that the compiler binary never looks like this.

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

commit 36d02aaa2e3139e1cef49acfadbd3bccda1e2073
Author: Andreas K. Hüttel <dilfridge@gentoo.org>
Date:   Sun May 10 20:24:33 2020 +0300

    Gentoo: Adapt generic test library to our linker settings

 binutils/testsuite/lib/binutils-common.exp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit 968b492696ebd0365d34c93f5e1e34aa81ae00bc
Author: Andreas K. Hüttel <dilfridge@gentoo.org>
Date:   Sun May 10 20:13:43 2020 +0300

    Gentoo: Remove block mistakenly duplicated in 1222895ec55f34a97fb2cbcd80d421e24308f618

 ld/testsuite/lib/ld-lib.exp | 753 --------------------------------------------
 1 file changed, 753 deletions(-)

commit f7f16034954c6da78abf5db008b281f0e3406e0f (tag: gentoo/binutils-2.34-3)
Author: GDB Administrator <gdbadmin@sourceware.org>
Date:   Fri May 8 00:00:31 2020 +0000

    Automatic date update in version.in
    
    (cherry picked from commit 3b87b29a68658d7b8a3c08e7398ee2093a462c48)

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

commit 5747fab5b15941ce2fa0f08bf33f2a1dccaf5c6d
Author: Andre Simoes Dias Vieira <andre.simoesdiasvieira@arm.com>
Date:   Mon May 4 13:05:42 2020 +0100

    gas: PR 25863: Fix scalar vmul inside it block when assembling for MVE
    
    This fixes PR 25863 by fixing the condition in the parsing of vmul in
    do_mve_vmull.  It also simplifies the code in there fixing latent issues that
    would lead to NEON code being accepted when it shouldn't.
    
    2020-05-07  Andre Vieira  <andre.simoesdiasvieira@arm.com>
    
            Backport from mainline.
            2020-05-04  Andre Vieira  <andre.simoesdiasvieira@arm.com>
    
            PR gas/25863
            * config/tc-arm.c (do_mve_vmull): Fix scalar and NEON parsing of vmul.
            * testsuite/gas/arm/mve-scalar-vmult-it.d: New test.
            * testsuite/gas/arm/mve-scalar-vmult-it.s: New test.
    
    (cherry picked from commit a72427b1ae01304da0b5170e1e53f68c6d46c1de)

 gas/ChangeLog                              | 10 ++++++++++
 gas/config/tc-arm.c                        | 12 +++---------
 gas/testsuite/gas/arm/mve-scalar-vmul-it.d | 11 +++++++++++
 gas/testsuite/gas/arm/mve-scalar-vmul-it.s |  5 +++++
 4 files changed, 29 insertions(+), 9 deletions(-)

commit e2ff22b2d88b437f14d1c35b92a1816f0088f52f
Author: Tamar Christina <tamar.christina@arm.com>
Date:   Tue Apr 21 15:16:21 2020 +0100

    BFD: Exclude sections with no content from compress check.
    
    The check in bfd_get_full_section_contents is trying to check that we don't
    allocate more space for a section than the size of the section is on disk.
    
    Previously we excluded linker created sections since they didn't have a size on
    disk.  However we also need to exclude sections with no content as well such as
    the BSS section.  Space for these would not have been allocated by the assembler
    and so the check would incorrectly fail.
    
    bfd/ChangeLog:
    
            PR binutils/24753
            * compress.c (bfd_get_full_section_contents): Exclude sections with no
            content.
    
    gas/ChangeLog:
    
            PR binutils/24753
            * testsuite/gas/arm/pr24753.d: New test.
            * testsuite/gas/arm/pr24753.s: New test.
    
    (cherry picked from commit c36876fe5b5bac1c404ab2ca82bfbfb2ed9a2717)
    (cherry picked from commit 9f57ab49b32bc14c0ff3834876a185af0a4c6e6b)

 bfd/ChangeLog                   |  9 +++++++++
 bfd/compress.c                  |  3 +++
 gas/ChangeLog                   |  9 +++++++++
 gas/testsuite/gas/arm/pr24753.d |  7 +++++++
 gas/testsuite/gas/arm/pr24753.s | 12 ++++++++++++
 5 files changed, 40 insertions(+)

commit 3a584ca67d1da98fbcaaa3ba3113d571fe618110
Author: Tamar Christina <tamar.christina@arm.com>
Date:   Wed Apr 1 10:47:18 2020 +0100

    Arm: Fix LSB of GOT for Thumb2 only PLT.
    
    When you have a Thumb only PLT then the address in the GOT for PLT0 needs to
    have the Thumb bit set since the instruction used in PLTn to get there is
    `ldr.w  pc` which is an inter-working instruction:
    
    the PLT sequence in question is
    
    00000120 <foo@plt>:
     120:   f240 0c98       movw    ip, #152        ; 0x98
     124:   f2c0 0c01       movt    ip, #1
     128:   44fc            add     ip, pc
     12a:   f8dc f000       ldr.w   pc, [ip]
     12e:   e7fc            b.n     12a <foo@plt+0xa>
    
    Disassembly of section .text:
    
    00000130 <bar>:
     130:   b580            push    {r7, lr}
     132:   af00            add     r7, sp, #0
     134:   f7ff fff4       bl      120 <foo@plt>
    
    and previously the linker would generate
    
    Hex dump of section '.got':
     ...
      0x000101b8 40010100 00000000 00000000 10010000 @...............
    
    Which would make it jump and transition out of thumb mode and crash since you
    only have thumb mode on such cores.
    
    Now it correctly generates
    
    Hex dump of section '.got':
     ...
      0x000101b8 40010100 00000000 00000000 11010000 @...............
    
    Thanks to Amol for testing patch and to rgujju for reporting it.
    
    bfd/ChangeLog:
    
            PR ld/16017
            * elf32-arm.c (elf32_arm_populate_plt_entry): Set LSB of the PLT0
            address in the GOT if in thumb only mode.
    
    ld/ChangeLog:
    
            PR ld/16017
            * testsuite/ld-arm/arm-elf.exp (thumb-plt-got): New.
            * testsuite/ld-arm/thumb-plt-got.d: New test.
    
    (cherry picked from commit a7618269b727da9cf56727c22cb538ff5f0e4d25)
    (cherry picked from commit 3ce23ca1de4c769c4b7247f0724a10ef5fb24a11)
    (cherry picked from commit aaf3f0599a210699a76767c07a7d7f62d7633d71)

 bfd/ChangeLog                       |  9 +++++++++
 bfd/elf32-arm.c                     |  6 ++++++
 ld/ChangeLog                        |  9 +++++++++
 ld/testsuite/ld-arm/arm-elf.exp     |  2 ++
 ld/testsuite/ld-arm/thumb-plt-got.d | 14 ++++++++++++++
 5 files changed, 40 insertions(+)

commit 4e4c7c5672b4364ffae2dd574b4658fb7c2759ef
Author: Tamar Christina <tamar.christina@arm.com>
Date:   Wed Apr 1 10:40:07 2020 +0100

    Arm: Fix thumb2 PLT branch offsets.
    
    When I previously changed these offsets I had incorrectly used an offset of -2
    for this Thumb2 PLT.  Unfortunately because we had no tests for this PLT I had
    missed that the result was incorrect.
    
    This patch fixes the offset to PC .-4 so that it correctly addresses the
    previous instruction and adds a test for this PLT stub.
    
    bfd/ChangeLog:
    
            * elf32-arm.c (elf32_thumb2_plt_entry): Fix PC-rel offset.
    
    ld/ChangeLog:
    
            * testsuite/ld-arm/arm-elf.exp (thumb-plt): New.
            * testsuite/ld-arm/thumb-plt.d: New test.
            * testsuite/ld-arm/thumb-plt.s: New test.
    
    (cherry picked from commit 15ccbdd717530f81f545a716f0df1de62aee1157)
    (cherry picked from commit 3ce23ca1de4c769c4b7247f0724a10ef5fb24a11)
    (cherry picked from commit 97f92b3e90a41cad48a7ed3587e87989682ff9c8)

 bfd/ChangeLog                   |  7 +++++++
 bfd/elf32-arm.c                 |  4 ++--
 ld/ChangeLog                    |  9 +++++++++
 ld/testsuite/ld-arm/arm-elf.exp |  4 ++++
 ld/testsuite/ld-arm/thumb-plt.d | 34 ++++++++++++++++++++++++++++++++++
 ld/testsuite/ld-arm/thumb-plt.s | 18 ++++++++++++++++++
 6 files changed, 74 insertions(+), 2 deletions(-)

commit 7aa071b1229dccafcff1ac9418b8b2eb44759045
Author: Martin Liska <mliska@suse.cz>
Date:   Wed Apr 1 02:36:11 2020 -0700

    include: Sync plugin-api.h with GCC
    
    Fix typo in a macro usage.
    
            PR lto/94249
            * plugin-api.h: Fix a typo.
    
    (cherry picked from commit 40bd13ced9c03c74af9d55a98d6e06ddcf11429c)
    (cherry picked from commit 3053d7a163cef3a17c199026a2f1b97a24030a4f)

 include/ChangeLog    | 6 ++++++
 include/plugin-api.h | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)

commit fbfc5cdeaec29a529cb3f9405b5df1e1bddcb8b7
Author: Alan Modra <amodra@gmail.com>
Date:   Mon Mar 30 09:28:02 2020 +1030

    PR25745, powerpc64-ld overflows string buffer in --stats mode
    
            PR 25745
            * elf64-ppc.c (ppc64_elf_build_stubs): Use asprintf to form
            statistics message.
    
    (cherry picked from commit 988b7300bc990abafd982bdcd217c58bc1e0679a)
    (cherry picked from commit f7aec2b8e09768f284085259e08bfc1f61a0ae27)

 bfd/ChangeLog   |  6 +++++
 bfd/elf64-ppc.c | 76 ++++++++++++++++++++++++++++++---------------------------
 2 files changed, 46 insertions(+), 36 deletions(-)

commit 8672640a85492eeb6dc15810937aa9ef1656e113
Author: Martin Liska <mliska@suse.cz>
Date:   Wed Mar 25 07:05:40 2020 -0700

    include: Sync plugin-api.h with GCC
    
    Improve endianess detection.
    
            PR lto/94249
            * plugin-api.h: Add more robust endianess detection.
    
    (cherry picked from commit dfb68cc35803369cbd163c2ebc07fb27e81d9950)
    (cherry picked from commit 1b2bf0f65c19e6e37b8811bc03fa6aeb89867b7b)

 include/ChangeLog    |  5 ++++
 include/plugin-api.h | 65 ++++++++++++++++++++++++++++++++++++++++++++++++++--
 2 files changed, 68 insertions(+), 2 deletions(-)

commit 0eb8f3ad6a59ecd5202369fa480e2cfd1dd18db6
Author: Martin Liska <mliska@suse.cz>
Date:   Wed Mar 25 07:02:17 2020 -0700

    include: Sync lto-symtab.h and plugin-api.h with GCC
    
    Fix comma at end of enumerator list seen with -std=c++98.
    
            * plugin-api.h (enum ld_plugin_symbol_type): Remove
            comma after last value of an enum.
            * lto-symtab.h (enum gcc_plugin_symbol_type): Likewise.
    
    (cherry picked from commit e3b1fa32c2814772e8c8c4d2788e1d342c7493d0)
    (cherry picked from commit 5e8619b959725c5789fbfdded2723af0c87a68af)

 include/ChangeLog    | 6 ++++++
 include/lto-symtab.h | 2 +-
 include/plugin-api.h | 2 +-
 3 files changed, 8 insertions(+), 2 deletions(-)

commit 6f1b9673de6449a2ee7693f1bd37cac26cdfd118
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Wed Mar 25 06:58:19 2020 -0700

    plugin: Don't invoke LTO-wrapper
    
    Don't invoke LTO-wrapper since the LTO wrapper approach is not only
    slow but also unreliable.  For GCC 10 or newer, LDPT_ADD_SYMBOLS_V2
    will be used.
    
    bfd/
    
            * configure.ac (HAVE_EXECUTABLE_SUFFIX): Removed.
            (EXECUTABLE_SUFFIX): Likewise.
            * config.in: Regenerated.
            * configure: Likewise.
            * plugin.c (bfd_plugin_close_and_cleanup): Defined as
            _bfd_generic_close_and_cleanup.
            (plugin_list_entry): Remove resolution_file, resolution_option,
            real_bfd, real_nsyms, real_syms, lto_nsyms, lto_syms, gcc,
            lto_wrapper, gcc_env and initialized,
            (need_lto_wrapper_p): Removed.
            (get_lto_wrapper): Likewise.
            (setup_lto_wrapper_env): Likewise.
            (register_all_symbols_read): Likewise.
            (egister_cleanup): Likewise.
            (get_symbols): Likewise.
            (add_input_file): Likewise.
            (bfd_plugin_set_program_name): Remove need_lto_wrapper.
            (add_symbols): Updated.
            (try_claim): Likewise.
            (try_load_plugin): Likewise.
            (bfd_plugin_canonicalize_symtab): Likewise.
            * plugin.h (bfd_plugin_set_program_name): Remove int argument.
            (plugin_data_struct): Remove real_bfd, real_nsyms and
            real_syms.
    
    binutils/
    
            * ar.c (main): Update bfd_plugin_set_program_name call.
            * nm.c (main): Likewise.
    
    ld/
    
            * testsuite/ld-plugin/lto.exp (lto_link_tests): Run PR ld/25355
            test only for GCC 10 or newer.
    
    (cherry picked from commit 3d98c46092341c1373d960d0a66ca502d5b7ee7f)
    (cherry picked from commit 23820109ced73d231b69ea6fa9a85b743d7843c8)

 bfd/ChangeLog                  |  27 +++
 bfd/config.in                  |   6 -
 bfd/configure                  |  10 -
 bfd/configure.ac               |   6 -
 bfd/plugin.c                   | 453 +----------------------------------------
 bfd/plugin.h                   |   5 +-
 binutils/ChangeLog             |   5 +
 binutils/ar.c                  |   2 +-
 binutils/nm.c                  |   2 +-
 ld/ChangeLog                   |   5 +
 ld/testsuite/ld-plugin/lto.exp |  15 +-
 11 files changed, 60 insertions(+), 476 deletions(-)

commit a6fd7dd9c8d6e7a00b4213c8499cc2149a3d8dfb
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Wed Mar 25 06:54:20 2020 -0700

    plugin: Use LDPT_ADD_SYMBOLS_V2 to get symbol type
    
    Since LTO plugin may generate more than one ltrans.o file from one input
    IR object as LTO wrapper ignores -flto-partition=none:
    
    lto-wrapper.c:608:
    
       604          /* Drop arguments that we want to take from the link line.  */
       605          case OPT_flto_:
       606          case OPT_flto:
       607          case OPT_flto_partition_:
       608            continue;
    
    the LTO wrapper approach is not only slow but also unreliable.  Since
    the LTO plugin API has been extended to add LDPT_ADD_SYMBOLS_V2 with
    symbol type and section kind, we can use LDPT_ADD_SYMBOLS_V2 to get
    symbol type, instead of invoking the LTO wrapper.
    
            PR binutils/25640
            * plugin.c (plugin_list_entry): Add has_symbol_type.
            (add_symbols_v2): New function.
            (bfd_plugin_open_input): Don't invoke LTO wrapper if LTO plugin
            provides symbol type.
            (try_load_plugin): Add LDPT_ADD_SYMBOLS_V2.
            (bfd_plugin_canonicalize_symtab): Use LTO plugin symbol type if
            available.
    
    (cherry picked from commit c3a1714ce7806002726a60c0db09371425fe3097)
    (cherry picked from commit 64f5c0afcc4683f0003b60d6a5a299beb08f38de)

 bfd/ChangeLog | 11 ++++++++++
 bfd/plugin.c  | 66 ++++++++++++++++++++++++++++++++++++++++++++++-------------
 2 files changed, 63 insertions(+), 14 deletions(-)

commit 1494a711a8c6eac660306885b14b4a2761179b3e
Author: Alan Modra <amodra@gmail.com>
Date:   Wed Mar 25 06:52:33 2020 -0700

    Silence warnings due to plugin API change
    
            * testplug.c (parse_symdefstr): Use %hhi to read sym->def, and
            clear new fields.
            * testplug2.c (parse_symdefstr): Likewise.
            * testplug3.c (parse_symdefstr): Likewise.
            * testplug4.c (parse_symdefstr): Likewise.
    
    (cherry picked from commit c02d66610b3b79f6fb5052e8890969bc7185b7be)
    (cherry picked from commit aaa1e160040ce2d8f382f9327cc7aea078373f3d)

 ld/ChangeLog   | 8 ++++++++
 ld/testplug.c  | 5 ++++-
 ld/testplug2.c | 5 ++++-
 ld/testplug3.c | 5 ++++-
 ld/testplug4.c | 5 ++++-
 5 files changed, 24 insertions(+), 4 deletions(-)

commit 29ad03ddf3dcc4b997dfd49bdd4e495fac6ac665
Author: Martin Liska <mliska@suse.cz>
Date:   Wed Mar 25 06:47:35 2020 -0700

    Include: Sync lto-symtab.h and plugin-api.h with GCC
    
    2020-03-19  Martin Liska  <mliska@suse.cz>
    
            * lto-symtab.h (enum gcc_plugin_symbol_type): New.
            (enum gcc_plugin_symbol_section_kind): Likewise.
    
    2020-03-19  Martin Liska  <mliska@suse.cz>
    
            * plugin-api.h (struct ld_plugin_symbol): Split
            int def into 4 char fields.
            (enum ld_plugin_symbol_type): New.
            (enum ld_plugin_symbol_section_kind): New.
            (enum ld_plugin_tag): Add LDPT_ADD_SYMBOLS_V2.
    
    (cherry picked from commit 3734bec8336f6f33927ab99460cb681035c2ca4f)
    (cherry picked from commit e7c0ee5110c175cc8762a8d379bdf2e3405d45d3)

 include/ChangeLog    | 13 +++++++++++++
 include/lto-symtab.h | 13 +++++++++++++
 include/plugin-api.h | 32 ++++++++++++++++++++++++++++++--
 3 files changed, 56 insertions(+), 2 deletions(-)

commit 8abfc9a403c9ad2c5648ad853a41ddc2e134aebb
Author: Nick Clifton <nickc@redhat.com>
Date:   Fri Feb 7 12:49:42 2020 +0000

    Fix dwarf.c build with GCC 10
    
    Silcence a compile time warning message building the binutils with
    gcc-10.
    
            * dwarf.c (display_debug_lines_decoded): Force a NUL termination
            of the truncated file name.
    
    (cherry picked from commit e1104d08fe2fbfabcfa98aa00525211e47548bd8)
    (cherry picked from commit b6520be37fd59993c5b6bed1fe2a185fb7a1f996)

 binutils/ChangeLog | 5 +++++
 binutils/dwarf.c   | 5 +++++
 2 files changed, 10 insertions(+)

commit d88245ccaefae13b2b99aa7257aaf9d047b344ad
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Tue Mar 24 06:58:40 2020 -0700

    bfd: Change num_group to unsigned int
    
    elf.c failed with to with GCC 10 as of
    
    commit 906b3eb9df6c577d3f6e9c3ea5c9d7e4d1e90536
    Author: Martin Liska <mliska@suse.cz>
    Date:   Tue Mar 24 11:40:10 2020 +0100
    
        Improve endianess detection.
    
                PR lto/94249
                * plugin-api.h: Add more robust endianess detection.
    
    binutils-gdb/bfd/elf.c: In function ‘setup_group’:
    binutils-gdb/bfd/elf.c:740:35: error: overflow in conversion from ‘unsigned int’ to ‘int’ changes value from ‘num_group = 4294967295’ to ‘-1’ [-Werror=overflow]
      740 |     elf_tdata (abfd)->num_group = num_group = -1;
          |                                   ^~~~~~~~~
    cc1: all warnings being treated as errors
    make[2]: *** [Makefile:1608: elf.lo] Error 1
    
    Change num_group in elf_obj_tdata to unsigned int to compile with GCC 10.
    
            PR binutils/25717
            * elf-bfd.h (elf_obj_tdata): Change num_group to unsigned int.
    
    (cherry picked from commit cda7e5603f6efd7c3716e45cc6ea11b70dd8daae)
    (cherry picked from commit a560c29ca5a6eeb7f84452f781f838ab35fd844b)

 bfd/ChangeLog | 5 +++++
 bfd/elf-bfd.h | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

commit cdc7cce41c228b67c0986c3ff380620388a67001
Author: Andre Vieira <andre.simoesdiasvieira@arm.com>
Date:   Mon Mar 16 13:15:31 2020 +0000

    gas, arm: Fix bad backport
    
    This patch fixes the backport for PR25660 as it contained bad context.
    
    (cherry picked from commit 3ca4cd1ebde8ba6ce124a4debb977b041dfb56ba)

 gas/config/tc-arm.c | 1 -
 1 file changed, 1 deletion(-)

commit 1d4ea2fd45c048bd56a6d04c286df4bc639b76cc
Author: Andre Vieira <andre.simoesdiasvieira@arm.com>
Date:   Fri Mar 13 13:31:56 2020 +0000

    gas, arm: PR25660L Fix vadd/vsub with lt and le condition codes for MVE
    
    As explained in the PR, the addition of MVE makes the parser strip 't' and 'e'
    as suffixes when MVE is enabled.  This leads to vadd and vsub in it blocks with
    lt and le conditions to be initially parsed as vaddl and vsubl.  This means the
    operand parsing for these must allow for the same operands as the scalar vadd
    and vsub.  I had forgotten to do this and this patch remedies that oversight.
    
    gas/ChangeLog:
    2020-03-13  Andre Vieira  <andre.simoesdiasvieira@arm.com>
    
            Backport from mainline.
            2020-03-13  Andre Vieira  <andre.simoesdiasvieira@arm.com>
    
            PR 25660
            *  config/tc-arm.c (operand_parse_code): Add OP_RNSDMQR and OP_oRNSDMQ.
            (parse_operands): Handle new operand codes.
            (do_neon_dyadic_long): Make shape check accept the scalar variants.
            (asm_opcode_insns): Fix operand codes for vaddl and vsubl.
            * testsuite/gas/arm/mve-vaddsub-it.s: New test.
            * testsuite/gas/arm/mve-vaddsub-it.d: New test.
            * testsuite/gas/arm/mve-vaddsub-it-bad.s: New test.
            * testsuite/gas/arm/mve-vaddsub-it-bad.l: New test.
            * testsuite/gas/arm/mve-vaddsub-it-bad.d: New test.
            * testsuite/gas/arm/nomve-vaddsub-it.d: New test.
    
    (cherry picked from commit b3174859c4b609242effbff5901c01935003537a)

 gas/ChangeLog                              | 17 +++++++++++++++++
 gas/config/tc-arm.c                        | 21 ++++++++++++++++++---
 gas/testsuite/gas/arm/mve-vaddsub-it-bad.d |  6 ++++++
 gas/testsuite/gas/arm/mve-vaddsub-it-bad.l |  7 +++++++
 gas/testsuite/gas/arm/mve-vaddsub-it-bad.s | 11 +++++++++++
 gas/testsuite/gas/arm/mve-vaddsub-it.d     | 23 +++++++++++++++++++++++
 gas/testsuite/gas/arm/mve-vaddsub-it.s     | 17 +++++++++++++++++
 gas/testsuite/gas/arm/nomve-vaddsub-it.d   | 24 ++++++++++++++++++++++++
 8 files changed, 123 insertions(+), 3 deletions(-)

commit 6bd720998abdcd0fddb1fab59c6c82256cd09886
Author: Alan Modra <amodra@gmail.com>
Date:   Wed Mar 11 14:43:16 2020 +1030

    powerpc64-ld infinite loop
    
    If this code dealing with possible conversion of inline plt sequences
    is ever executed, ld will hang.  A binary with such sequences and of
    code size larger than approximately 90% the reach of an unconditional
    branch is the trigger.  Oops.
    
            * elf64-ppc.c (ppc64_elf_inline_plt): Do increment rel in for loop.
    
    (cherry picked from commit 435edf0bf231240ccecb474b74ebb49dc8db2633)
    (cherry picked from commit de9c1b7cfe6e57ea8b677dc2de06e83de50f47c2)

 bfd/ChangeLog   | 4 ++++
 bfd/elf64-ppc.c | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

commit 4ef60dbc38a84e5311f094df6a2453a64ee45031 (tag: gentoo/binutils-2.34-2)
Author: GDB Administrator <gdbadmin@sourceware.org>
Date:   Fri Feb 28 00:02:45 2020 +0000

    Automatic date update in version.in

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

commit 81f4cd43fb87b85effb16a4660ccd636ea56c74a
Author: Alan Modra <amodra@gmail.com>
Date:   Wed Feb 19 13:10:47 2020 +1030

    Adjust PR25355 testcase
    
            * testsuite/ld-plugin/pr25355.d: Allow alpha-linux nm result.
    
    (cherry picked from commit 2e3cd5d013cee36c5bc26c0468d471878300ed22)

 ld/ChangeLog                     | 6 ++++++
 ld/testsuite/ld-plugin/pr25355.d | 4 ++--
 2 files changed, 8 insertions(+), 2 deletions(-)

commit 6200c4f27fe56aa1a9b1722003171cd0f3f1ae0e
Author: Alan Modra <amodra@gmail.com>
Date:   Thu Feb 27 17:28:47 2020 +1030

    Re: PR24511, nm should not mark symbols in .init_array as "t"
    
            PR 24511
            * syms.c (bfd_decode_symclass): Reverse order of coff_section_type
            and decode_section_type calls.

 bfd/ChangeLog | 6 ++++++
 bfd/syms.c    | 4 ++--
 2 files changed, 8 insertions(+), 2 deletions(-)

commit 6b42dfcfdfd9534802ac68ca268f3115844e5e87
Author: GDB Administrator <gdbadmin@sourceware.org>
Date:   Wed Feb 26 00:01:17 2020 +0000

    Automatic date update in version.in

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

commit e463d55a635360aaaa5e3c05b85fc304ac769e69
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Tue Feb 25 03:30:33 2020 -0800

    Don't call lto-wrapper for ar and ranlib
    
    Since ar and ranlib don't need to know symbol types to work properly,
    we should avoid calling lto-wrapper for them to speed them up.
    
    bfd/
    
            PR binutils/25584
            * plugin.c (need_lto_wrapper_p): New.
            (bfd_plugin_set_program_name): Add an int argument to set
            need_lto_wrapper_p.
            (get_lto_wrapper): Return FALSE if need_lto_wrapper_p isn't
            set.
            * plugin.h (bfd_plugin_set_program_name): Add an int argument.
    
    binutils/
    
            PR binutils/25584
            * ar.c (main): Pass 0 to bfd_plugin_set_program_name.
            * nm.c (main): Pass 1 to bfd_plugin_set_program_name.
    
    (cherry picked from commit ecda90163e2b0a6f0be96e3fc262c28820a27211)

 bfd/ChangeLog      | 10 ++++++++++
 bfd/plugin.c       | 22 ++++++++++++++--------
 bfd/plugin.h       |  2 +-
 binutils/ChangeLog |  6 ++++++
 binutils/ar.c      |  2 +-
 binutils/nm.c      |  2 +-
 6 files changed, 33 insertions(+), 11 deletions(-)

commit 6ac602a1a6b0fa12d08b15c9f107ed64b99f5e26
Author: GDB Administrator <gdbadmin@sourceware.org>
Date:   Sun Feb 23 00:02:32 2020 +0000

    Automatic date update in version.in

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

commit a1ee354a376d2790ef4e7eadc9683910e0763598
Author: Alan Modra <amodra@gmail.com>
Date:   Sat Feb 22 12:46:33 2020 +1030

    PR25585, PHDR segment not covered by LOAD segment
    
    I closed this bug as invalid, but I think it is worth mentioning in NEWS
    that older linkers didn't check PT_PHDR very well.  The patch also allows
    people to force an output file with --noinhibit-exec after the error.
    
    bfd/
            PR 25585
            * elf.c (assign_file_positions_for_load_sections): Continue linking
            on "PHDR segment not covered by LOAD segment" errors.
    ld/
            PR 25585
            * NEWS: Mention better "PHDR segment not covered by LOAD segment"
            checking.
    
    (cherry picked from commit 7b3c27152b5695177a2cd5adc0d7b0255f99aca0)

 bfd/ChangeLog | 6 ++++++
 bfd/elf.c     | 6 +++++-
 ld/ChangeLog  | 6 ++++++
 ld/NEWS       | 6 ++++++
 4 files changed, 23 insertions(+), 1 deletion(-)

commit fadc73335d670e669ed3630535cc8846d653eed6
Author: GDB Administrator <gdbadmin@sourceware.org>
Date:   Thu Feb 20 00:01:35 2020 +0000

    Automatic date update in version.in

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

commit a80cbcf49ccc278d3cffde6b693e71392901fa2e
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Wed Feb 19 03:29:51 2020 -0800

    plugin: Call dlclose before return in try_load_plugin
    
    Since plugin can be used only once in try_load_plugin, call dlclose
    before return.
    
            PR binutils/25355
            * plugin.c (plugin_list_entry): Remove handle.
            (try_load_plugin): Call dlclose before return.
    
    (cherry picked from commit dcf06b89b9129da6988878a77afdd02d3acc2e30)

 bfd/ChangeLog |  6 ++++++
 bfd/plugin.c  | 39 ++++++++++++++++++---------------------
 2 files changed, 24 insertions(+), 21 deletions(-)

commit 64332275e00d7ba319bf580434522d2b37b9f743
Author: GDB Administrator <gdbadmin@sourceware.org>
Date:   Mon Feb 17 00:01:50 2020 +0000

    Automatic date update in version.in

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

commit 67ecce73970e7f33b5cfe21f6a753a4dd18caa04
Author: Nick Clifton <nickc@redhat.com>
Date:   Sun Feb 16 11:33:15 2020 +0000

    Import fixes for using the LTO plugin with nm.
    
      PR 25355
    
    bfd:
     2020-02-13  H.J. Lu  <hongjiu.lu@intel.com>
    
     * plugin.c (try_load_plugin): Make plugin_list_iter an argument
     and use it if it isn't NULL.  Remove has_plugin_p argument.  Add
     a build_list_p argument.  Don't search plugin_list.  Short circuit
     when building the plugin list.
     (has_plugin): Renamed to has_plugin_list.
     (bfd_plugin_set_plugin): Don't set has_plugin.
     (bfd_plugin_specified_p): Check plugin_list instead.
     (build_plugin_list): New function.
     (load_plugin): Call build_plugin_list and use plugin_list.
    
     2020-02-11  H.J. Lu  <hongjiu.lu@intel.com>
    
     PR binutils/25355
     * plugin.c (try_claim): Always clean up for LTO wrapper.
     (try_load_plugin): Treat each object as independent.  Create a
     copy for plugin name.
    
     2020-02-11  H.J. Lu  <hongjiu.lu@intel.com>
    
     * plugin.c (add_symbols): Clear plugin_data memory.
    
     2020-02-10  H.J. Lu  <hongjiu.lu@intel.com>
    
     PR binutils/25355
     * configure.ac (HAVE_EXECUTABLE_SUFFIX): New AC_DEFINE.
     (EXECUTABLE_SUFFIX): Likewise.
     * config.in: Regenerated.
     * configure: Likewise.
     * plugin.c (bfd_plugin_close_and_cleanup): Removed.
     (plugin_list_entry): Add all_symbols_read, cleanup_handler,
     gcc, lto_wrapper, resolution_file, resolution_option, gcc_env,
     real_bfd, real_nsyms, real_syms, lto_nsyms and lto_syms.
     (get_lto_wrapper): New.
     (setup_lto_wrapper_env): Likewise.
     (current_plugin): Likewise.
     (register_all_symbols_read): Likewise.
     (register_cleanup): Likewise.
     (get_symbols): Likewise.
     (add_input_file): Likewise.
     (bfd_plugin_close_and_cleanup): Likewise.
     (claim_file): Removed.
     (register_claim_file): Set current_plugin->claim_file.
     (add_symbols): Make a copy of LTO symbols.  Set lto_nsyms and
     lto_syms in current_plugin.
     (try_claim): Use current_plugin->claim_file.  Call LTO plugin
     all_symbols_read handler.  Copy real symbols to plugin_data.
     Call LTO plugin cleanup handler.  Clean up for LTO wrapper.
     (try_load_plugin): Don't reuse the previous plugin for LTO
     wrapper.  Set up GCC LTO wrapper if possible.  Don't set
     plugin_list_iter->claim_file.
     (bfd_plugin_canonicalize_symtab): Use real LTO symbols if
     possible.
     * plugin.h (plugin_data_struct): Add real_bfd, real_nsyms and
     real_syms.
    
    ld:
     2020-02-10  H.J. Lu  <hongjiu.lu@intel.com>
    
     PR binutils/25355
     * testsuite/ld-plugin/lto.exp: Run PR binutils/25355 test.
     * testsuite/ld-plugin/pr25355.c: New file.
     * testsuite/ld-plugin/pr25355.d: Likewise.
     * testsuite/lib/ld-lib.exp (run_cc_link_tests): Support compile
     only dump.

 bfd/ChangeLog                    |  60 ++++
 bfd/config.in                    |   6 +
 bfd/configure                    |  10 +
 bfd/configure.ac                 |   6 +
 bfd/plugin.c                     | 598 ++++++++++++++++++++++++++++++++++-----
 bfd/plugin.h                     |   3 +
 ld/ChangeLog                     |  12 +
 ld/testsuite/ld-plugin/lto.exp   |   5 +
 ld/testsuite/ld-plugin/pr25355.c |   2 +
 ld/testsuite/ld-plugin/pr25355.d |   4 +
 ld/testsuite/lib/ld-lib.exp      |   1 +
 11 files changed, 634 insertions(+), 73 deletions(-)

commit 466b94ccbcd69d0e4e981b56b458b0b6ad76615e
Author: GDB Administrator <gdbadmin@sourceware.org>
Date:   Wed Feb 12 00:02:01 2020 +0000

    Automatic date update in version.in

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

commit 862af06c5f11df1630bfb3ace9496c0f24fdef29
Author: Nick Clifton <nickc@redhat.com>
Date:   Tue Feb 11 15:55:25 2020 +0000

    Import a fix from the mainline sources that prevents a potential illegal memory access when parsing PE binaries.
    
            PR 25447
            * coffgen.c (_bfd_coff_close_and_cleanup): Do not clear the keep
            syms and keep strings flags as these may have been set in order to
            prevent a bogus call to free.

 bfd/ChangeLog | 9 +++++++++
 bfd/coffgen.c | 6 ++++--
 2 files changed, 13 insertions(+), 2 deletions(-)

commit d0e8cb9007d018436bc411d2c2b5e89ee494c534
Author: Nick Clifton <nickc@redhat.com>
Date:   Tue Feb 11 12:43:41 2020 +0000

    Fix building elf43-msp430.c on a 32-bit host.
    
            * elf32-msp430.c (msp430_final_link_relocate): Always use longs
            for addresses in print statements.
            (msp430_elf_relax_delete_bytes): Likewise.
            (msp430_elf_relax_add_words): Likewise.
            (msp430_elf_relax_section): Likewise.

 bfd/ChangeLog      | 10 ++++++++++
 bfd/elf32-msp430.c | 46 ++++++++++++++++++++++++++--------------------
 2 files changed, 36 insertions(+), 20 deletions(-)

commit 176a65459389fcd83fb1f0f1c932fcb3edb21f2f
Author: GDB Administrator <gdbadmin@sourceware.org>
Date:   Tue Feb 11 00:01:58 2020 +0000

    Automatic date update in version.in

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

commit 33eee427e2337681693ed7c59bbc92e89a1b713a
Author: Jozef Lawrynowicz <jozef.l@mittosystems.com>
Date:   Mon Feb 10 20:37:57 2020 +0000

    MSP430: Enable relaxation of jump instructions to hard-coded pcrel offsets
    
    This patch fixes execution failures which occur when the BR in a
    sequence such as:
      J<cond> 1f
      BR
      1:
    is relaxed to a JMP, and the pc-relative offset for the destination of
    the J<cond> instruction is hard-coded to be 2 words ahead of the
    instruction.
    The hard-coded offset will cause execution to jump 1 word ahead of where
    it should actually go.
    
    Instead we now detect the hard-coded offset is one we inserted earlier,
    and invert the condition, allowing us to remove the BR entirely.
    
    bfd/ChangeLog:
    
    2020-02-10  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
    
            * elf32-msp430.c (msp430_elf_relax_section): Before relaxing a branch,
            check if previous instruction matches a conditional jump inserted
            earlier. Invert conditional jump and delete branch in this case.
    
    (cherry picked from commit ac4280dad035bb98fba999c174314435aefdf1a0)

 bfd/ChangeLog      |  6 +++++
 bfd/elf32-msp430.c | 70 +++++++++++++++++++++++++++++++++++++++++++++---------
 2 files changed, 65 insertions(+), 11 deletions(-)

commit d9cab7cdf4dbb72bc95f2e8df74abe3210e340d9
Author: Jozef Lawrynowicz <jozef.l@mittosystems.com>
Date:   Mon Feb 10 20:33:21 2020 +0000

    MSP430: Enable relaxation of relocs in JMP instructions
    
    This patch fixes relocation overflows caused by an inability to relax
    unconditional JMP instructions to BR instructions.
    
    bfd/ChangeLog:
    
    2020-02-10  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
    
            * elf32-msp430.c (msp430_elf_relax_add_two_words): Rename to
            msp430_elf_relax_add_words. Support insertion of either one or two
            words.
            (msp430_elf_relax_section): Catch opcode of 0x3c00 when relocation
            needs to be grown. Handle insertion of branch instruction to replace
            jump.
    
    (cherry picked from commit 8d6cb116f47b5edb2a7c2fa540fcb9dbcd3effc2)

 bfd/ChangeLog      |  8 +++++
 bfd/elf32-msp430.c | 96 +++++++++++++++++++++++++++++++++++++-----------------
 2 files changed, 74 insertions(+), 30 deletions(-)

commit 2eb6e57ec56554c9ada1594a081cc6e68a5a62f7
Author: Jozef Lawrynowicz <jozef.l@mittosystems.com>
Date:   Mon Feb 10 20:27:36 2020 +0000

    MSP430: Add printf statements to assist with debugging during relaxation
    
    bfd/ChangeLog:
    
    2020-02-10  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
    
            * elf32-msp430.c (msp430_final_link_relocate): Add printf statements for
            debugging relocations.
            (msp430_elf_relax_delete_bytes): Likewise.
            (msp430_elf_relax_add_two_words): Likewise.
            (msp430_elf_relax_section): Likewise.
    
    (cherry picked from commit d60f54486a99e6b702cccdb16b3429f3524021fd)

 bfd/ChangeLog      | 10 ++++++
 bfd/elf32-msp430.c | 95 +++++++++++++++++++++++++++++++++++++++++++++++++++---
 2 files changed, 100 insertions(+), 5 deletions(-)

commit 22711d6d19abd038f24a29d569d51e05435c842f
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Mon Feb 10 08:37:22 2020 -0800

    x86: Accept Intel64 only instruction by default
    
    Commit d835a58baae720 disabled sysenter/sysenter in 64-bit mode by
    default.  By default, assembler should accept common, Intel64 only
    and AMD64 ISAs since there are no conflicts.
    
    gas/
    
            PR gas/25516
            * config/tc-i386.c (intel64): Renamed to ...
            (isa64): This.
            (match_template): Accept Intel64 only instruction by default.
            (i386_displacement): Updated.
            (md_parse_option): Updated.
            * c-i386.texi: Update -mamd64/-mintel64 documentation.
            * testsuite/gas/i386/i386.exp: Run x86-64-sysenter.  Pass
            -mamd64 to x86-64-sysenter-amd.
            * testsuite/gas/i386/x86-64-sysenter.d: New file.
    
    opcodes/
    
            PR gas/25516
            * i386-gen.c (opcode_modifiers): Replace AMD64 and Intel64
            with ISA64.
            * i386-opc.h (AMD64): Removed.
            (Intel64): Likewose.
            (AMD64): New.
            (INTEL64): Likewise.
            (INTEL64ONLY): Likewise.
            (i386_opcode_modifier): Replace amd64 and intel64 with isa64.
            * i386-opc.tbl (Amd64): New.
            (Intel64): Likewise.
            (Intel64Only): Likewise.
            Replace AMD64 with Amd64.  Update sysenter/sysenter with
            Cpu64 and Intel64Only.  Remove AMD64 from sysenter/sysenter.
            * i386-tbl.h: Regenerated.
    
    (cherry picked from commit 4b5aaf5f6992319c2c72e080a1a55842640b8732)

 gas/ChangeLog                            |   13 +
 gas/config/tc-i386.c                     |   40 +-
 gas/doc/c-i386.texi                      |    3 +-
 gas/testsuite/gas/i386/i386.exp          |    3 +-
 gas/testsuite/gas/i386/x86-64-sysenter.d |    5 +
 opcodes/ChangeLog                        |   18 +
 opcodes/i386-gen.c                       |    3 +-
 opcodes/i386-opc.h                       |   17 +-
 opcodes/i386-opc.tbl                     |   20 +-
 opcodes/i386-tbl.h                       | 7850 +++++++++++++++---------------
 10 files changed, 4019 insertions(+), 3953 deletions(-)

commit 1a46a016eb33316c0fc231e196acf174184195a6
Author: Richard Sandiford <richard.sandiford@arm.com>
Date:   Fri Jan 31 08:03:56 2020 +0000

    aarch64: Fix MOVPRFX markup for bf16 conversions
    
    bfcvt converts a .S input to a .H output, so any predicated movprfx
    needs to operate on .S rather than .H.  In common with SVE2 narrowing
    top operations, bfcvtnt doesn't accept movprfx.
    
    2020-02-10  Richard Sandiford  <richard.sandiford@arm.com>
    
    opcodes/
            * aarch64-tbl.h (aarch64_opcode): Set C_MAX_ELEM for SVE bfcvt.
            Remove C_SCAN_MOVPRFX for SVE bfcvtnt.
    
    gas/
            * testsuite/gas/aarch64/sve-bfloat-movprfx.s: Use .h rather than
            .s for the movprfx.
            * testsuite/gas/aarch64/sve-bfloat-movprfx.d: Update accordingly.
            * testsuite/gas/aarch64/sve-movprfx_28.d,
            * testsuite/gas/aarch64/sve-movprfx_28.l,
            * testsuite/gas/aarch64/sve-movprfx_28.s: New test.

 gas/ChangeLog                                  |  9 ++++++
 gas/testsuite/gas/aarch64/sve-bfloat-movprfx.d |  2 +-
 gas/testsuite/gas/aarch64/sve-bfloat-movprfx.s |  2 +-
 gas/testsuite/gas/aarch64/sve-movprfx_28.d     | 31 ++++++++++++++++++
 gas/testsuite/gas/aarch64/sve-movprfx_28.l     |  8 +++++
 gas/testsuite/gas/aarch64/sve-movprfx_28.s     | 45 ++++++++++++++++++++++++++
 opcodes/ChangeLog                              |  5 +++
 opcodes/aarch64-tbl.h                          |  4 +--
 8 files changed, 102 insertions(+), 4 deletions(-)

commit 6d866b9e6f440dc5521844c53199d0653ecf1f4e
Author: GDB Administrator <gdbadmin@sourceware.org>
Date:   Fri Feb 7 00:02:24 2020 +0000

    Automatic date update in version.in

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

commit 12e6153bef32347c02fba51fc478c74b83d4e7e5
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Thu Feb 6 07:50:16 2020 -0800

    [2.34] Mention x86 assembler options to align branches
    
            * NEWS: Mention x86 assembler options to align branches for
            binutils 2.34.
    
    (cherry picked from commit 5eb617a71463fa6810cd14f57adfe7a1efc93a96)

 gas/ChangeLog | 5 +++++
 gas/NEWS      | 5 +++++
 2 files changed, 10 insertions(+)

commit 5989e60e181d39f80ceba34ec15e54fbd99f73ea
Author: GDB Administrator <gdbadmin@sourceware.org>
Date:   Sun Feb 2 00:01:50 2020 +0000

    Automatic date update in version.in

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

commit e3e4cde84adebec91953a113d657ccb573f859fe (tag: gentoo/binutils-2.34-1)
Author: Andreas K. Hüttel <dilfridge@gentoo.org>
Date:   Sun Oct 13 05:25:28 2019 +0200

    Gentoo: ld: enable new dtags by default for linux/gnu targets
    
    Original author: Mike Frysinger <vapier@gentoo.org>
    
    The "new" dtags options have been around for 14+ years now, so for Linux
    and GNU targets, enable them by default.
    
    2012-01-21  Mike Frysinger  <vapier@gentoo.org>
    
            * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Set
            link_info.new_dtags to TRUE for linux/gnu targets.
            * NEWS: Mention new dtags default.
    
    2013-01-22  Roland McGrath  <mcgrathr@google.com>
    
            * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Set
            new_dtags to TRUE for *-*-nacl* targets.

 ld/emultempl/elf.em | 10 ++++++++++
 1 file changed, 10 insertions(+)

commit 9b9a037b9287387e2267707767b5ee9fbafdd7e3
Author: Andreas K. Hüttel <dilfridge@gentoo.org>
Date:   Wed Oct 11 21:56:53 2017 +0200

    [no patch] Gentoo: Add patch tarball generation script
    
    (cherry picked from commit 90427abb2aac0cc4ebcb73397cc3ad574c6fec5d)

 scripts/gentoo/0000-Gentoo-Git-is-development |  12 +++
 scripts/gentoo/9999-Gentoo-We-make-a-release  |  12 +++
 scripts/gentoo/README.Gentoo.patches          |  31 +++++++
 scripts/gentoo/make-tarball.sh                | 118 ++++++++++++++++++++++++++
 4 files changed, 173 insertions(+)

commit 6eca574f16b9910b21ef8d2a9f9a54955dec5666
Author: Sergei Trofimovich <slyfox@gentoo.org>
Date:   Wed Sep 12 23:44:29 2018 +0100

    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>

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

commit 1fa26515d6d86ea385d1af1e4bb519c53066241d
Author: Andreas K. Hüttel <dilfridge@gentoo.org>
Date:   Mon Jul 16 12:20:37 2018 +0200

    Gentoo: Fix textrel warning format test

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

commit 978a1dc7ddbcf57f136266412834b8228c8aaaa3
Author: Andreas K. Hüttel <dilfridge@gentoo.org>
Date:   Sun Jun 3 22:36:40 2018 +0200

    Gentoo: Fix test for precise textrel warning message, after non-shared object change
    
    (Broken by "Gentoo: Restore TEXTREL warnings for non-shared objects")

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

commit 2a0b8e2f38df0196f88c76e03e64bb6d43ce317c
Author: Sergei Trofimovich <slyfox@gentoo.org>
Date:   Thu Mar 1 12:35:03 2018 +0100

    Gentoo: Restore TEXTREL warnings for non-shared objects

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

commit 4e5dde17a245dbb930fa0405f33af99cc3a5ef1f
Author: Andreas K. Hüttel <dilfridge@gentoo.org>
Date:   Sun Jun 3 21:40:36 2018 +0200

    Gentoo: Pass --no-warn-shared-textrel to ld in its testsuite

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

commit 1222895ec55f34a97fb2cbcd80d421e24308f618
Author: Andreas K. Hüttel <dilfridge@gentoo.org>
Date:   Wed Oct 18 00:44:49 2017 +0200

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

 ld/testsuite/lib/ld-lib.exp | 769 +++++++++++++++++++++++++++++++++++++++++++-
 1 file changed, 767 insertions(+), 2 deletions(-)

commit 141a267d14bc4fdd619f6050093575c00619312c
Author: Mike Frysinger <vapier@gentoo.org>
Date:   Tue Jul 5 20:24:00 2016 +0545

    Gentoo: opcodes: link against libbfd.la for rpath deps
    
    The reason opcodes doesn't link against libbfd.la is to workaround a
    libtool bug where it uses installed -L paths ahead of DESTDIR paths.
    The downside is that the library itself lacks rpath tags to find the
    right version of libbfd.so.
    
    Since Gentoo has patched the libtool bug for a while, we don't need
    the workaround.  Use the .la file so we get the rpath tags.
    
    URL: https://bugs.gentoo.org/563934
    (cherry picked from commit 662586237b0b00ee881e79b56f6234ff36e8bfe6)

 opcodes/configure    | 2 +-
 opcodes/configure.ac | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

commit 53e83af1588ccbbfe3d565374524131b3d991282
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 1022f51d752d935f6c87327706800555e336fe88
Author: Mike Frysinger <vapier@gentoo.org>
Date:   Tue Oct 10 22:53:53 2017 +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)

 gold/options.cc | 33 +++++++++++++++++++++++++++++++++
 gold/options.h  |  7 +++++++
 ld/config.in    |  3 +++
 ld/configure    | 14 ++++++++++++++
 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, 146 insertions(+)

commit 8c32742613ab89d6cb0f582f02e1eddb533ea55d
Author: Andreas K. Hüttel <dilfridge@gentoo.org>
Date:   Sun Jun 3 21:12:16 2018 +0200

    Gentoo: Add an option --no-warn-shared-textrel (self-explanatory)

 ld/ld.texi  | 4 ++++
 ld/ldlex.h  | 1 +
 ld/lexsup.c | 6 ++++++
 3 files changed, 11 insertions(+)

commit 01345314ea0940cbc8b992272108372ac156daa5
Author: Mike Frysinger <vapier@gentoo.org>
Date:   Mon May 16 22:10:19 2005 -0400

    Gentoo: ld: always warn about textrels in files
    
    textrels are bad for forcing copy-on-write (this affects everyone), and for
    security/runtime code generation, this affects security ppl.  But in either
    case, it doesn't matter who needs textrels, it's the very fact that they're
    needed at all.
    
    (cherry picked from commit cd6411ad57aab78686f67cbbc1ed70ee810ad335)

 ld/ldmain.c | 1 +
 1 file changed, 1 insertion(+)

commit 871ac467f59d9df1a911d29126d93a3014898e15
Author: Nick Clifton <nickc@redhat.com>
Date:   Sat Feb 1 13:02:47 2020 +0000

    Re-enable development.

 bfd/ChangeLog          |  9 +++++++++
 bfd/configure          | 20 ++++++++++----------
 bfd/development.sh     |  2 +-
 bfd/po/bfd.pot         |  2 +-
 bfd/version.m4         |  2 +-
 binutils/ChangeLog     |  5 +++++
 binutils/configure     | 20 ++++++++++----------
 gas/ChangeLog          |  5 +++++
 gas/configure          | 20 ++++++++++----------
 gprof/ChangeLog        |  5 +++++
 gprof/configure        | 20 ++++++++++----------
 ld/ChangeLog           |  5 +++++
 ld/configure           | 20 ++++++++++----------
 opcodes/ChangeLog      |  5 +++++
 opcodes/configure      | 20 ++++++++++----------
 opcodes/po/opcodes.pot |  2 +-
 16 files changed, 98 insertions(+), 64 deletions(-)
