commit 58d19d22603bf9c3c84bfe8a86e38318df27163d (HEAD -> gentoo/binutils-2.30)
Author:     GDB Administrator <gdbadmin@sourceware.org>
AuthorDate: Tue Jun 12 00:02:33 2018 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Tue Jun 12 22:54:19 2018 +0200

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

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

commit eb232ff807972da9f61cf9ada3100af4f64d83aa
Author:     H.J. Lu <hjl.tools@gmail.com>
AuthorDate: Mon May 28 10:46:16 2018 -0700
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Tue Jun 12 22:54:19 2018 +0200

    x86-64: Add TLSDESC fields to elf_x86_lazy_plt_layout
    
    ENDBR64 is added to the special TLSDESC entry, which is similar to the
    PLT0 entry, in the x86-64 lazy procedure linkage table to support Intel
    CET.  The NaCl PLT is different from the normal PLT.  This patch adds
    plt_tlsdesc_entry, plt_tlsdesc_entry_size, plt_tlsdesc_got1_offset,
    plt_tlsdesc_got2_offset, plt_tlsdesc_got1_insn_end and
    plt_tlsdesc_got2_insn_end to elf_x86_lazy_plt_layout to support both
    normal and NaCl TLSDESC entries.  This fixed
    
    FAIL: TLS descriptor -fpic -shared transitions
    
    for x86_64-nacl.
    
            * elf32-i386.c (elf_i386_lazy_plt): Add plt_tlsdesc_entry,
            plt_tlsdesc_entry_size, plt_tlsdesc_got1_offset,
            plt_tlsdesc_got2_offset, plt_tlsdesc_got1_insn_end and
            plt_tlsdesc_got2_insn_end for TLSDESC entry.
            (elf_i386_lazy_ibt_plt): Likewise.
            (elf_i386_nacl_plt): Likewise.
            * elf64-x86-64.c (tlsdesc_plt_entry): Moved and renamed to ...
            (elf_x86_64_tlsdesc_plt_entry): This.
            (elf_x86_64_lazy_plt): Add plt_tlsdesc_entry,
            plt_tlsdesc_entry_size, plt_tlsdesc_got1_offset,
            plt_tlsdesc_got2_offset, plt_tlsdesc_got1_insn_end and
            plt_tlsdesc_got2_insn_end for TLSDESC entry.
            (elf_x86_64_lazy_bnd_plt): Likewise.
            (elf_x86_64_lazy_ibt_plt): Likewise.
            (elf_x32_lazy_ibt_plt): Likewise.
            (elf_x86_64_nacl_plt): Likewise.
            (elf_x86_64_finish_dynamic_sections): Use plt_tlsdesc_entry,
            plt_tlsdesc_entry_size, plt_tlsdesc_got1_offset,
            plt_tlsdesc_got2_offset, plt_tlsdesc_got1_insn_end and
            plt_tlsdesc_got2_insn_end to update TLSDESC entry.
            * elfxx-x86.h (elf_x86_lazy_plt_layout): Update comments.
            Add plt_tlsdesc_entry, plt_tlsdesc_entry_size,
            plt_tlsdesc_got1_offset, plt_tlsdesc_got2_offset,
            plt_tlsdesc_got1_insn_end and plt_tlsdesc_got2_insn_end.
            (elf_x86_non_lazy_plt_layout): Update comments.
            (elf_x86_plt_layout): Likewise.
    
    (cherry picked from commit 92e68c1d65f844c0027f471a0c9e1722d781ef7d)
    (cherry picked from commit 32647affe56d7e2d611f474f241bb3b33ef66cfb)

 bfd/ChangeLog      | 29 +++++++++++++++++++++++++++
 bfd/elf32-i386.c   | 18 +++++++++++++++++
 bfd/elf64-x86-64.c | 58 ++++++++++++++++++++++++++++++++++++++++++------------
 bfd/elfxx-x86.h    | 33 +++++++++++++++++++++----------
 4 files changed, 115 insertions(+), 23 deletions(-)

commit 16ed4d8bd9a3c6921d8d1c2cc882cc89521f06de
Author:     Nick Clifton <nickc@redhat.com>
AuthorDate: Tue Jun 12 13:22:24 2018 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Tue Jun 12 22:54:19 2018 +0200

    Fix the PR22983 test so that it will work regardless of the order of the symbols in the dynamic symbol table.
    
    See email thread starting here for more details:
      https://sourceware.org/ml/binutils/2018-06/msg00036.html
    
            PR 22983
            * testsuite/ld-plugin/lto.exp: Use individual tests to check for
            the presence of each expected symbol.
            * testsuite/ld-plugin/pr22983.1.d: New file.
            * testsuite/ld-plugin/pr22983.2.d: New file.
            * testsuite/ld-plugin/pr22983.3.d: New file.
            * testsuite/ld-plugin/pr22983.4.d: New file.
    
    (cherry picked from commit 212b9bc7b4cfa7702005928dc3bffb3ba3a6e19a)

 ld/testsuite/ld-plugin/lto.exp     | 20 ++++++++++++++++++--
 ld/testsuite/ld-plugin/pr22983.1.d |  6 ++++++
 ld/testsuite/ld-plugin/pr22983.2.d |  6 ++++++
 ld/testsuite/ld-plugin/pr22983.3.d |  6 ++++++
 ld/testsuite/ld-plugin/pr22983.4.d |  5 +++++
 5 files changed, 41 insertions(+), 2 deletions(-)

commit c3f53c8456ca4904bd0caba992fbf2755d19ca32
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: Sun Jun 3 22:36:40 2018 +0200
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Tue Jun 12 22:54:19 2018 +0200

    Fix test for precise textrel warning message
    
    Broken by 69f78933fe2438db6048959359e83e812dd0ddcd
    (which was Gentoo: Restore TEXTREL warnings for non-shared objects)

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

commit 87e4b4395be3c537c333964e6f0d5206c0d63388
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: Sun Jun 3 21:40:36 2018 +0200
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Tue Jun 12 22:54:19 2018 +0200

    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 841ef2b15b90cf4b378128c0412871471875d7c0
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: Sun Jun 3 21:33:30 2018 +0200
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Tue Jun 12 22:54:19 2018 +0200

    Revert "Gentoo: We can't test for textrel warnings if we ignore them in the testsuite"
    
    This reverts commit 8e0dc8e9354d5f99024bbb814ff38ef7763e085b.

 ld/testsuite/ld-elf/shared.exp | 12 ++++++++++++
 1 file changed, 12 insertions(+)

commit e6a3d2e8d9eb3e241e8245ab3971467dbb697a76
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: Sun Jun 3 21:28:01 2018 +0200
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Tue Jun 12 22:54:19 2018 +0200

    Revert "Gentoo: Disable another test that checks for textrel warnings (which we sed out)"
    
    This reverts commit 2cd1123d062f33cf1f5aaae3ccd5c793ce04a70b.

 ld/testsuite/ld-elf/shared.exp | 13 +++++++++++++
 1 file changed, 13 insertions(+)

commit 54ccfc8aa406cd4bd080072e2825a13f9c5b6e0c
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: Sun Jun 3 21:21:51 2018 +0200
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Tue Jun 12 22:54:19 2018 +0200

    Revert "Gentoo: Disable failing test ld-x86-64/x86-64.exp pie1.d"
    
    This reverts commit f5ef2c33e00b226b9f012954f71379662ef73b87.

 ld/testsuite/ld-x86-64/x86-64.exp | 1 +
 1 file changed, 1 insertion(+)

commit 53104f21fa0caf0f8cbbf047e1e52a594dae3b59
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: Sun Jun 3 21:21:33 2018 +0200
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Tue Jun 12 22:54:19 2018 +0200

    Revert "Gentoo: We can't test for textrel warnings if we regsub out the warnings."
    
    This reverts commit 84a3f5b885c1b9217e61022b8494358f419aa184.

 ld/testsuite/ld-i386/i386.exp | 1 +
 1 file changed, 1 insertion(+)

commit b50edcbcca5925ac69df4e07b3308dbaf6b58122
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: Sun Jun 3 21:20:23 2018 +0200
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Tue Jun 12 22:54:19 2018 +0200

    Revert "Gentoo: Adapt the testsuite to our enhanced textrel warnings"
    
    This reverts commit d3bed0053780201771412188649c6634ba7541e9 (and a bit more older stuff)

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

commit f9d47611fbd65c0ad8d668137343c61dc0203845
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: Sun Jun 3 21:12:16 2018 +0200
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Tue Jun 12 22:54:19 2018 +0200

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

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

commit c7c8ba7c3bc15bcbeb5f7c2f87824403a9dbc938
Author:     GDB Administrator <gdbadmin@sourceware.org>
AuthorDate: Fri May 25 00:02:39 2018 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Tue Jun 12 22:54:19 2018 +0200

    Automatic date update in version.in
    
    (cherry picked from commit 50da4f7b7ec194465f99d567feb935e7427377f0)

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

commit 4239a66ff04154a69c71fe2f34e77d9b47c1f4d4
Author:     H.J. Lu <hjl.tools@gmail.com>
AuthorDate: Mon May 21 19:25:19 2018 -0700
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Tue Jun 12 22:54:19 2018 +0200

    Mark section in a section group with SHF_GROUP
    
    All sections in a section group should be marked with SHF_GROUP.  But
    some tools generate broken objects without SHF_GROUP.  This patch fixes
    them up for objcopy and strip.
    
            PR binutils/23199
            * elf.c (setup_group): Mark section in a section group with
            SHF_GROUP.
    
    (cherry picked from commit bae363f1146378207e1dffe5f23845644a1d0b7a)
    (cherry picked from commit e2bcabadb8bc02d971b30644d91a70ec4c4b825d)

 bfd/ChangeLog |  6 ++++++
 bfd/elf.c     | 10 +++++++++-
 2 files changed, 15 insertions(+), 1 deletion(-)

commit 38575f4ea080e512358da8cd29c71568b0bc1a65
Author:     H.J. Lu <hjl.tools@gmail.com>
AuthorDate: Fri May 18 14:23:41 2018 -0700
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Tue Jun 12 22:54:19 2018 +0200

    x86: Don't set eh->local_ref to 1 for versioned symbol
    
    bfd_hide_sym_by_version can't be used to check if a versioned symbol is
    hidden.  It has to be synced with _bfd_elf_link_assign_sym_version to
    get the correct answer.
    
    bfd/
    
            PR ld/23194
            * elfxx-x86.c (_bfd_x86_elf_link_symbol_references_local): Don't
            set eh->local_ref to 1 if a symbol is versioned and there is a
            version script.
    
    ld/
    
            PR ld/23194
            * testsuite/ld-i386/i386.exp: Run pr23194.
            * testsuite/ld-x86-64/x86-64.exp: Likewise.
            * testsuite/ld-i386/pr23194.d: New file.
            * testsuite/ld-i386/pr23194.map: Likewise.
            * testsuite/ld-i386/pr23194.s: Likewise.
            * testsuite/ld-x86-64/pr23194.d: Likewise.
            * testsuite/ld-x86-64/pr23194.map: Likewise.
            * testsuite/ld-x86-64/pr23194.s: Likewise.
    
    (cherry picked from commit 97373b2eba6077d5059370a95931b93a8b118813)
    (cherry picked from commit 88193e0fdef1646fec917bd1ebd1f1049cae660e)

 bfd/ChangeLog                      |  7 +++++++
 bfd/elfxx-x86.c                    |  7 +++++--
 ld/ChangeLog                       | 12 ++++++++++++
 ld/testsuite/ld-i386/i386.exp      |  1 +
 ld/testsuite/ld-i386/pr23194.d     |  7 +++++++
 ld/testsuite/ld-i386/pr23194.map   |  6 ++++++
 ld/testsuite/ld-i386/pr23194.s     | 12 ++++++++++++
 ld/testsuite/ld-x86-64/pr23194.d   |  7 +++++++
 ld/testsuite/ld-x86-64/pr23194.map |  6 ++++++
 ld/testsuite/ld-x86-64/pr23194.s   | 12 ++++++++++++
 ld/testsuite/ld-x86-64/x86-64.exp  |  1 +
 11 files changed, 76 insertions(+), 2 deletions(-)

commit 086cc3047bc3e9c72996f36606a7c28eaee7f5e2
Author:     H.J. Lu <hjl.tools@gmail.com>
AuthorDate: Fri May 18 06:43:19 2018 -0700
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Tue Jun 12 22:54:19 2018 +0200

    x86: Don't set eh->local_ref to 1 for linker defined symbols
    
    Since symbols created by HIDDEN and PROVIDE_HIDDEN assignments in
    linker script may be marked as defined, but not hidden, we can't
    set eh->local_ref to 1 in _bfd_x86_elf_link_symbol_references_local.
    
    Also R_386_GOT32X should be handled as just like R_386_GOT32 when
    relocating a section.  The input R_386_GOT32X relocations, which
    can be relaxed, should have been converted to R_386_PC32, R_386_32
    or R_386_GOTOFF.
    
    bfd/
    
            PR ld/23189
            * elf32-i386.c (elf_i386_relocate_section): Handle R_386_GOT32X
            like R_386_GOT32.
            * elfxx-x86.c (_bfd_x86_elf_link_symbol_references_local): Don't
            set eh->local_ref to 1 for linker defined symbols.
    
    ld/
    
            PR ld/23189
            * testsuite/ld-i386/i386.exp: Run pr23189.
            * testsuite/ld-x86-64/x86-64.exp: Likewise.
            * testsuite/ld-i386/pr23189.d: New file.
            * testsuite/ld-i386/pr23189.s: Likewise.
            * testsuite/ld-i386/pr23189.t: Likewise.
            * testsuite/ld-x86-64/pr23189.d: Likewise.
            * testsuite/ld-x86-64/pr23189.s: Likewise.
            * testsuite/ld-x86-64/pr23189.t: Likewise.
    
    (cherry picked from commit 011b32fd4270fb7111ee1f63695ccd44562ee7df)
    (cherry picked from commit 19dd615652084b2bfd81a0497864e193608037a0)

 bfd/ChangeLog                     |  8 ++++++
 bfd/elf32-i386.c                  | 59 ---------------------------------------
 bfd/elfxx-x86.c                   |  6 +++-
 ld/ChangeLog                      | 12 ++++++++
 ld/testsuite/ld-i386/i386.exp     |  1 +
 ld/testsuite/ld-i386/pr23189.d    |  7 +++++
 ld/testsuite/ld-i386/pr23189.s    |  5 ++++
 ld/testsuite/ld-i386/pr23189.t    | 11 ++++++++
 ld/testsuite/ld-x86-64/pr23189.d  |  7 +++++
 ld/testsuite/ld-x86-64/pr23189.s  |  5 ++++
 ld/testsuite/ld-x86-64/pr23189.t  | 11 ++++++++
 ld/testsuite/ld-x86-64/x86-64.exp |  1 +
 12 files changed, 73 insertions(+), 60 deletions(-)

commit 5933f5513ce8a6eaeb3fbe34f44b9f2da649b280
Author:     Alan Modra <amodra@gmail.com>
AuthorDate: Fri May 18 17:09:45 2018 +0930
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Tue Jun 12 22:54:19 2018 +0200

    PR23199, Invalid SHT_GROUP entry leads to group confusion
    
    This patch prevents elf_next_in_group list pointer confusion when
    SHT_GROUP sections specify other SHT_GROUP sections in their list of
    group sections.
    
            PR 23199
            * elf.c (setup_group): Formatting.  Check that SHT_GROUP entries
            don't point at other SHT_GROUP sections.  Set shdr corresponding
            to invalid entry, to NULL rather than section 0.  Identify
            SHT_GROUP section index when reporting an error.  Cope with NULL
            shdr pointer.
    
    (cherry picked from commit 4bba0fb1c6d391a217c25e44398a7e1c7090155f)
    (cherry picked from commit e3d435293f0dd45247e8057574389f322f5fe5a2)

 bfd/ChangeLog |  9 +++++++++
 bfd/elf.c     | 17 +++++++++++------
 2 files changed, 20 insertions(+), 6 deletions(-)

commit 829d7ae8eb24bd92be321593fbc34b0279e22ad5
Author:     Tamar Christina <tamar.christina@arm.com>
AuthorDate: Wed May 16 12:13:42 2018 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Tue Jun 12 22:54:19 2018 +0200

    Fix disassembly mask for vector sdot on AArch64.
    
    This patch corrects the disassembly masks for by element dot product
    instructions. The bit 10 was wrong and supposed to be 1.
    
    This caused incorrect disassembly of instructions in the unallocated space to
    disassemble as dot product instructions.
    
    No encoding errors can arrise from this issue.
    
    opcodes/
    
            PR binutils/23109
            * aarch64-tbl.h (aarch64_opcode_table): Correct sdot and udot.
            * aarch64-dis-2.c: Regenerate.
    
    (cherry picked from commit ff329288d503d392de11f34ce64c7fdd3c62e50f)
    (cherry picked from commit 238fb05ff029973ef20c59aef6b197bb21d941e5)

 opcodes/ChangeLog       |   8 ++
 opcodes/aarch64-dis-2.c | 336 +++++++++++++++++++++++++-----------------------
 opcodes/aarch64-tbl.h   |   4 +-
 3 files changed, 188 insertions(+), 160 deletions(-)

commit 9693c798662121879a3e2c9eb079adadc29c889c
Author:     Christophe Guillon <christophe.guillon@st.com>
AuthorDate: Tue May 15 12:27:45 2018 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Tue Jun 12 22:54:19 2018 +0200

    Fix uninitialised memory acccess in COFF bfd backend
    
    Backported from master.
    
    2018-05-15  Christophe Guillon  <christophe.guillon@st.com>
    
            * coffcode.h (coff_bigobj_swap_aux_in): Make sure that all fields
            of the aux structure are initialised.
    
    Change-Id: I81be255ac6611afbe00995fac550e98e6a07e5df
    (cherry picked from commit d520d4956e59bd4759932a4d1742828f88c0dd7a)

 bfd/ChangeLog  | 5 +++++
 bfd/coffcode.h | 3 +++
 2 files changed, 8 insertions(+)

commit 03ecf180abbdd2596bf9a077e0cdf2aaa34a2245
Author:     Nick Clifton <nickc@redhat.com>
AuthorDate: Tue May 15 13:17:59 2018 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Tue Jun 12 22:54:19 2018 +0200

    Add new Portuguese translation for the bfd sub-directory.
    
            * po/pt.po: New Portuguese translation.
            * configure.ac (ALL_LINGUAS): Add pt.
            * configure: Regenerate.
    
    (cherry picked from commit d7833f9f85636b077086e1fd5fdf67a8464bcc7e)

 bfd/ChangeLog    |    6 +
 bfd/configure    |    2 +-
 bfd/configure.ac |    2 +-
 bfd/po/pt.po     | 8766 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 8774 insertions(+), 2 deletions(-)

commit ed50bd263493b586cc19957c76edcfe68b357ee8 (tag: gentoo/binutils-2.30-2)
Author:     Alan Modra <amodra@gmail.com>
AuthorDate: Sat Jan 27 08:19:33 2018 +1030
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sun Apr 29 21:34:52 2018 +0200

    PR22741, objcopy segfault on fuzzed COFF object
    
            PR 22741
            * coffgen.c (coff_pointerize_aux): Ensure auxent tagndx is in
            range before converting to a symbol table pointer.

 bfd/coffgen.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

commit 130162826ac1c110cd523ec0e68ed6af6cde7567
Author:     Nick Clifton <nickc@redhat.com>
AuthorDate: Wed Feb 28 10:13:54 2018 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sun Apr 29 21:32:36 2018 +0200

    Fix potential integer overflow when reading corrupt dwarf1 debug information.
    
            PR 22894
            * dwarf1.c (parse_die): Check the length of form blocks before
            advancing the data pointer.

 bfd/dwarf1.c | 17 +++++++++++++++--
 1 file changed, 15 insertions(+), 2 deletions(-)

commit 61d93258ee3b44fee85e85dc5eeaf84a13b49a42
Author:     Nick Clifton <nickc@redhat.com>
AuthorDate: Wed Feb 28 11:50:49 2018 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sun Apr 29 21:25:43 2018 +0200

    Catch integer overflows/underflows when parsing corrupt DWARF FORM blocks.
    
            PR 22895
            PR 22893
            * dwarf2.c (read_n_bytes): Replace size parameter with dwarf_block
            pointer.  Drop unused abfd parameter.  Check the size of the block
            before initialising the data field.  Return the end pointer if the
            size is invalid.
            (read_attribute_value): Adjust invocations of read_n_bytes.

 bfd/dwarf2.c | 36 +++++++++++++++++++++---------------
 1 file changed, 21 insertions(+), 15 deletions(-)

commit 8c6f0f96daa5b43a92b023556069b1e04e4be050
Author:     Nick Clifton <nickc@redhat.com>
AuthorDate: Thu Mar 1 16:14:08 2018 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sun Apr 29 21:18:34 2018 +0200

    Prevent illegal memory accesses triggerd by intger overflow when parsing corrupt DWARF information on a 32-bit host.
    
            PR 22905
            * dwarf.c (display_debug_ranges): Check that the offset loaded
            from the range_entry structure is valid.

 binutils/dwarf.c | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

commit 98e5bab02e2686fd1a57d9b92b8f53298f4ab1b9
Author:     Alan Modra <amodra@gmail.com>
AuthorDate: Wed Feb 28 22:09:50 2018 +1030
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sun Apr 29 21:07:55 2018 +0200

    PR22887, null pointer dereference in aout_32_swap_std_reloc_out
    
            PR 22887
            * aoutx.h (swap_std_reloc_in): Correct r_index bound check.

 bfd/aoutx.h | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

commit 438f18485682c636d761f408ab41d2c730445a01
Author:     Alan Modra <amodra@gmail.com>
AuthorDate: Thu Feb 1 18:01:00 2018 +1030
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sun Apr 29 21:01:16 2018 +0200

    PR22769, crash when running 32-bit objdump on corrupted file
    
            PR 22769
            * objdump.c (load_specific_debug_section): Check for overflow
            when adding one to section size for a string section terminator.

 binutils/objdump.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

commit 85462893039e55735fc0f6301438f408e9dd76fb
Author:     Nick Clifton <nickc@redhat.com>
AuthorDate: Tue Feb 6 15:48:29 2018 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sun Apr 29 20:57:39 2018 +0200

    Prevent attempts to call strncpy with a zero-length field by chacking the size of debuglink sections.
    
            PR 22794
            * opncls.c (bfd_get_debug_link_info_1): Check the size of the
            section before attempting to read it in.
            (bfd_get_alt_debug_link_info): Likewise.

 bfd/opncls.c | 22 +++++++++++++++++-----
 1 file changed, 17 insertions(+), 5 deletions(-)

commit c08e2a085f647fb012b4c21b5ee1a5b9245018b4
Author:     GDB Administrator <gdbadmin@sourceware.org>
AuthorDate: Sun Apr 29 00:03:00 2018 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sun Apr 29 18:10:02 2018 +0200

    Automatic date update in version.in

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

commit d7df3303a61932354d1a7a90c8a46b517c910e10
Author:     Alan Modra <amodra@gmail.com>
AuthorDate: Fri Apr 27 15:46:40 2018 +0930
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sun Apr 29 18:09:09 2018 +0200

    PR23123, PowerPC32 ifunc regression
    
    Two of the gcc ifunc tests fail for ppc32, due to my pr22374 fix being
    a little too enthusiastic in trimming PLT entries.  ppc64 doesn't have
    the same failures because ppc64_elf_check_relocs happens to set
    needs_plt for any ifunc reloc.
    
            PR 23123
            PR 22374
            * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Don't drop plt
            relocs for ifuncs.
            * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Comment fixes.
    
    (cherry picked from commit 04383fd15b3b82d824df9c72e3ade88c43bfb5ac)

 bfd/ChangeLog   | 8 ++++++++
 bfd/elf32-ppc.c | 6 +++---
 bfd/elf64-ppc.c | 8 ++++----
 3 files changed, 15 insertions(+), 7 deletions(-)

commit 99a102bc532ad9f85bb413b8ac883836b151e31d
Author:     Tamar Christina <tamar.christina@arm.com>
AuthorDate: Wed Apr 25 13:37:30 2018 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sun Apr 29 18:09:09 2018 +0200

    Fix the mask for the sqrdml(a|s)h instructions.
    
    Rn is supposed to have a 5 bit range but instead was given 4 bits
    causing these instructions to disassemble as unknown instructions.
    
    opcodes/
    
            * aarch64-tbl.h (sqrdmlah, sqrdmlsh): Fix masks.
    
    gas/
    
            * testsuite/gas/aarch64/rdma.s: Test for larger register numbers.
            * testsuite/gas/aarch64/rdma.d: Update results.
            * testsuite/gas/aarch64/rdma-directive.d: Likewise.
    
    (cherry picked from commit 10bba94bd44045559cfd048cd34376090dd8107a)

 gas/ChangeLog                              |    7 +
 gas/testsuite/gas/aarch64/rdma-directive.d | 5080 +++++++++++++++++++++++++++-
 gas/testsuite/gas/aarch64/rdma.d           | 5080 +++++++++++++++++++++++++++-
 gas/testsuite/gas/aarch64/rdma.s           |   23 +-
 opcodes/ChangeLog                          |    5 +
 opcodes/aarch64-tbl.h                      |    4 +-
 6 files changed, 10072 insertions(+), 127 deletions(-)

commit 9250cbcc7719ced1d51f1cc808fdfd5c845f0cc7
Author:     H.J. Lu <hjl.tools@gmail.com>
AuthorDate: Fri Feb 9 08:44:42 2018 -0800
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sun Apr 29 18:09:09 2018 +0200

    x86: Add is_solaris to elf_x86_target_os
    
    Add is_solaris to elf_x86_target_os since Solaris is quite different.
    
            * elf32-i386.c (elf_i386_get_synthetic_symtab): Also handle
            is_solaris.
            (i386_elf32_sol2_vec): Don't declare.
            (elf_i386_link_setup_gnu_properties): Also handle is_solaris.
            Don't set need_global_offset_table.
            (elf_i386_solaris_arch_bed): New.
            (elf_backend_arch_data): Set to elf_i386_solaris_arch_bed for
            Solaris.
            * elf64-x86-64.c (elf_x86_64_get_synthetic_symtab): Check
            target_os != is_nacl instead of target_os == is_normal.
            (x86_64_elf64_sol2_vec): Don't declare.
            (elf_x86_64_link_setup_gnu_properties): Check target_os !=
            is_nacl instead of target_os == is_normal.  Don't set
            need_global_offset_table.
            (elf_x86_64_solaris_arch_bed): New.
            (elf_backend_arch_data): Set to elf_x86_64_solaris_arch_bed for
            Solaris.
            * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Keep
            _GLOBAL_OFFSET_TABLE_ for Solaris.
            (_bfd_x86_elf_link_setup_gnu_properties): Don't copy
            need_global_offset_table.
            * elfxx-x86.h (elf_x86_target_os): Add is_solaris.
            (elf_x86_link_hash_table): Remove need_global_offset_table.
            (elf_x86_init_table): Likewise.
    
    (cherry picked from commit 3b4c384407ebbdd9ed4ad5057080b3be038b8748)

 bfd/ChangeLog      | 27 +++++++++++++++++++++++++++
 bfd/elf32-i386.c   | 19 +++++++++++++------
 bfd/elf64-x86-64.c | 19 ++++++++++---------
 bfd/elfxx-x86.c    |  6 +++---
 bfd/elfxx-x86.h    |  7 +------
 5 files changed, 54 insertions(+), 24 deletions(-)

commit 9408449889225382ffddf03e1541bb463115334f
Author:     H.J. Lu <hjl.tools@gmail.com>
AuthorDate: Thu Feb 8 13:52:22 2018 -0800
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sun Apr 29 18:09:09 2018 +0200

    x86: Keep the unused _GLOBAL_OFFSET_TABLE_ for Solaris
    
    Solaris requires to keep _GLOBAL_OFFSET_TABLE_ even if it isn't used.
    This patch detects Solaris target and keeps _GLOBAL_OFFSET_TABLE_ for
    Solaris.
    
            * elf32-i386.c (elf32_i386_copy_solaris_special_section_fields):
            New prototype.
            (elf_i386_link_setup_gnu_properties): Set need_global_offset_table
            for Solaris.
            * elf64-x86-64.c (elf64_x86_64_copy_solaris_special_section_fields):
            New prototype.
            (elf_x86_64_link_setup_gnu_properties): Set
            need_global_offset_table for Solaris.
            * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Keep the
            unused _GLOBAL_OFFSET_TABLE_ for Solaris.
            (_bfd_x86_elf_link_setup_gnu_properties): Copy
            need_global_offset_table.
            * elfxx-x86.h (elf_x86_link_hash_table): Add
            need_global_offset_table.
            (elf_x86_init_table): Likewise.
    
    (cherry picked from commit dc11dea21281758b71113c03a8d8be92d175a46c)

 bfd/ChangeLog      | 18 ++++++++++++++++++
 bfd/elf32-i386.c   |  9 +++++++++
 bfd/elf64-x86-64.c |  9 +++++++++
 bfd/elfxx-x86.c    |  4 +++-
 bfd/elfxx-x86.h    |  6 ++++++
 5 files changed, 45 insertions(+), 1 deletion(-)

commit 462f74edd673b48dc26f0486a7a7f85a749b8ed7
Author:     H.J. Lu <hjl.tools@gmail.com>
AuthorDate: Mon Feb 5 08:38:16 2018 -0800
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sun Apr 29 18:09:09 2018 +0200

    x86: Remove the unused _GLOBAL_OFFSET_TABLE_
    
    Since _GLOBAL_OFFSET_TABLE_ may be referenced implicitly on x86,
    checking ref_regular_nonweak leaves the unused _GLOBAL_OFFSET_TABLE_
    in output.  This patch checks explicit GOT references instead.
    
    ld-i386/discarded1.s and ld-x86-64/discarded1.s are updated to avoid
    linker optimization which removes GOT references.
    
    bfd/
    
            PR ld/22782
            * elf32-i386.c (elf_i386_check_relocs): Set got_referenced if
            _GLOBAL_OFFSET_TABLE_ is referenced or GOT is needed to resolve
            undefined weak symbol to 0.
            * elf64-x86-64.c (elf_x86_64_check_relocs): Set got_referenced
            if _GLOBAL_OFFSET_TABLE_ is referenced.
            * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Check
            got_referenced instead of ref_regular_nonweak.  Remove the
            unused _GLOBAL_OFFSET_TABLE_ from symbol table.
            * elfxx-x86.h (elf_x86_link_hash_table): Add got_referenced.
    
    ld/
    
            PR ld/22782
            * testsuite/ld-i386/discarded1.s: Replace mov with div.
            * testsuite/ld-x86-64/discarded1.s: Likewise.
            * testsuite/ld-i386/i386.exp: Run pr22782.
            * testsuite/ld-i386/load1-nacl.d: Updated for removing
            _GLOBAL_OFFSET_TABLE_ from output.
            * testsuite/ld-i386/load1.d: Likewise.
            * testsuite/ld-x86-64/load1a-nacl.d: Likewise.
            * testsuite/ld-x86-64/load1a.d: Likewise.
            * testsuite/ld-x86-64/load1b-nacl.d: Likewise.
            * testsuite/ld-x86-64/load1b.d: Likewise.
            * testsuite/ld-i386/pr22782.d: New file.
            * testsuite/ld-i386/pr22782.s: Likewise.
            * testsuite/ld-x86-64/pr22782.s: Likewise.
            * testsuite/ld-x86-64/pr22782a.d: Likewise.
            * testsuite/ld-x86-64/pr22782b.d: Likewise.
            * testsuite/ld-x86-64/x86-64.exp: Run pr22782a and pr22782b.
    
    (cherry picked from commit cd04836359da82ae1dc67e5a05565536f4427b51)

 bfd/ChangeLog                        | 13 ++++++
 bfd/elf32-i386.c                     | 16 ++++++-
 bfd/elf64-x86-64.c                   |  4 ++
 bfd/elfxx-x86.c                      | 17 +++++++-
 bfd/elfxx-x86.h                      |  3 ++
 ld/ChangeLog                         | 20 +++++++++
 ld/testsuite/ld-i386/discarded1.s    |  2 +-
 ld/testsuite/ld-i386/i386.exp        |  1 +
 ld/testsuite/ld-i386/load1-nacl.d    | 84 ++++++++++++++++++------------------
 ld/testsuite/ld-i386/load1.d         | 84 ++++++++++++++++++------------------
 ld/testsuite/ld-i386/pr22782.d       | 10 +++++
 ld/testsuite/ld-i386/pr22782.s       | 15 +++++++
 ld/testsuite/ld-x86-64/discarded1.s  |  2 +-
 ld/testsuite/ld-x86-64/load1a-nacl.d | 76 ++++++++++++++++----------------
 ld/testsuite/ld-x86-64/load1a.d      | 76 ++++++++++++++++----------------
 ld/testsuite/ld-x86-64/load1b-nacl.d | 76 ++++++++++++++++----------------
 ld/testsuite/ld-x86-64/load1b.d      | 76 ++++++++++++++++----------------
 ld/testsuite/ld-x86-64/pr22782.s     | 15 +++++++
 ld/testsuite/ld-x86-64/pr22782a.d    | 11 +++++
 ld/testsuite/ld-x86-64/pr22782b.d    | 11 +++++
 ld/testsuite/ld-x86-64/x86-64.exp    |  2 +
 21 files changed, 372 insertions(+), 242 deletions(-)

commit 6d5350c995793246195face31463d6a986c522d5
Author:     Nick Clifton <nickc@redhat.com>
AuthorDate: Fri Apr 20 11:20:40 2018 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sun Apr 29 18:09:09 2018 +0200

    Updated Spanish translation for gas sub-directory

 gas/ChangeLog |    4 +
 gas/po/es.po  | 1649 +++++++++++++++++++++++++--------------------------------
 2 files changed, 730 insertions(+), 923 deletions(-)

commit 7842d72763a3d6333cac6af82811ba570db0989e
Author:     Nick Clifton <nickc@redhat.com>
AuthorDate: Wed Apr 18 10:51:22 2018 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sun Apr 29 18:09:09 2018 +0200

    Updated Spanish translations for the gold and gprof sub-directories

 gold/ChangeLog  |    4 +
 gold/po/es.po   | 3550 ++++++++++++++++++++++++++++++++++++++++++-------------
 gprof/ChangeLog |    4 +
 gprof/po/es.po  |  258 ++--
 4 files changed, 2839 insertions(+), 977 deletions(-)

commit 66dc1235b591dd1d878533d9024ad85b63da8405
Author:     Nick Clifton <nickc@redhat.com>
AuthorDate: Thu Apr 12 12:02:35 2018 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sun Apr 29 18:09:09 2018 +0200

    Updated Spanish and Russian translations for the gas sub-directory

 gas/ChangeLog |     5 +
 gas/po/es.po  | 19791 +++++++++++++++++++++++++++++++++++---------------------
 gas/po/ru.po  |  5439 ++++++++--------
 3 files changed, 15194 insertions(+), 10041 deletions(-)

commit 06b930ccdb24c496752bdcc8efd72b9f2bc203d6
Author:     Nick Clifton <nickc@redhat.com>
AuthorDate: Fri Apr 6 15:04:50 2018 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sun Apr 29 18:09:09 2018 +0200

    Import patch from mainline sources to stop the linker from removing IA64 unwind sections when garbage collecting.
    
            PR 23030
            * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Make sure
            that the .IA_64.unwind_info and .IA_64.unwind sections are not
            subject to garbage collection.

 ld/ChangeLog                | 10 ++++++++++
 ld/emulparams/elf64_ia64.sh |  4 ++--
 2 files changed, 12 insertions(+), 2 deletions(-)

commit daddc9e3fd1d7240fe9c183ea6dba0421f2859fd
Author:     H.J. Lu <hjl.tools@gmail.com>
AuthorDate: Wed Apr 4 04:36:44 2018 -0700
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sun Apr 29 18:09:09 2018 +0200

    i386: Clear vex instead of vex.evex
    
    "vex" has many fields to control how to decode an instruction.  Clear
    all fields in "vex" before decoding an instruction to avoid using values
    left from the previous instruction.
    
    gas/
    
            PR binutils/23025
            * testsuite/gas/i386/prefix.s: Add tests for vcvtpd2dq with
            VEX and EVEX prefixes.
            * testsuite/gas/i386/prefix.d: Updated.
    
    opcodes/
    
            PR binutils/23025
            * i386-dis.c (get_valid_dis386): Don't set vex.prefix nor vex.w
            to 0.
            (print_insn): Clear vex instead of vex.evex.
    
    (cherry picked from commit caf0678c84b5b55fbc4bcc853954745a4ad8b658)

 gas/ChangeLog                   | 10 ++++++++++
 gas/testsuite/gas/i386/prefix.d |  3 +++
 gas/testsuite/gas/i386/prefix.s |  4 ++++
 opcodes/ChangeLog               | 10 ++++++++++
 opcodes/i386-dis.c              |  7 +------
 5 files changed, 28 insertions(+), 6 deletions(-)

commit 71eadeec69b189f3e772aa8e76bcc62f8254188b
Author:     Nick Clifton <nickc@redhat.com>
AuthorDate: Thu Mar 29 12:31:04 2018 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sun Apr 29 18:09:09 2018 +0200

    Import patch from the mainline that fixes the ARM assembler's parsing of an illegal ORR instruction.
    
            PR 22773
            * config/tc-arm.c (md_apply_fix): Test Rn field of Thumb ORR
            instruction before assuming that it is a MOV instruction.
            * testsuite/gas/arm/pr22773.s: New test.
            * testsuite/gas/arm/pr22773.d: New test driver.
            * testsuite/gas/arm/pr22773.l: New expected output.

 gas/ChangeLog                   | 12 ++++++++++++
 gas/config/tc-arm.c             |  8 +++++---
 gas/testsuite/gas/arm/pr22773.d |  2 ++
 gas/testsuite/gas/arm/pr22773.l |  3 +++
 gas/testsuite/gas/arm/pr22773.s | 11 +++++++++++
 5 files changed, 33 insertions(+), 3 deletions(-)

commit c50e9d69cc966adfc7cddb205d7ffe45a0a0e576
Author:     GDB Administrator <gdbadmin@sourceware.org>
AuthorDate: Thu Mar 29 00:01:39 2018 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sun Apr 29 18:09:04 2018 +0200

    Automatic date update in version.in

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

commit 4545a6f0721718b89b4062b8d727a2707ad7d7e8
Author:     Cary Coutant <ccoutant@gmail.com>
AuthorDate: Fri Mar 23 09:03:34 2018 -0700
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sun Apr 29 18:08:05 2018 +0200

    Fix case where IR file provides symbol visibility but replacement file does not.
    
    In PR 22868, two IR files provide conflicting visibility for a symbol.
    When a def with PROTECTED visibility is seen after a def with DEFAULT
    visibility, gold does not override the visibility. Later, if the
    replacement object define the symbol with DEFAULT visibility, the symbol
    remains DEFAULT. This was caused by a recent change to allow multiply-defined
    absolute symbols, combined with the fact that the plugin framework was using
    SHN_ABS as the section index for placeholder symbols. The solution is to
    use a real (but arbitrary) section index.
    
    gold/
            PR gold/22868
            * plugin.cc (Sized_pluginobj::do_add_symbols): Use a real section
            index instead of SHN_ABS for defined symbols.
            * testsuite/Makefile.am (plugin_pr22868): New test case.
            * testsuite/Makefile.in: Regenerate
            * testsuite/plugin_pr22868.sh: New test script.
            * testsuite/plugin_pr22868_a.c: New source file.
            * testsuite/plugin_pr22868_b.c: New source file.

 gold/ChangeLog                    | 11 ++++++++++
 gold/plugin.cc                    |  3 ++-
 gold/testsuite/Makefile.am        | 21 ++++++++++++++++++
 gold/testsuite/Makefile.in        | 28 +++++++++++++++++++++---
 gold/testsuite/plugin_pr22868.sh  | 45 +++++++++++++++++++++++++++++++++++++++
 gold/testsuite/plugin_pr22868_a.c | 28 ++++++++++++++++++++++++
 gold/testsuite/plugin_pr22868_b.c | 39 +++++++++++++++++++++++++++++++++
 7 files changed, 171 insertions(+), 4 deletions(-)

commit 45c59731de46cecddfb2f7123253908ff0450425
Author:     Eric Botcazou <ebotcazou@gcc.gnu.org>
AuthorDate: Wed Mar 28 12:17:15 2018 +0200
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sun Apr 29 18:08:05 2018 +0200

    PR ld/22972 on SPARC.
    
    This is a regression for the corner case of a hidden symbol in a PIC/PIE
    binary which is subject to both a new-style GOTDATA relocation and an
    old-style GOT relocation.  In this case, depending  on the link order,
    the R_SPARC_RELATIVE dynamic relocation for the GOT slot needed because
    of the old-style relocation can be replaced with R_SPARC_NONE coming
    from the GOTDATA relocation.
    
    The fix simply records whether an old-style GOT relocation is seen for a
    symbol and prevents the R_SPARC_NONE from being generated in this case.
    
    bfd/
            * elfxx-sparc.c (struct _bfd_sparc_elf_link_hash_entry): Add new flag
            has_old_style_got_reloc.
            (_bfd_sparc_elf_check_relocs) <GOT relocations>: Set it for old-style
            relocations.  Fix a couple of long lines.
            (_bfd_sparc_elf_relocate_section) <R_SPARC_GOTDATA_OP>: Do not generate
            a R_SPARC_NONE for the GOT slot if the symbol is also subject to
            old-style GOT relocations.
    ld/
            * testsuite/ld-sparc/sparc.exp: Add test for mixed GOTDATA/GOT relocs.
            * testsuite/ld-sparc/gotop-hidden.c: New file.
            * testsuite/ld-sparc/got-hidden32.s: Likewise.
            * testsuite/ld-sparc/got-hidden64.s: Likewise.
            * testsuite/ld-sparc/pass.out: Likewise.

 bfd/ChangeLog                        | 11 +++++++++++
 bfd/elfxx-sparc.c                    | 22 +++++++++++++++++-----
 ld/ChangeLog                         |  9 +++++++++
 ld/testsuite/ld-sparc/got-hidden32.s | 18 ++++++++++++++++++
 ld/testsuite/ld-sparc/got-hidden64.s | 18 ++++++++++++++++++
 ld/testsuite/ld-sparc/gotop-hidden.c | 13 +++++++++++++
 ld/testsuite/ld-sparc/pass.out       |  1 +
 ld/testsuite/ld-sparc/sparc.exp      | 29 +++++++++++++++++++++++++++++
 8 files changed, 116 insertions(+), 5 deletions(-)

commit 4116520d830c04334f9631e92e1053f3fef6a632
Author:     Roland McGrath <mcgrathr@google.com>
AuthorDate: Tue Mar 27 16:27:03 2018 -0700
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sun Apr 29 18:08:05 2018 +0200

    gold/testsuite: Fix bad regexp in split_x86_64.sh
    
    gold/
            * testsuite/split_x86_64.sh: Fix bad regexp.

 gold/ChangeLog                 | 4 ++++
 gold/testsuite/split_x86_64.sh | 4 ++--
 2 files changed, 6 insertions(+), 2 deletions(-)

commit fff0749fee96b1820d159d67690c005aec89129c
Author:     H.J. Lu <hjl.tools@gmail.com>
AuthorDate: Mon Mar 26 03:57:01 2018 -0700
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sun Apr 29 18:08:05 2018 +0200

    x86-64: Add ENDBR64 to the TLSDESC PLT entry
    
    The TLSDESC entry in a lazy procedure linkage table is called indirectly
    with "callq *(%rax)".  This patch adds an ENDBR64 to support indirect
    branch tracking in Intel CET.  The TLSDESC PLT entry now looks like:
    
    0xf3, 0x0f, 0x1e, 0xfa,  /* endbr64             */
    0xff, 0x35, 8, 0, 0, 0,  /* pushq GOT+8(%rip)   */
    0xff, 0x25, 16, 0, 0, 0  /* jmpq *GOT+TDG(%rip)  */
    
    The BND prefix isn't needed since MPX isn't used for TLSDESC.
    
    bfd/
    
            PR ld/23000
            * elf64-x86-64.c (elf_x86_64_finish_dynamic_sections): Add
            ENDBR64 to the TLSDESC PLT entry.
    
    ld/
    
            PR ld/23000
            * testsuite/ld-x86-64/tlsdesc.pd: Updated.
    
    (cherry picked from commit bf54968b128a2133174d81c438d402ecfaf83042)

 bfd/ChangeLog                     |  9 +++++++++
 bfd/elf64-x86-64.c                | 32 +++++++++++++++++++-------------
 ld/ChangeLog                      |  8 ++++++++
 ld/testsuite/ld-x86-64/tlsdesc.pd |  2 +-
 4 files changed, 37 insertions(+), 14 deletions(-)

commit 9690847f8c55ee1a8d40859b6818f33e630a17ce
Author:     Alan Modra <amodra@gmail.com>
AuthorDate: Wed Mar 14 22:09:33 2018 +1030
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sun Apr 29 18:08:05 2018 +0200

    PowerPC64 debian bug 886264, out-of-line save/restore functions
    
    This calculation in relocate_section
    
                  if (stub_entry->stub_type == ppc_stub_save_res)
                    relocation += (stub_sec->output_offset
                                   + stub_sec->output_section->vma
                                   + stub_sec->size - htab->sfpr->size
                                   - htab->sfpr->output_offset
                                   - htab->sfpr->output_section->vma);
    
    to adjust from the original out-of-line save/restore function address
    in sfpr to a copy at the end of stub_sec goes wrong when stub_sec is
    padded, because the copy is no longer at the end of stub_sec.  The
    solution is to pad before copying sfpr, so the copy is always at the
    end of stub_sec.
    
            * elf64-ppc.c (sfpr_define): Adjust for stub_sec size having
            sfpr size added before defining alias symbols.
            (ppc64_elf_build_stubs): Add stub section padding before
            copying sfpr contents and defining save/restore alias symbols.
    
    (cherry picked from commit 7dda8d3cf3b089bb7e03c4cdbec827fc6a188c88)

 bfd/ChangeLog   |  9 +++++++++
 bfd/elf64-ppc.c | 33 ++++++++++++++++++---------------
 2 files changed, 27 insertions(+), 15 deletions(-)

commit e1e75f5456ef3f45c2decab33df4d95615476ff6
Author:     Alan Modra <amodra@gmail.com>
AuthorDate: Thu Mar 8 14:34:09 2018 +1030
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sun Apr 29 18:08:05 2018 +0200

    Really remove unnecessary power9 group terminating nop
    
    Oops, not tested well enough.  -mpower9 sets all the PPC_OPCODE_POWERn
    for n <= 9.
    
            * config/tc-ppc.c (ppc_handle_align): Correct last patch.  Really
            don't emit a group terminating nop for power9.  Simplify cpu
            tests.
    
    (cherry picked from commit 6a7524c6aa18f5afa4977314eb01f0360e752789)

 gas/ChangeLog       | 5 +++++
 gas/config/tc-ppc.c | 6 ++----
 2 files changed, 7 insertions(+), 4 deletions(-)

commit abf411f8035ad4f6ff8aa941e2ac67659815776e
Author:     Alan Modra <amodra@gmail.com>
AuthorDate: Thu Mar 8 10:17:41 2018 +1030
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sun Apr 29 18:08:05 2018 +0200

    Remove unnecessary power9 group terminating nop
    
    Power9 doesn't have a group terminating nop, so we may as well emit a
    normal nop for power9.  Not that it matters a great deal, I believe
    ori 2,2,0 will be treated exactly as ori 0,0,0 by the hardware.
    
            * config/tc-ppc.c (ppc_handle_align): Don't emit a group
            terminating nop for power9.
    
    (cherry picked from commit 3fea0c3b3fe53ea805f1289ec9ff5e785024362f)

 gas/ChangeLog       |  7 +++++++
 gas/config/tc-ppc.c | 18 ++++++++----------
 2 files changed, 15 insertions(+), 10 deletions(-)

commit 1bd3097fcc5e22ef76ada2d6a6f5f5faca645887
Author:     Roland McGrath <mcgrathr@google.com>
AuthorDate: Tue Mar 20 13:31:35 2018 -0700
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sun Apr 29 18:08:05 2018 +0200

    ld/testsuite: XFAIL pr20995-2 on aarch64*-*-elf*
    
    ld/
            * testsuite/ld-elf/elf.exp (pr20995-2): XFAIL on aarch64*-*-elf*,
            another target without RELRO.

 ld/ChangeLog                | 5 +++++
 ld/testsuite/ld-elf/elf.exp | 4 ++--
 2 files changed, 7 insertions(+), 2 deletions(-)

commit 0674bcc693b7758de36a65d0a8ceb9e15405f860
Author:     H.J. Lu <hjl.tools@gmail.com>
AuthorDate: Tue Mar 20 03:51:26 2018 -0700
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sun Apr 29 18:08:05 2018 +0200

    Set non_ir_ref_dynamic if a symbol is made dynamic
    
    If a symbol is made dynamic by --dynamic-list, it has non-IR reference.
    
    bfd/
    
            PR ld/22983
            * elflink.c (bfd_elf_link_mark_dynamic_symbol): Set
            non_ir_ref_dynamic if a symbol is made dynamic by --dynamic-list.
    
    ld/
    
            PR ld/22983
            * testsuite/ld-plugin/lto.exp: Run PR ld/22983 test.
            * testsuite/ld-plugin/pr22983.d: New file.
            * testsuite/ld-plugin/pr22983.t: Likewise.
            * testsuite/ld-plugin/pr22983a.c: Likewise.
            * testsuite/ld-plugin/pr22983b.c: Likewise.
    
    (cherry picked from commit 416c34d683f2a17aefe19afb466af4316c7c603b)

 bfd/ChangeLog                     |  9 +++++++++
 bfd/elflink.c                     |  7 ++++++-
 ld/ChangeLog                      | 12 ++++++++++++
 ld/testsuite/ld-plugin/lto.exp    | 10 ++++++++++
 ld/testsuite/ld-plugin/pr22983.d  |  9 +++++++++
 ld/testsuite/ld-plugin/pr22983.t  |  6 ++++++
 ld/testsuite/ld-plugin/pr22983a.c | 14 ++++++++++++++
 ld/testsuite/ld-plugin/pr22983b.c | 10 ++++++++++
 8 files changed, 76 insertions(+), 1 deletion(-)

commit 97da1bccfe10528915e24ae2632d078f90ee4782
Author:     Alan Modra <amodra@gmail.com>
AuthorDate: Wed Feb 14 11:38:03 2018 +1030
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sun Apr 29 18:08:05 2018 +0200

    PR22836 testcases
    
            PR 22836
            * testsuite/ld-elf/pr22836-1.s: New file.
            * testsuite/ld-elf/pr22836-1a.d: Likewise.
            * testsuite/ld-elf/pr22836-1b.d: Likewise.
    
    (cherry picked from commit 60f763ee16fca2cd1ec9fa6960f765de9b26ef70)

 ld/ChangeLog                     | 10 ++++++++++
 ld/testsuite/ld-elf/pr22836-1.s  |  4 ++++
 ld/testsuite/ld-elf/pr22836-1a.d |  7 +++++++
 ld/testsuite/ld-elf/pr22836-1b.d |  7 +++++++
 4 files changed, 28 insertions(+)

commit 6d2d9320ba14bb3dd000840ff73b89ad23141a1c
Author:     Alan Modra <amodra@gmail.com>
AuthorDate: Tue Feb 13 14:09:48 2018 +1030
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sun Apr 29 18:08:05 2018 +0200

    PR22836, "-r -s" doesn't work with -g3 using GCC 7
    
    This fixes the case where all of a group is removed with ld -r, the
    situation in the PR, and failures where part of a group is removed
    that contain relocs.
    
    bfd/
            PR 22836
            * elf.c (_bfd_elf_fixup_group_sections): Account for removed
            relocation sections.  If size reduces to just the flag word,
            remove that too and mark with SEC_EXCLUDE.
            * elflink.c (bfd_elf_final_link): Strip empty group sections.
    binutils/
            * testsuite/binutils-all/group-7.s,
            * testsuite/binutils-all/group-7a.d,
            * testsuite/binutils-all/group-7b.d,
            * testsuite/binutils-all/group-7c.d: New tests.
            * testsuite/binutils-all/objcopy.exp: Run them.
    ld/
            * testsuite/ld-elf/pr22836-2.d,
            * testsuite/ld-elf/pr22836-2.s: New test.
    
    (cherry picked from commit 6e5e9d58c1eeef5677c90886578a895cb8c164c5)

 bfd/ChangeLog                               | 11 +++++++++++
 bfd/elf.c                                   | 25 +++++++++++++++++++++----
 bfd/elflink.c                               |  7 +++++++
 binutils/ChangeLog                          | 12 ++++++++++++
 binutils/testsuite/binutils-all/group-7.s   |  6 ++++++
 binutils/testsuite/binutils-all/group-7a.d  | 16 ++++++++++++++++
 binutils/testsuite/binutils-all/group-7b.d  | 19 +++++++++++++++++++
 binutils/testsuite/binutils-all/group-7c.d  |  8 ++++++++
 binutils/testsuite/binutils-all/objcopy.exp |  3 +++
 ld/ChangeLog                                |  9 +++++++++
 ld/testsuite/ld-elf/pr22836-2.d             |  7 +++++++
 ld/testsuite/ld-elf/pr22836-2.s             |  7 +++++++
 12 files changed, 126 insertions(+), 4 deletions(-)

commit a2cd6db405523a67e1cbd342715c101f8e0d93d6
Author:     Thomas Preud'homme <thomas.preudhomme@arm.com>
AuthorDate: Fri Mar 16 14:18:53 2018 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sun Apr 29 18:08:05 2018 +0200

    [ARM] Fix bxns mask
    
    Bit 7 of BXNS is a fixed bit which distinguish it from BLXNS. Yet it is
    not set in the disassembler entry mask. This commit fixes that.
    
    2018-03-16  Thomas Preud'homme  <thomas.preudhomme@arm.com>
    
            Backport from mainline
            2018-02-19  Thomas Preud'homme  <thomas.preudhomme@arm.com>
    
    opcodes/
            * arm-dis.c (thumb_opcodes): Fix BXNS mask.

 opcodes/ChangeLog | 7 +++++++
 opcodes/arm-dis.c | 2 +-
 2 files changed, 8 insertions(+), 1 deletion(-)

commit f188486f32c07f1ba7801d70dc3f5fd6880650fd
Author:     H.J. Lu <hjl.tools@gmail.com>
AuthorDate: Wed Mar 14 04:23:24 2018 -0700
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sun Apr 29 18:08:05 2018 +0200

    GC: Also check the local debug definition section
    
    Extend
    
    commit b7c871edcd83ccdc5fcd8148a7f433efd6b52255
    Author: H.J. Lu <hjl.tools@gmail.com>
    Date:   Wed May 17 07:57:15 2017 -0700
    
        Mark debug sections referenced by kept debug sections
    
    to handle the local debug definition section.
    
    bfd/
    
            PR ld/20882
            * elflink.c (elf_gc_mark_debug_section): Also check the local
            debug definition section.
    
    ld/
    
            PR ld/20882
            * testsuite/ld-gc/pr20882.d: Also dump and check .debug_abbrev
            section.
            * testsuite/ld-gc/pr20882b.s: Add .debug_abbrev section.
    
    (cherry picked from commit 9e223787a474c672c5f1cfd4574857241ae4eafa)

 bfd/ChangeLog                 |  6 ++++++
 bfd/elflink.c                 | 25 ++++++++++++++++++-------
 ld/ChangeLog                  |  7 +++++++
 ld/testsuite/ld-gc/pr20882.d  |  9 ++++++---
 ld/testsuite/ld-gc/pr20882b.s |  9 ++++++++-
 5 files changed, 45 insertions(+), 11 deletions(-)

commit 7c6dc638dc0db2f7413e48f36dff8b20129b279c
Author:     Jim Wilson <jimw@sifive.com>
AuthorDate: Wed Feb 28 10:03:31 2018 -0800
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sun Apr 29 18:08:05 2018 +0200

    IA-64: Fix linker error with --no-keep-memory.
    
            Import patch from mainline:
            2018-02-26  Jim Wilson  <jimw@sifive.com>
            Stephan Schreiber <info@fs-driver.org>
    
            PR 15904
            * elfnn-ia64.c (elfNN_ia64_relax_section): After ia64_elf_relax_brl
            call, set changed_contents and changed_relocs.  Likewise after
            successful ia64_elf_relax_br call.

 bfd/ChangeLog    | 11 +++++++++++
 bfd/elfnn-ia64.c |  6 ++++++
 2 files changed, 17 insertions(+)

commit b927aa680ed53198352fb90bac6e4a52b0978692
Author:     Nick Clifton <nickc@redhat.com>
AuthorDate: Wed Feb 28 14:11:47 2018 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sun Apr 29 18:08:05 2018 +0200

    Enable link time garbage collection for the IA64 target.
    
            Import patch from the mainline:
            2018-02-20  Jason Duerstock  <jason.duerstock@gmail.com>
    
            * elfnn-ia64.c (elf_backend_can_gc_sections): Enable.

 bfd/ChangeLog    | 7 +++++++
 bfd/elfnn-ia64.c | 1 +
 2 files changed, 8 insertions(+)

commit 3dba6d2f62e0ca3b3721618de8de8ac1fbea2507
Author:     Nick Clifton <nickc@redhat.com>
AuthorDate: Wed Feb 28 09:04:52 2018 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sun Apr 29 18:08:05 2018 +0200

    Updated Russian translation for the gas sub-directory and a new Portuguese translation for the binutils sub-directory.
    
    gas     * po/ru.po: Updated Russian translation.
    
    binutils* po/pt.po: New Portuguese translation.
            * configure.ac (ALL_LINGUAS): Add pt.
            * configure: Regenerate.

 binutils/ChangeLog    |     6 +
 binutils/configure    |     2 +-
 binutils/configure.ac |     2 +-
 binutils/po/pt.po     | 11951 ++++++++++++++++++++++++++++++++++++++++++++++++
 gas/ChangeLog         |     4 +
 gas/po/ru.po          |  2096 +++++----
 6 files changed, 13053 insertions(+), 1008 deletions(-)

commit 8e0dc8e9354d5f99024bbb814ff38ef7763e085b
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: Thu Mar 1 20:00:49 2018 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Thu Mar 1 20:00:49 2018 +0100

    Gentoo: We can't test for textrel warnings if we ignore them in the testsuite

 ld/testsuite/ld-elf/shared.exp | 12 ------------
 1 file changed, 12 deletions(-)

commit 4505d586645bf10cd01202e1b1ac9f6894462b45
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: Thu Mar 1 20:00:02 2018 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Thu Mar 1 20:00:02 2018 +0100

    Gentoo: Properly ignore new textrel warnings in testsuite

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

commit 69f78933fe2438db6048959359e83e812dd0ddcd
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: Thu Mar 1 12:35:03 2018 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Thu Mar 1 12:36:49 2018 +0100

    Gentoo: Restore TEXTREL warnings for non-shared objects

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

commit 8f6b52feeb3ca8f3aa8e02b798c15cb83f26a296
Author:     GDB Administrator <gdbadmin@sourceware.org>
AuthorDate: Sun Jan 28 00:01:48 2018 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Mon Feb 26 22:59:24 2018 +0100

    Automatic date update in version.in

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

commit 2bdb2bcd53d4876b8ed5849b318865ff005ad326
Author:     Nick Clifton <nickc@redhat.com>
AuthorDate: Fri Feb 23 11:10:42 2018 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Mon Feb 26 22:56:34 2018 +0100

    Import patch from mainline to fix memory corruption in MIPS assembler.
    
            PR 22014
    gas     * config/tc-mips.c (mips_lookup_insn): Use memmove to strip the
            instruction size suffix.

 gas/ChangeLog        | 10 ++++++++++
 gas/config/tc-mips.c |  2 +-
 2 files changed, 11 insertions(+), 1 deletion(-)

commit fbaf64ee9c450da230fd918d4b9d7ca579299839
Author:     Tamar Christina <tamar.christina@arm.com>
AuthorDate: Thu Feb 15 17:08:14 2018 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Mon Feb 26 22:56:33 2018 +0100

    Fix AArch32 build attributes for Armv8.4-A.
    
    backported from master.
    
    The build attribute number for Armv8.4-A is currently incorrectly set to that of Armv8-M.
    This patch fixes that by setting it as part of the Armv8-A family and adds a test for it.
    
    gas/
    2018-02-16  Tamar Christina  <tamar.christina@arm.com>
    
            * config/tc-arm.c (cpu_arch_ver): Renumber ARM_ARCH_V8_4A.
            * testsuite/gas/arm/attr-march-armv8_4-a.d: New.

 gas/ChangeLog                                |  5 +++++
 gas/config/tc-arm.c                          |  2 +-
 gas/testsuite/gas/arm/attr-march-armv8_4-a.d | 17 +++++++++++++++++
 3 files changed, 23 insertions(+), 1 deletion(-)

commit 3fbd1afa1e838d6e22cfba2724f06b522df3355a
Author:     Nick Clifton <nickc@redhat.com>
AuthorDate: Thu Feb 15 16:21:02 2018 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Mon Feb 26 22:56:33 2018 +0100

    Import patch from mainline to fix a bug that would place executable and non-executables pages in the same segment.
    
            PR 22758
    bfd     * elf.c (_bfd_elf_map_sections_to_segments): Don't start a new
            segment when demand paged with lma on the same page.  Test this
            before load/non-load, executable/non-executable,
            writable/non-writable tests and simplify.  Delete bogus relro
            condition in writable/non-writable test.  Delete outdated
            comment.  Formatting.

 bfd/ChangeLog | 13 +++++++++++++
 bfd/elf.c     | 42 +++++++++++++++++-------------------------
 2 files changed, 30 insertions(+), 25 deletions(-)

commit f0ee5fbe83d7e6cc3a6fa05cfcfa5fb70422c5e4
Author:     Eric Botcazou <ebotcazou@gcc.gnu.org>
AuthorDate: Thu Feb 15 15:55:11 2018 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Mon Feb 26 22:56:32 2018 +0100

    PR ld/22832 on SPARC.
    
    The fix for PR ld/22727 on SPARC passed TRUE as the 'create' argument
    in the call to bfd_link_hash_lookup.  It turns out this was a bad idea
    because, if the symbol is created at this point, the link will abort
    later in elf_link_output_extsym.  This changes the TRUE into a FALSE
    and puts an assertion on the result of the call, making it easier to
    debug the issue; that's exactly in keeping with what Gold does.
    
    bfd/
            * elfxx-sparc.c (_bfd_sparc_elf_check_relocs) <R_SPARC_TLS_GD_CALL>:
            Pass FALSE instead of TRUE as 'create' argument to bfd_link_hash_lookup
            and assert that the result of the call is not NULL.

 bfd/ChangeLog     | 7 +++++++
 bfd/elfxx-sparc.c | 3 ++-
 2 files changed, 9 insertions(+), 1 deletion(-)

commit 40bcb5a0bbeabfbd3d2bf687010ddf28f63446b7
Author:     Max Filippov <jcmvbkbc@gmail.com>
AuthorDate: Sat Feb 10 21:59:54 2018 -0800
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Mon Feb 26 22:56:31 2018 +0100

    gas: xtensa: fix trampoline placement
    
    For jumps requiring multiple trampolines trampoline placement code may
    place multiple sequential trampolines into the same frag. Don't do that.
    
    gas/
    2018-02-14  Max Filippov  <jcmvbkbc@gmail.com>
    
            Backport from mainline
            2018-02-13  Max Filippov  <jcmvbkbc@gmail.com>
    
            * config/tc-xtensa.c (xg_find_best_trampoline): Skip trampoline
            frag that contains source address.

 gas/ChangeLog          | 8 ++++++++
 gas/config/tc-xtensa.c | 6 ++++++
 2 files changed, 14 insertions(+)

commit 3e45f13b4e5c578c39476cf9b7a9aae1b581f473
Author:     Nick Clifton <nickc@redhat.com>
AuthorDate: Mon Feb 12 12:12:00 2018 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Mon Feb 26 22:56:31 2018 +0100

    Updated Russian translation for the gas sub-directory.

 gas/ChangeLog |    4 +
 gas/po/ru.po  | 1170 +++++++++++++++++++++++++++++----------------------------
 2 files changed, 600 insertions(+), 574 deletions(-)

commit 2a0291e5141ff3374d1570c0fc5913b99a0821a1
Author:     Eric Botcazou <ebotcazou@gcc.gnu.org>
AuthorDate: Tue Jan 30 00:13:51 2018 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Mon Feb 26 22:56:30 2018 +0100

    Fix PR gas/22738 (.dc.a directive has wrong size on SPARC 64-bit).
    
    The .dc.a directive has wrong size (32 bits) on SPARC 64-bit because
    the assembler sets the correct BFD architecture only at the very end
    of the processing and it's too late for the directive.  It's fixed by
    defining TARGET_MACH and making it return a sensible default value.
    
    gas/
            * config/tc-sparc.h (sparc_mach): Declare.
            (TARGET_MACH): Define to above.
            * config/tc-sparc.c (sparc_mach): New function.
            (sparc_md_end): Minor tweak.
    ld/
            * testsuite/ld-elf/pr22450.d: Remove reference to SPARC64.

 gas/ChangeLog                 | 11 +++++++++++
 gas/config/tc-sparc.c         | 17 +++++++++++++++--
 gas/config/tc-sparc.h         |  3 +++
 ld/ChangeLog                  |  4 ++++
 ld/testsuite/ld-elf/pr22450.d |  2 +-
 5 files changed, 34 insertions(+), 3 deletions(-)

commit 867cf08c35c521c555cca178b6dea918a09a1561
Author:     Eric Botcazou <ebotcazou@gcc.gnu.org>
AuthorDate: Sat Feb 10 02:30:25 2018 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Mon Feb 26 22:56:29 2018 +0100

    Fix GOT relocation overflow on SPARC.
    
    There are 2 failures left in the linker testsuite on SPARC64/Linux and
    they are caused by 2 different issues leading to the same end effect:
    the overflow of the relocation section for the GOT, i.e. the linker
    generates too many dynamic relocations for the GOT wrt the size of the
    relocation section, leading to memory corruption and missing relocations
    in the final binary.
    
    The first issue was introduced by:
      https://sourceware.org/ml/binutils/2017-06/msg00368.html
    which makes the linker generate more R_SPARC_RELATIVE relocations for
    the GOT without adjusting the size of the relocation section.  This is
    fixed by (1) preventively adjusting this size in allocate_dynrelocs and
    (2) generating R_SPARC_NONE if needed when R_SPARC_GOTDATA_OP is relaxed.
    
    The second issue is that we generate a GOT relocation for an undefined
    weak symbol with non-default visibility in a PIC binary without accounting
    for that  in the size of the relocation section.  Since the address of the
    symbol should resolve to 0 at run time, it is fixed by not generating the
    relocation at all, i.e. leaving the GOT entry zeroed.
    
    bfd/
            * elfxx-sparc.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): Reorder conditions.
            (sparc_elf_append_rela): Assert that there is enough room in section.
            (_bfd_sparc_elf_copy_indirect_symbol): Fix formatting.
            (_bfd_sparc_elf_adjust_dynamic_symbol): Minor tweak.
            (allocate_dynrelocs): Remove outdated comments and reorder conditions.
            For a symbol subject to a GOT relocation, reserve a slot in the
            relocation section if the symbol isn't dynamic and we are in PIC mode.
            (_bfd_sparc_elf_relocate_section) <R_SPARC_GOTDATA_OP>: If relocation
            is relaxed and a slot was reserved, generate a R_SPARC_NONE relocation.
            <R_SPARC_GOTDATA_OP_HIX22>: Adjust comments.
            <R_SPARC_PC10>: Reorder conditions.  Remove always-false assertion.
            (_bfd_sparc_elf_finish_dynamic_symbol): Rename local_undefweak into
            resolved_to_zero.  Do not generate a dynamic GOT relocation for an
            undefined weak symbol with non-default visibility.  Remove superfluous
            'else' and fix formatting.

 bfd/ChangeLog     |  18 ++++++++
 bfd/elfxx-sparc.c | 122 +++++++++++++++++++++++++++++++-----------------------
 2 files changed, 88 insertions(+), 52 deletions(-)

commit b4723a83aa7f7a53c218b4c0b9e8b8c0158e6d24
Author:     Nick Clifton <nickc@redhat.com>
AuthorDate: Fri Feb 9 09:28:45 2018 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Mon Feb 26 22:56:29 2018 +0100

    Import patch from mainline to fix possible seg-fault whilst parsing corrupt ELF notes with extravagent alignments.
    
            PR 22788
            * elf.c (elf_parse_notes): Reject notes with excessuively large
            alignments.

 bfd/ChangeLog | 9 +++++++++
 bfd/elf.c     | 2 ++
 2 files changed, 11 insertions(+)

commit 0febf1aede01d9bfa67f6f2dccf0cac88c72ae1b
Author:     GDB Administrator <gdbadmin@sourceware.org>
AuthorDate: Thu Feb 8 00:01:38 2018 +0000
Commit:     Andreas K. Huettel <dilfridge@gentoo.org>
CommitDate: Thu Feb 8 17:31:13 2018 +0100

    Automatic date update in version.in

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

commit 20ce6e49bacaeff4570ca4a286e2f122fd6eb13b
Author:     Alan Modra <amodra@gmail.com>
AuthorDate: Mon Feb 5 13:17:52 2018 +1030
Commit:     Andreas K. Huettel <dilfridge@gentoo.org>
CommitDate: Thu Feb 8 16:45:46 2018 +0100

    Revert "PowerPC PLT speculative execution barriers"
    
    This reverts most of commit d847d5180e.
    Left in place are addition of --no-plt-align to some ppc32 ld tests
    and the ld.texinfo --no-plt-thread-safe fix.

 bfd/ChangeLog                       |  8 +++++
 bfd/elf32-ppc.c                     | 41 ++++++------------------
 bfd/elf32-ppc.h                     |  3 --
 bfd/elf64-ppc.c                     | 58 ++++++----------------------------
 bfd/elf64-ppc.h                     |  3 --
 gold/ChangeLog                      |  6 ++++
 gold/options.h                      |  4 ---
 gold/powerpc.cc                     | 63 ++++++++-----------------------------
 ld/ChangeLog                        | 11 +++++++
 ld/emultempl/ppc32elf.em            | 20 +-----------
 ld/emultempl/ppc64elf.em            | 22 ++-----------
 ld/ld.texinfo                       |  9 ------
 ld/testsuite/ld-powerpc/elfv2exe.d  |  2 +-
 ld/testsuite/ld-powerpc/elfv2so.d   |  2 +-
 ld/testsuite/ld-powerpc/powerpc.exp | 20 ++++++------
 ld/testsuite/ld-powerpc/relbrlt.d   |  2 +-
 16 files changed, 72 insertions(+), 202 deletions(-)

commit 9b13e77975f214327158aab669c896230e694668
Author:     GDB Administrator <gdbadmin@sourceware.org>
AuthorDate: Tue Feb 6 00:01:17 2018 +0000
Commit:     Andreas K. Huettel <dilfridge@gentoo.org>
CommitDate: Thu Feb 8 16:45:43 2018 +0100

    Automatic date update in version.in

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

commit f1718c80490082ea31d112797b4ca44edcf3aac0
Author:     Renlin Li <renlin.li@arm.com>
AuthorDate: Sat Feb 3 13:18:17 2018 +0000
Commit:     Andreas K. Huettel <dilfridge@gentoo.org>
CommitDate: Thu Feb 8 16:45:37 2018 +0100

    [PR22764][LD][AARCH64]Allow R_AARCH64_ABS16 and R_AARCH64_ABS32 against absolution symbol or undefine symbol in shared object.
    
    backport from mainline
    
    bfd/
    
    2018-02-05  Renlin Li  <renlin.li@arm.com>
    
            PR ld/22764
            * elfnn-aarch64.c (elfNN_aarch64_check_relocs): Relax the
            R_AARCH64_ABS32 and R_AARCH64_ABS16 for absolute symbol. Apply the
            check for writeable section as well.
    
    ld/
    
    2018-02-05  Renlin Li  <renlin.li@arm.com>
    
            PR ld/22764
            * testsuite/ld-aarch64/emit-relocs-258.s: Define symbol as an address.
            * testsuite/ld-aarch64/emit-relocs-259.s: Likewise.
            * testsuite/ld-aarch64/aarch64-elf.exp: Run new test.
            * testsuite/ld-aarch64/pr22764.s: New.
            * testsuite/ld-aarch64/pr22764.d: New.

 bfd/ChangeLog                             |  7 +++++++
 bfd/elfnn-aarch64.c                       | 15 ++++++++++++---
 ld/ChangeLog                              |  8 ++++++++
 ld/testsuite/ld-aarch64/aarch64-elf.exp   |  1 +
 ld/testsuite/ld-aarch64/emit-relocs-258.s |  3 ++-
 ld/testsuite/ld-aarch64/emit-relocs-259.s |  3 ++-
 ld/testsuite/ld-aarch64/pr22764.d         | 18 ++++++++++++++++++
 ld/testsuite/ld-aarch64/pr22764.s         |  6 ++++++
 8 files changed, 56 insertions(+), 5 deletions(-)

commit 6d79ff632a06c845f0fb30808a65c3b58d233999
Author:     Nick Clifton <nickc@redhat.com>
AuthorDate: Mon Feb 5 12:59:09 2018 +0000
Commit:     Andreas K. Huettel <dilfridge@gentoo.org>
CommitDate: Thu Feb 8 16:45:34 2018 +0100

    Updated Brazillian portuguese and Russian translation

 gas/ChangeLog       |   4 +
 gas/po/ru.po        | 532 +++++++++++++++++++++++++---------------------------
 gprof/ChangeLog     |   4 +
 gprof/po/pt_BR.po   |   4 +-
 ld/ChangeLog        |   6 +-
 ld/po/pt_BR.po      |   4 +-
 opcodes/ChangeLog   |   4 +
 opcodes/po/pt_BR.po |   4 +-
 8 files changed, 282 insertions(+), 280 deletions(-)

commit 810414c2470b2306d04413ec6ecfe8424bd58a28
Author:     Nick Clifton <nickc@redhat.com>
AuthorDate: Mon Feb 5 09:12:42 2018 +0000
Commit:     Andreas K. Huettel <dilfridge@gentoo.org>
CommitDate: Thu Feb 8 16:45:31 2018 +0100

    Import patch from mainline to remove PROVODE qualifiers around definitions of __CTOR_LIST__ and __DTOR_LIST__ in PE linker scripts.
    
            PR 22762
            * scripttempl/pe.sc: Remove PROVIDE()s from __CTOR_LIST__ and
            __DTOR_LIST__ symbols.  Add a comment explaining why this is
            necessary.
            * scripttemp/pep.sc: Likewise.
            * ld.texinfo (PROVIDE): Add a note about the effect of common
            symbols.

 ld/ChangeLog          | 14 ++++++++++++++
 ld/ld.texinfo         |  6 ++++++
 ld/scripttempl/pe.sc  | 24 ++++++++++++++++++++----
 ld/scripttempl/pep.sc | 24 ++++++++++++++++++++----
 4 files changed, 60 insertions(+), 8 deletions(-)

commit b751d233fb3be58830c61f644896269579d1e546
Author:     GDB Administrator <gdbadmin@sourceware.org>
AuthorDate: Sun Feb 4 00:02:05 2018 +0000
Commit:     Andreas K. Huettel <dilfridge@gentoo.org>
CommitDate: Thu Feb 8 16:45:28 2018 +0100

    Automatic date update in version.in

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

commit 4e1aee3df3b756d6d5c772902042aafc465b50b1
Author:     Cary Coutant <ccoutant@gmail.com>
AuthorDate: Fri Feb 2 17:44:27 2018 -0800
Commit:     Andreas K. Huettel <dilfridge@gentoo.org>
CommitDate: Thu Feb 8 16:45:22 2018 +0100

    Add support for DWARF-4 line number tables.
    
    Reads the maximum_operations_per_instruction field, added in DWARF-4 to the
    line number program header.
    
    gold/
            * PR gold/22776
            * dwarf_reader.cc (Sized_dwarf_line_info::read_header_prolog): Add
            support for DWARF-4 line number tables.
            * dwarf_reader.h (Sized_dwarf_line_info::max_ops_per_insn): New field.

 gold/ChangeLog       |  7 +++++++
 gold/dwarf_reader.cc | 11 +++++++++++
 gold/dwarf_reader.h  |  3 ++-
 3 files changed, 20 insertions(+), 1 deletion(-)

commit 42672abb60ad483be7c6ab0e9aa551cf3b7e715d
Author:     GDB Administrator <gdbadmin@sourceware.org>
AuthorDate: Tue Jan 30 00:01:45 2018 +0000
Commit:     Andreas K. Huettel <dilfridge@gentoo.org>
CommitDate: Thu Feb 8 16:45:19 2018 +0100

    Automatic date update in version.in

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

commit 3f2cca8124dc9a6b0e9d5b207eab70edea5f72ad
Author:     Nick Clifton <nickc@redhat.com>
AuthorDate: Mon Jan 29 13:50:46 2018 +0000
Commit:     Andreas K. Huettel <dilfridge@gentoo.org>
CommitDate: Thu Feb 8 16:45:04 2018 +0100

    Update Russian translation for the gas sub-directory

 gas/ChangeLog |     4 +
 gas/po/ru.po  | 20403 +++++++++++++++++++++++++++++++++++---------------------
 2 files changed, 12687 insertions(+), 7720 deletions(-)

commit d5b02bfcb91f90f2b2c3b4e97a7048479437653d
Author:     GDB Administrator <gdbadmin@sourceware.org>
AuthorDate: Sun Jan 28 00:01:48 2018 +0000
Commit:     Andreas K. Huettel <dilfridge@gentoo.org>
CommitDate: Thu Feb 8 16:45:01 2018 +0100

    Automatic date update in version.in

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

commit c1a56ccfb6ff36fd533628f8065c968ac6a5148a (tag: gentoo/binutils-2.30-1)
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: Sat Jan 27 21:59:21 2018 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sat Jan 27 21:59:21 2018 +0100

    Gentoo: Disable gold test suite since it still always fails
    
    See https://sourceware.org/bugzilla/show_bug.cgi?id=22755
    Needs review for future ebuilds.

 Makefile.in | 1 -
 1 file changed, 1 deletion(-)

commit 2cd1123d062f33cf1f5aaae3ccd5c793ce04a70b
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: Sat Jan 27 21:37:21 2018 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sat Jan 27 21:37:21 2018 +0100

    Gentoo: Disable another test that checks for textrel warnings (which we sed out)

 ld/testsuite/ld-elf/shared.exp | 13 -------------
 1 file changed, 13 deletions(-)

commit 8e6a0f8f0fa5d65f465a3a721b7e9b33f647b0a0
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: Sat Jan 27 20:29:28 2018 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sat Jan 27 20:29:28 2018 +0100

    [no patch] Gentoo: 2.30 branch doesnt need the 0000 patch

 scripts/gentoo/make-tarball.sh | 1 -
 1 file changed, 1 deletion(-)

commit 1557287548d889db7ae66c3fca6464cf1fa49f19
Author:     Nick Clifton <nickc@redhat.com>
AuthorDate: Sat Jan 27 15:46:38 2018 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sat Jan 27 20:08:25 2018 +0100

    Revert to development on the 2.30 branch.  Set the version number to 2.30.0.
    
    bfd     * version.m4 (BFD_VERSION): Set to 2.30.0
            * development.sh: Set to true.
            * configure: Regenerate.
            * po/bfd.pot: Regenerate.
    
    binutils* configure: Regenerate.
    gas     * configure: Regenerate.
    gprof   * configure: Regenerate.
    ld      * configure: Regenerate.
    opcodes * configure: Regenerate.
            * po/opcodes.pot: Regenerate.

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

commit f5ef2c33e00b226b9f012954f71379662ef73b87
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: Sat Oct 21 00:31:08 2017 +0200
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sat Jan 27 20:04:04 2018 +0100

    Gentoo: Disable failing test ld-x86-64/x86-64.exp pie1.d
    
    The reason why it fails is (surprise) a textrel warning, but in this case
    some other warning creeps in and it doesnt fit our regexp anymore.
    There's a limit how much I care. Example test log below.
    
    /var/tmp/portage/sys-devel/binutils-2.29.1-r1/work/build/ld/../gas/as-new  --64  -o tmpdir/pie1.o
    /var/tmp/portage/sys-devel/binutils-2.29.1-r1/work/binutils-2.29.1/ld/testsuite/ld-x86-64/pie1.s
    Executing on host: sh -c {/var/tmp/portage/sys-devel/binutils-2.29.1-r1/work/build/ld/../gas/as-new  --64  -o tmpdir/pie1.o
    /var/tmp/portage/sys-devel/binutils-2.29.1-r1/work/binutils-2.29.1/ld/tes
    tsuite/ld-x86-64/pie1.s 2>&1}  /dev/null ld.tmp (timeout = 300)
    spawn [open ...]
    ./ld-new --hash-style=sysv -z norelro  -L/var/tmp/portage/sys-devel/binutils-2.29.1-r1/work/binutils-2.29.1/ld/testsuite/ld-x86-64  -pie -melf_x86_64 --noinhibit-exec -o tmpdir/dump
    tmpdir/pie1.o
    Executing on host: sh -c {./ld-new --hash-style=sysv -z norelro  -L/var/tmp/portage/sys-devel/binutils-2.29.1-r1/work/binutils-2.29.1/ld/testsuite/ld-x86-64  -pie -melf_x86_64
    --noinhibit-exec -o t
    mpdir/dump tmpdir/pie1.o  2>&1}  /dev/null ld.tmp (timeout = 300)
    spawn [open ...]
    /var/tmp/portage/sys-devel/binutils-2.29.1-r1/work/build/ld/.libs/ld-new: tmpdir/pie1.o: warning: relocation against `foo' in readonly section `.text'
    tmpdir/pie1.o: In function `_start':
    (.text+0x2): undefined reference to `foo'
    /var/tmp/portage/sys-devel/binutils-2.29.1-r1/work/build/ld/.libs/ld-new: warning: creating a DT_TEXTREL in a shared object.
    succeeded with: </var/tmp/portage/sys-devel/binutils-2.29.1-r1/work/build/ld/.libs/ld-new: tmpdir/pie1.o: warning: relocation against `foo' in readonly section `.text'
    tmpdir/pie1.o: In function `_start':
    (.text+0x2): undefined reference to `foo'
    /var/tmp/portage/sys-devel/binutils-2.29.1-r1/work/build/ld/.libs/ld-new: warning: creating a DT_TEXTREL in a shared object.>, expected: <\A[^\n]*\.o[^\n]*In function `_start':\n[^\n]*:
    undefined r
    eference to `foo'\Z>
    /var/tmp/portage/sys-devel/binutils-2.29.1-r1/work/build/ld/.libs/ld-new: tmpdir/pie1.o: warning: relocation against `foo' in readonly section `.text'
    tmpdir/pie1.o: In function `_start':
    (.text+0x2): undefined reference to `foo'
    /var/tmp/portage/sys-devel/binutils-2.29.1-r1/work/build/ld/.libs/ld-new: warning: creating a DT_TEXTREL in a shared object.
    FAIL: PIE with undefined symbol
    
    (cherry picked from commit 5d486de8e190c238a9ad62d21935a12988c5f23f)

 ld/testsuite/ld-x86-64/x86-64.exp | 1 -
 1 file changed, 1 deletion(-)

commit 84a3f5b885c1b9217e61022b8494358f419aa184
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: Sat Oct 21 00:26:47 2017 +0200
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sat Jan 27 20:03:47 2018 +0100

    Gentoo: We can't test for textrel warnings if we regsub out the warnings.
    
    Disable that one test.
    
    (cherry picked from commit 7cab1e4b23c2328c9594248aae654d0e71af6138)

 ld/testsuite/ld-i386/i386.exp | 1 -
 1 file changed, 1 deletion(-)

commit e36d7cb23cc6c96fbda5ecd110b2845a781885fb
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: Wed Oct 18 00:44:49 2017 +0200
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sat Jan 27 20:03:44 2018 +0100

    Gentoo: Adapt the test suite to our changed --hash-style default

 ld/testsuite/lib/ld-lib.exp | 18 +++++++++++++++---
 1 file changed, 15 insertions(+), 3 deletions(-)

commit d3bed0053780201771412188649c6634ba7541e9
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: Tue Oct 17 00:47:36 2017 +0200
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sat Jan 27 20:03:42 2018 +0100

    Gentoo: Adapt the testsuite to our enhanced textrel warnings
    
    (cherry picked from commit 49a82abdafe1ff96167c50822fd593b2a4690e29)

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

commit 9809971e42b76c4ca19151e4ca6f5786e366f00f
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: Wed Oct 11 21:56:53 2017 +0200
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sat Jan 27 20:03:42 2018 +0100

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

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

commit a818298ffe6bdbd81959c7d836d49c802cfb2f0f
Author:     Mike Frysinger <vapier@gentoo.org>
AuthorDate: Tue Jul 5 20:24:00 2016 +0545
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sat Jan 27 20:03:42 2018 +0100

    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 a65f0ddc72f009e9e6f3b05df182508342ef0e99
Author:     Mike Frysinger <vapier@gentoo.org>
AuthorDate: Fri Jan 7 00:15:53 2005 -0500
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sat Jan 27 20:03:41 2018 +0100

    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 9f6c5c4aad7cd6a2d063b9dc689e70ecbc43fefd
Author:     Mike Frysinger <vapier@gentoo.org>
AuthorDate: Fri Jan 7 00:15:53 2005 -0500
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sat Jan 27 20:03:41 2018 +0100

    Gentoo: ld: enable new dtags by default for linux/gnu targets
    
    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.
    
    (cherry picked from commit 3ed91ee23d7ba05bffe6fb00bdaf5fa089643d77)

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

commit 92ee48d85bd7750bfaa574507a86b0bbd24fa00f
Author:     Mike Frysinger <vapier@gentoo.org>
AuthorDate: Tue Oct 10 22:53:53 2017 +0200
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sat Jan 27 20:03:40 2018 +0100

    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.texinfo   | 18 ++++++++++++++++++
 ld/ldfile.c     | 20 ++++++++++++++++++++
 ld/ldlex.h      |  3 +++
 ld/ldmain.c     |  7 +++++++
 ld/lexsup.c     | 24 ++++++++++++++++++++++++
 11 files changed, 146 insertions(+)

commit 1782a5667a3db16df5a02847fa35291f746f4c9b
Author:     Mike Frysinger <vapier@gentoo.org>
AuthorDate: Mon May 16 22:10:19 2005 -0400
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sat Jan 27 20:03:36 2018 +0100

    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 +
 ld/testsuite/lib/ld-lib.exp | 4 ++++
 2 files changed, 5 insertions(+)
