commit de2ddc0f19ae30dabfad3cd9afa0c42e1c09759f (HEAD -> gentoo/binutils-2.31.1)
Author:     H.J. Lu <hjl.tools@gmail.com>
AuthorDate: Wed Apr 17 09:08:46 2019 -0700
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Wed Apr 24 22:20:50 2019 +0200

    x86: Also check x86 linker_def for non-shared definition
    
    Since elf_x86_linker_defined sets linker_def in elf_x86_link_hash_entry
    for linker defined symbols, SYMBOL_DEFINED_NON_SHARED_P should also check
    linker_def in elf_x86_link_hash_entry.
    
    bfd/
    
            PR ld/24458
            * elfxx-x86.h (SYMBOL_DEFINED_NON_SHARED_P): Also check x86
            linker_def.
    
    ld/
    
            PR ld/24458
            * testsuite/ld-x86-64/x86-64.exp: Run PR ld/24458 tests.
            * testsuite/ld-x86-64/pr24458.s: New file.
            * testsuite/ld-x86-64/pr24458a-x32.d: Likewise.
            * testsuite/ld-x86-64/pr24458a.d: Likewise.
            * testsuite/ld-x86-64/pr24458b-x32.d: Likewise.
            * testsuite/ld-x86-64/pr24458b.d: Likewise.
            * testsuite/ld-x86-64/pr24458c-x32.d: Likewise.
            * testsuite/ld-x86-64/pr24458c.d: Likewise.
    
    (cherry picked from commit 4e84a8f8bbeab52fa7048873655e582ceb92534d)
    (cherry picked from commit bca6a14c568bd63080c85a6b05c90996e2bd4a34)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 bfd/ChangeLog                         |  6 ++++++
 bfd/elfxx-x86.h                       |  1 +
 ld/ChangeLog                          | 12 ++++++++++++
 ld/testsuite/ld-x86-64/pr24458.s      |  5 +++++
 ld/testsuite/ld-x86-64/pr24458a-x32.d |  5 +++++
 ld/testsuite/ld-x86-64/pr24458a.d     |  5 +++++
 ld/testsuite/ld-x86-64/pr24458b-x32.d |  5 +++++
 ld/testsuite/ld-x86-64/pr24458b.d     |  5 +++++
 ld/testsuite/ld-x86-64/pr24458c-x32.d |  5 +++++
 ld/testsuite/ld-x86-64/pr24458c.d     |  5 +++++
 ld/testsuite/ld-x86-64/x86-64.exp     |  6 ++++++
 11 files changed, 60 insertions(+)

commit e2313c771d65b8df5193783797aadc52b496b0bf (tag: gentoo/binutils-2.31.1-6, gentoo/gentoo/binutils-2.31.1)
Author:     Alan Modra <amodra@gmail.com>
AuthorDate: Mon Dec 31 15:40:08 2018 +1030
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sat Apr 6 14:56:46 2019 +0200

    PR24041, Invalid Memory Address Dereference in elf_link_add_object_symbols
    
            PR 24041
            * elflink.c (elf_link_add_object_symbols): Don't segfault on
            crafted ET_DYN with no program headers.
    
    (cherry picked from commit 54025d5812ff100f5f0654eb7e1ffd50f2e37f5f)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 bfd/elflink.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit a0e946d18b83a3445fa903d86172d2c8359cdfa9
Author:     Nick Clifton <nickc@redhat.com>
AuthorDate: Fri Nov 30 11:43:12 2018 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sat Apr 6 14:56:43 2019 +0200

    Remove an abort in the bfd library and add a check for an integer overflow when mapping sections to segments.
    
            PR 23932
            * elf.c (IS_CONTAINED_BY_LMA): Add a check for a negative section
            size.
            (rewrite_elf_program_header): If no sections are mapped into a
            segment return an error.
    
    (cherry picked from commit beab453223769279cc1cef68a1622ab8978641f7)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 bfd/elf.c | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

commit ab2565244f7ae568866ee6053efff464ecf1b571
Author:     Nick Clifton <nickc@redhat.com>
AuthorDate: Fri Nov 30 11:45:33 2018 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sat Apr 6 14:56:40 2019 +0200

    Fix a memory exhaustion bug when attempting to allocate room for an impossible number of program headers.
    
            * elfcode.h (elf_object_p): Check for corrupt input files with
            more program headers than can actually fit in the file.
    
    (cherry picked from commit 5f60af5d24d181371d67534fa273dd221df20c07)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 bfd/elfcode.h | 5 +++++
 1 file changed, 5 insertions(+)

commit cfedaf9caa94508a81ea7aa650dfa8e8671653ec
Author:     Alan Modra <amodra@gmail.com>
AuthorDate: Fri Dec 7 23:39:42 2018 +1030
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sat Apr 6 14:56:37 2019 +0200

    PR23952, memory leak in _bfd_generic_read_minisymbols
    
    bfd/
            PR 23952
            * syms.c (_bfd_generic_read_minisymbols): Free syms before
            returning with zero symcount.
    binutils/
            * nm.c (display_rel_file): Use xrealloc to increase minisyms
            for synthetic symbols.
    
    (cherry picked from commit c2f5dc30afa34696f2da0081c4ac50b958ecb0e9)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 bfd/syms.c    | 13 ++++++++++---
 binutils/nm.c |  9 +++------
 2 files changed, 13 insertions(+), 9 deletions(-)

commit 0e088ede398d0316a302fcb98bc62cdb71d85cad
Author:     Alan Modra <amodra@gmail.com>
AuthorDate: Mon Mar 18 21:38:36 2019 +1030
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sat Apr 6 14:56:20 2019 +0200

    PR24355, segmentation fault in function called from ppc_finish_symbols
    
    This one looks to be a bug going back to 2009, git commit e054468f6c
    "STT_GNU_IFUNC support for PowerPC".  That bug was carried over with
    git commit 49c09209d0 "Rearrange PLT reloc output on powerpc".
    
    If the refcount for an ifunc local sym plt entry was zero,
    ppc_elf_size_dynamic_sections would correctly set plt.offset to -1 but
    leave glink_offset uninitialized.  That leads to occasional segfaults
    (which can be made solid with MALLOC_PERTURB_=1 when using glibc).
    So, guard the write_glink_stub call with plt.offset != -1.  Also,
    remove the totally ineffective attempt at writing multiple-use glink
    stubs only once.
    
            PR 24355
            * elf32-ppc.c (ppc_finish_symbols): Don't call write_glink_stub
            for local iplt syms with ent->plt.offset == -1.  Remove ineffective
            attempt at writing glink stubs only once.
    
    (cherry picked from commit 8cd1fe1bf525b59f4d07e5790d11d49eee7e8494)
    (cherry picked from commit dba17838ab20a814e6c8ba51afe6962d1c400227)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

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

commit 8c9edf2af3572dd0cf7d25b71df85da49ab3243d
Author:     H.J. Lu <hjl.tools@gmail.com>
AuthorDate: Sun Feb 10 04:34:10 2019 -0800
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sun Mar 24 22:02:42 2019 +0100

    gas: Pass max_bytes to TC_FRAG_INIT
    
    ommit 3ae729d5a4f63740ed9a778960b17c2912b0bbdd
    Author: H.J. Lu <hjl.tools@gmail.com>
    Date:   Wed Mar 7 04:18:45 2018 -0800
    
        x86: Rewrite NOP generation for fill and alignment
    
    increased MAX_MEM_FOR_RS_ALIGN_CODE to 4095 which resulted in increase
    of assembler time and memory usage by 5 times for inputs with many
    .p2align directives, which is typical for LTO output.  This patch passes
    max_bytes to TC_FRAG_INIT so that MAX_MEM_FOR_RS_ALIGN_CODE can be set
    as needed and tracked by backend it so that HANDLE_ALIGN can check the
    maximum alignment for each rs_align_code frag.  Wall time to assemble
    the same cc1plus.s:
    
    before:
    
    423.78user 0.89system 7:05.71elapsed 99%CPU
    
    after:
    
    102.35user 0.27system 1:42.89elapsed 99%CPU
    
            PR gas/24165
            * config/tc-i386.h (MAX_MEM_FOR_RS_ALIGN_CODE): Set to
            (alignment ? ((1 << alignment) - 1) : 1)
            (i386_tc_frag_data): Add max_bytes.
            (TC_FRAG_INIT): Track max_chars in max_bytes.
            (HANDLE_ALIGN): Replace MAX_MEM_FOR_RS_ALIGN_CODE with
            fragP->tc_frag_data.max_bytes.
    
    (cherry picked from commit db22231044df03bbcb987496f3f29f0462b2e9ee)
    (cherry picked from commit 292144de4f26e2c6a1fa9d84da2c7758872d4725)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 gas/ChangeLog        | 10 ++++++++++
 gas/config/tc-i386.h |  8 ++++++--
 2 files changed, 16 insertions(+), 2 deletions(-)

commit 0bdfb9ee9ac7a7affa900fdfd8c78645e9c83484
Author:     H.J. Lu <hjl.tools@gmail.com>
AuthorDate: Tue Feb 5 18:45:23 2019 -0800
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sun Mar 24 22:02:16 2019 +0100

    x86-64: Restore PIC check for PCREL reloc against protected symbol
    
    commit bd7ab16b4537788ad53521c45469a1bdae84ad4a
    Author: H.J. Lu <hjl.tools@gmail.com>
    Date:   Tue Feb 13 07:34:22 2018 -0800
    
        x86-64: Generate branch with PLT32 relocation
    
    removed check R_X86_64_PC32 relocation against protected symbols in
    shared objects.  Since elf_x86_64_check_relocs is called after we
    have seen all input files, we can check for PC-relative relocations in
    elf_x86_64_check_relocs.  We should not allow PC-relative relocations
    against protected symbols since address of protected function and
    location of protected data may not be in the shared object.
    
    bfd/
    
            PR ld/24151
            * elf64-x86-64.c (elf_x86_64_need_pic): Check
            SYMBOL_DEFINED_NON_SHARED_P instead of def_regular.
            (elf_x86_64_relocate_section): Move PIC check for PC-relative
            relocations to ...
            (elf_x86_64_check_relocs): Here.
            (elf_x86_64_finish_dynamic_symbol): Use SYMBOL_DEFINED_NON_SHARED_P
            to check if a symbol is defined in a non-shared object.
            * elfxx-x86.h (SYMBOL_DEFINED_NON_SHARED_P): New.
    
    ld/
    
            PR ld/24151
            * testsuite/ld-x86-64/pr24151a-x32.d: New file.
            * testsuite/ld-x86-64/pr24151a.d: Likewise.
            * testsuite/ld-x86-64/pr24151a.s: Likewise.
            * testsuite/ld-x86-64/x86-64.exp: Run pr24151a and pr24151a-x32.
    
    (cherry picked from commit 83924b3846361f2f76f9a6e7b5afa01c0eebbd4f)
    (cherry picked from commit c83ac8021a7649c148cb344870d8ce711eecc3c6)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 bfd/ChangeLog                         |  12 +++
 bfd/elf64-x86-64.c                    | 133 ++++++++++++++++++++--------------
 bfd/elfxx-x86.h                       |   7 ++
 ld/ChangeLog                          |   8 ++
 ld/testsuite/ld-x86-64/pr24151a-x32.d |   4 +
 ld/testsuite/ld-x86-64/pr24151a.d     |   3 +
 ld/testsuite/ld-x86-64/pr24151a.s     |   9 +++
 ld/testsuite/ld-x86-64/x86-64.exp     |   2 +
 8 files changed, 124 insertions(+), 54 deletions(-)

commit 58cf300b52ef95e96a45691d3eaec81415be8e71
Author:     Eric Botcazou <ebotcazou@gcc.gnu.org>
AuthorDate: Thu Feb 7 17:04:31 2019 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sun Mar 24 22:01:45 2019 +0100

    SPARC: fix PR ld/18841
    
    This fixes the last ld failures on SPARC64/Linux:
    
    FAIL: Run pr18841 with libpr18841b.so
    FAIL: Run pr18841 with libpr18841c.so
    FAIL: Run pr18841 with libpr18841bn.so (-z now)
    FAIL: Run pr18841 with libpr18841cn.so (-z now)
    
    by mimicing what has been done on x86-64 and Aarch64 to fix the PR.
    
    bfd/
            PR ld/18841
            * elf32-sparc.c (elf32_sparc_reloc_type_class): Return
            reloc_class_ifunc for ifunc symbols.
            * elf64-sparc.c (elf64_sparc_reloc_type_class): Likewise.
    
    (cherry picked from commit 1532a937c64105681d74055389f0e846244fb830)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 bfd/ChangeLog     |  7 +++++++
 bfd/elf32-sparc.c | 33 ++++++++++++++++++++++++++++++++-
 bfd/elf64-sparc.c | 33 ++++++++++++++++++++++++++++++++-
 3 files changed, 71 insertions(+), 2 deletions(-)

commit b0006e4dae3c1edbcf524a67a1c313d071eb08ed
Author:     Eric Botcazou <ebotcazou@gcc.gnu.org>
AuthorDate: Thu Feb 7 17:02:24 2019 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sun Mar 24 22:01:23 2019 +0100

    Visium: fix bogus overflow check on 32-bit hosts
    
    bfd/
            * elf32-visium.c (visium_elf_howto_parity_reloc): Minor tweak.
            <R_VISIUM_PC16>: Use explicit range test to detect an overflow.
    
    (cherry picked from commit 1c92e98f548b70b08f01cf512ed755ef84e6f223)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

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

commit 7f404dabe53756439b4e1473f0f4857cedf5e10d
Author:     Eric Botcazou <ebotcazou@gcc.gnu.org>
AuthorDate: Thu Feb 7 16:58:47 2019 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sun Mar 24 22:01:04 2019 +0100

    Visium: align branch absolute instruction for the GR6
    
    This is done in order to avoid a pipeline hazard on the GR6.
    
    gas/
            * config/tc-visium.c (md_assemble) <mode_cad>: Align instruction
            on 64-bit boundaries for the GR6.
            * testsuite/gas/visium/allinsn_gr6.s: Tweak.
            * testsuite/gas/visium/allinsn_gr6.d: Likewise.
            * testsuite/gas/visium/bra-1.d: New test.
            * testsuite/gas/visium/bra-1.s: Likewise.
            * testsuite/gas/visium/visium.exp: Run bra-1 test.
    
    (cherry picked from commit 262935666bb35e3434a4708262c6e5e120a5df12)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 gas/ChangeLog                          | 10 ++++++++++
 gas/config/tc-visium.c                 |  4 ++++
 gas/testsuite/gas/visium/allinsn_gr6.d | 12 ++++++------
 gas/testsuite/gas/visium/allinsn_gr6.s |  7 +++----
 gas/testsuite/gas/visium/bra-1.d       | 12 ++++++++++++
 gas/testsuite/gas/visium/bra-1.s       |  5 +++++
 gas/testsuite/gas/visium/visium.exp    |  1 +
 7 files changed, 41 insertions(+), 10 deletions(-)

commit 244780af4ec6b7953a9148e1e30202862db43293
Author:     Eric Botcazou <ebotcazou@gcc.gnu.org>
AuthorDate: Tue Jan 29 10:11:01 2019 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sun Mar 24 22:00:44 2019 +0100

    Skip ld/pr23169 on SPARC.
    
    The test is already skipped on PowerPC and Aarch64 because it's invalid.
    
            * testsuite/ld-ifunc/ifunc.exp: Skip pr23169 on SPARC.
    
    (cherry picked from commit d43a04899779ad5b7d83ded8e0b3d124ccbac6fb)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 ld/ChangeLog                    | 4 ++++
 ld/testsuite/ld-ifunc/ifunc.exp | 4 +++-
 2 files changed, 7 insertions(+), 1 deletion(-)

commit e4cee65728422f2600ae259b65d275d710f1b1d5 (tag: gentoo/binutils-2.31.1-5)
Author:     GDB Administrator <gdbadmin@sourceware.org>
AuthorDate: Fri Dec 14 00:02:18 2018 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sat Dec 15 00:44:18 2018 +0100

    Automatic date update in version.in
    
    (cherry picked from commit 2b05e5e2064c4aad54c0fbb3e48af41f2aa7d8dc)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

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

commit 3ff92ae8d843b7c29cf4646e2b005228e0df117e
Author:     Alan Modra <amodra@gmail.com>
AuthorDate: Sat Oct 20 00:02:17 2018 +1030
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sat Dec 15 00:43:19 2018 +0100

    PR23788, objcopy: failed to find link section
    
    Symbol tables can change when a number of objcopy options are used.
    I figure string tables are similarly changeable.
    
            PR 23788
            * elf.c (section_match): Don't require a size match for SHT_SYMTAB
            or SHT_STRTAB.
    
    (cherry picked from commit ac85e67c053f1555def2c111962f4e68740794f9)
    (cherry picked from commit 2e05e3e689f25b7b866c49435417b1ded33f7ac7)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

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

commit 32c7460d02e5c5cdebe0304d69462f1cc25439be
Author:     H.J. Lu <hjl.tools@gmail.com>
AuthorDate: Mon Dec 10 04:08:52 2018 -0800
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sat Dec 15 00:43:00 2018 +0100

    Correct gas/ChangeLog entry for PR gas/23968
    
    (cherry picked from commit e771f7a770b07c676958247464962614266da755)
    (cherry picked from commit 0c362c8126bf3bc54430ce9e8d4b0a19da23bc0b)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 gas/ChangeLog | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit dc88d09bbbec1abfa670eb7bfe7dca0ddb07abd3
Author:     H.J. Lu <hjl.tools@gmail.com>
AuthorDate: Sun Dec 9 07:22:14 2018 -0800
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sat Dec 15 00:42:37 2018 +0100

    x86: Put back BFD_RELOC_X86_64_GOTPCREL
    
    Put back BFD_RELOC_X86_64_GOTPCREL in TC_FORCE_RELOCATION_LOCAL, which
    was removed by
    
    commit 56ceb5b5405af23eddd12e12d8ba849010120324
    Author: H.J. Lu <hjl.tools@gmail.com>
    Date:   Thu Oct 22 04:49:20 2015 -0700
    
        Add R_X86_64_[REX_]GOTPCRELX support to gas and ld
    
    by accident.
    
    (cherry picked from commit 9f52eab6a7a69870c7b5907a20b0305f30dbf2ae)
    (cherry picked from commit 66a4daef5d40076674ee4478c93bd76750114221)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 gas/ChangeLog                                    | 10 ++++++++++
 gas/config/tc-i386.h                             |  1 +
 gas/testsuite/gas/i386/i386.exp                  |  1 +
 gas/testsuite/gas/i386/ilp32/x86-64-gotpcrel-2.d | 13 +++++++++++++
 gas/testsuite/gas/i386/x86-64-gotpcrel-2.d       | 11 +++++++++++
 gas/testsuite/gas/i386/x86-64-gotpcrel-2.s       |  3 +++
 6 files changed, 39 insertions(+)

commit 658e7f4860f4cb82002c4bb12e362eb56ef3f468
Author:     GDB Administrator <gdbadmin@sourceware.org>
AuthorDate: Fri Dec 7 00:02:16 2018 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Fri Dec 7 22:41:28 2018 +0100

    Automatic date update in version.in
    
    (cherry picked from commit 384d2d7eee78c8642b29fd6583ccb0a9c45c5581)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

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

commit a94a9c8fdf3c35b81441a9a086e9649b3f44c339
Author:     H.J. Lu <hjl.tools@gmail.com>
AuthorDate: Thu Nov 29 04:44:20 2018 -0800
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Fri Dec 7 22:40:10 2018 +0100

    elf: Don't merge .note.gnu.property section in IR
    
    .note.gnu.property section in IR inputs should be ignored.  Don't
    merge them.
    
            PR ld/23929
            * elf-properties.c (_bfd_elf_link_setup_gnu_properties): Don't
            merge .note.gnu.property section in IR inputs.
    
    (cherry picked from commit ffd9e4d0225d45d1603d09e06151c388589e063f)
    (cherry picked from commit d97f1f87b31901ccdb711ec88a0ab792c31d1f60)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 bfd/ChangeLog        | 6 ++++++
 bfd/elf-properties.c | 3 ++-
 2 files changed, 8 insertions(+), 1 deletion(-)

commit eb2914b83a47055759a653e56268ad6128f1b772 (tag: gentoo/binutils-2.31.1-4)
Author:     GDB Administrator <gdbadmin@sourceware.org>
AuthorDate: Fri Nov 30 00:02:27 2018 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Fri Nov 30 23:55:27 2018 +0100

    Automatic date update in version.in
    
    (cherry picked from commit 081de957bc9c24c706b06b94ffd65f9b4544e62f)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

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

commit 1aa45e1051b021a34948d82f63103455261d5e03
Author:     Alan Modra <amodra@gmail.com>
AuthorDate: Fri Nov 30 15:34:11 2018 +1030
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Fri Nov 30 23:54:10 2018 +0100

    PR23937, powerpc64le local ifunc IRELATIVE relocs are wrong
    
    IFUNC resolvers must always be called via their global entry point.
    They will be called from ld.so rather than from the local executable.
    
            PR 23937
    bfd/
            * elf64-ppc.c (write_plt_relocs_for_local_syms): Don't add local
            entry offset for ifuncs.
    ld/
            * testsuite/ld-powerpc/pr23937.d,
            * testsuite/ld-powerpc/pr23937.s: New test.
            * testsuite/ld-powerpc/powerpc.exp: Run it.
    
    (cherry picked from commit ba85c15dabe144e4bcee5a1b388b32bee10729e1)
    (cherry picked from commit 0f494b01431de53959dd72ccfed06a01d5172e3f)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 bfd/ChangeLog                       |  6 ++++
 bfd/elf64-ppc.c                     |  3 +-
 ld/ChangeLog                        |  6 ++++
 ld/testsuite/ld-powerpc/powerpc.exp |  1 +
 ld/testsuite/ld-powerpc/pr23937.d   | 10 ++++++
 ld/testsuite/ld-powerpc/pr23937.s   | 65 +++++++++++++++++++++++++++++++++++++
 6 files changed, 90 insertions(+), 1 deletion(-)

commit 0b892eee4548113b572ae6c412846e9cde6a2732
Author:     Tamar Christina <tamar.christina@arm.com>
AuthorDate: Tue Nov 27 12:33:21 2018 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Fri Nov 30 23:53:41 2018 +0100

    AArch64: Fix regression in Cortex A53 erratum when PIE. (PR ld/23904)
    
    The fix for PR ld/22263 causes TLS relocations using ADRP to be relaxed
    into MOVZ, however this causes issues for the erratum code.
    
    The erratum code scans the input sections looking for ADRP instructions
    and notes their location in the stream.
    
    It then later tries to find them again in order to generate the linker
    stubs.  Due to the relaxation it instead finds a MOVZ and hard aborts.
    
    Since this relaxation is a valid one, and in which case the erratum no
    longer applies, it shouldn't abort but instead just continue.
    
    This changes the TLS relaxation code such that when it finds an ADRP and
    it relaxes it, it removes the erratum entry from the work list by changing
    the stub type into none so the stub is ignored.
    
    The entry is not actually removed as removal is a more expensive operation
    and we have already allocated the memory anyway.
    
    The clearing is done for IE->LE and GD->LE relaxations, and a testcase is
    added for the IE case. The GD case I believe to be impossible to get together
    with the erratum sequence due to the required BL which would break the sequence.
    However to cover all basis I have added the guard there as well.
    
    build on native hardware and regtested on
      aarch64-none-elf, aarch64-none-elf (32 bit host),
      aarch64-none-linux-gnu, aarch64-none-linux-gnu (32 bit host)
    
    Cross-compiled and regtested on
      aarch64-none-linux-gnu, aarch64_be-none-linux-gnu
    
    Testcase in PR23940 tested and works as expected now and benchmarks ran on A53
    showing no regressions and no issues.
    
    bfd/ChangeLog:
    
            PR ld/23904
            * elfnn-aarch64.c (_bfd_aarch64_adrp_p): Use existing constants.
            (_bfd_aarch64_erratum_843419_branch_to_stub): Use _bfd_aarch64_adrp_p.
            (struct erratum_835769_branch_to_stub_clear_data): New.
            (_bfd_aarch64_erratum_843419_clear_stub): New.
            (clear_erratum_843419_entry): New.
            (elfNN_aarch64_tls_relax): Use it.
            (elfNN_aarch64_relocate_section): Pass input_section.
            (aarch64_map_one_stub): Handle branch type none as valid.
    
    ld/ChangeLog:
    
            PR ld/23904
            * testsuite/ld-aarch64/aarch64-elf.exp: Add erratum843419_tls_ie.
            * testsuite/ld-aarch64/erratum843419_tls_ie.d: New test.
            * testsuite/ld-aarch64/erratum843419_tls_ie.s: New test.
    
    (cherry picked from commit 9fca35fc3486283562a7fcd9eb0ff845b0152d98)
    (cherry picked from commit 513092d696472fc06cf7812e14160e16b2da5286)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 bfd/ChangeLog                                  | 13 +++++
 bfd/elfnn-aarch64.c                            | 78 ++++++++++++++++++++++++--
 ld/ChangeLog                                   |  7 +++
 ld/testsuite/ld-aarch64/aarch64-elf.exp        |  1 +
 ld/testsuite/ld-aarch64/erratum843419_tls_ie.d | 49 ++++++++++++++++
 ld/testsuite/ld-aarch64/erratum843419_tls_ie.s | 43 ++++++++++++++
 6 files changed, 186 insertions(+), 5 deletions(-)

commit 2acca478f837220c7d65ac372360819512610966
Author:     Cupertino Miranda <cmiranda@synopsys.com>
AuthorDate: Thu Oct 4 10:17:03 2018 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Fri Nov 30 23:52:58 2018 +0100

    [ARC] More fixes for TLS.
    
    Added warning for static TLS reloc.
    
    Fixed issue related to TLS and partial static linking of libraries:
      This issue was detected when throwing exceptions in C++ while linking with
      -static-libstdc++.
      TLS relocation from the libstdc++ wasn't being patched as local now that it was
      static linked with the executable.
    
    Fix for TLS with static and pie. Problem introduced by earlier patch:
      Fixes the following glibc tests:
       - elf/tst-tls1-static
    
    bfd/
        xxxx-xx-xx  Cupertino Miranda  <cmiranda@synopsys.com>
    
                * arc-got.h (arc_got_entry_type_for_reloc): Changed to
                  correct static TLS relocs.
                * elf32-arc.c (elf_arc_check_relocs): Introduced warning to
                  TLS relocs which require -fPIC.
                  (arc_create_forced_local_got_entries_for_tls): Created.
                  Traverses list of GOT entries to be resolved statically
                  when needed.
                  (elf_arc_finish_dynamic_sections): Changed. Calls
                  arc_create_forced_local_got_entries_for_tls for each known
                  possibly GOT symbol.
    
    (cherry picked from commit 6ce881c15fc463ffbdac55c6e7295422fd49abf9)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 bfd/ChangeLog   |  15 ++++++++
 bfd/arc-got.h   |  33 +++++++++-------
 bfd/elf32-arc.c | 117 +++++++++++++++++++++++++++++++++++++++++---------------
 3 files changed, 121 insertions(+), 44 deletions(-)

commit 80f3e01cf9c60e6d8138a1f09ed6a8059e1eca22
Author:     Claudiu Zissulescu <claziss@gmail.com>
AuthorDate: Fri Nov 9 13:14:00 2018 +0200
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Fri Nov 30 23:52:40 2018 +0100

    [ARC] Fix local got entry list.
    
    Fix a memory leak appearing when the local got entry list was constructed.
    
    bfd/
    xxxx-xx-xx  Claudiu Zissulescu  <claziss@synopsys.com>
    
            * arc-got.h (arc_get_local_got_ents): Revamp it; use
            elf_local_got_ents to store the local got list.
            (get_got_entry_list_for_symbo): Restructure it.
            * elf32-arc.c (elf_arc_relocate_section): Correct the call to
            get_got_entry_list_for_symbol.
    
    (cherry picked from commit 231c5ff116b70a68e7c3689006cec4fea0ecd575)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 bfd/ChangeLog   | 10 ++++++++++
 bfd/arc-got.h   | 33 +++++++++++++++------------------
 bfd/elf32-arc.c |  2 +-
 3 files changed, 26 insertions(+), 19 deletions(-)

commit cb15bee4626b87e3d3f65499d714d4b5f20eac18
Author:     Cupertino Miranda <cmiranda@synopsys.com>
AuthorDate: Thu Sep 6 00:50:35 2018 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Fri Nov 30 23:52:23 2018 +0100

    [ARC] Fixed issue with DTSOFF relocs.
    
    Inserted offset in final section in the GOT entry of type DTSOFF soon to be
    relocated by the dynamic loader.
    
    bfd/
    2018-09-06  Cupertino Miranda <cmiranda@synopsys.com>
    
            * arc-got.h (relocate_fix_got_relocs_for_got_info): Changed. Take TLS
                section alignment in consideration for this relocation.
            * elf32-arc.c (FINAL_SECTSTART): Added this formula macro.
              (ARC_TLS_DTPOFF) Updated reloc to use new created macro instead.
    
    (cherry picked from commit 7b39c09faf95961ac141960a3449c0960a43e96b)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 bfd/ChangeLog             | 12 +++++++++---
 bfd/arc-got.h             | 10 +++++++---
 bfd/elf32-arc.c           |  2 ++
 include/elf/arc-reloc.def |  2 +-
 4 files changed, 19 insertions(+), 7 deletions(-)

commit 6d218625d3b43026c10c56c5cf4e86221d013350
Author:     Cupertino Miranda <cmiranda@synopsys.com>
AuthorDate: Wed Aug 1 17:22:07 2018 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Fri Nov 30 23:52:05 2018 +0100

    [ARC] Fixes TLS failures related to tls-align.
    
    This patch fixes glibc testcase in nptl/tls-align.
    
    bfd/
    2018-08-01  Cupertino Miranda <cmiranda@synopsys.com>
    
            * arc-got.h (relocate_fix_got_relocs_for_got_info): Changed, fixed
                TCB_SIZE offsize to include section alignment.
            * elf32-arc.c (arc_special_overflow_checks): Likewise.
    
    include/
    2018-08-01  Cupertino Miranda <cmiranda@synopsys.com>
    
            * arc-reloc.def (ARC_TLS_LE_32): Updated reloc formula.
    
    (cherry picked from commit b6aef10de46ead5f6028f2f2fa7d4aa275da025e)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 bfd/ChangeLog             | 9 +++++++++
 bfd/arc-got.h             | 8 +++++++-
 bfd/elf32-arc.c           | 3 ++-
 include/ChangeLog         | 6 ++++++
 include/elf/arc-reloc.def | 2 +-
 5 files changed, 25 insertions(+), 3 deletions(-)

commit 1511ae45cf2fc2acf4f8dcc024c6f07546fa9143
Author:     Cupertino Miranda <cmiranda@synopsys.com>
AuthorDate: Fri Mar 2 17:44:29 2018 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Fri Nov 30 23:51:48 2018 +0100

    [ARC] PLT information was still being generated when symbol was forced_local.
    
    A change upstream reveiled this issue, triggering an assert when linking glibc.
    
    bfd/
    2018-03-01  Cupertino Miranda <cmiranda@synopsys.com>
    
            * elf32-arc.c (elf_arc_check_relocs): Changed.
    
    (cherry picked from commit 06006c374b1766073fdc17704c6284232ee204d1)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

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

commit bdbabb42d61cb1ac38a6c5f1fea5468fbe0a376f
Author:     Cupertino Miranda <cmiranda@synopsys.com>
AuthorDate: Fri Mar 2 17:38:14 2018 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Fri Nov 30 23:51:30 2018 +0100

    [ARC] Make sure global symbol is not an indirect or warning.
    
    Problem identified in the context of glibc with latest upstream binutils.
    Dynamic symbol space was being reserved but, no actual information for the
    symbol was being set. Data for the symbol was kept initialized with -1.
    No easy test case was possible to be created.
    
    bfd/
    2018-03-01  Cupertino Miranda <cmiranda@synopsys.com>
    
            * elf32-arc.c (elf_arc_check_relocs): Changed.
    
    (cherry picked from commit 3ee995cd6ea600693097c393493b587b3474a7d1)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 bfd/ChangeLog   | 9 ++++++++-
 bfd/elf32-arc.c | 7 ++++++-
 2 files changed, 14 insertions(+), 2 deletions(-)

commit 23dbdd0d293afd5e0a51777ea7ff1a8fcb80f6dd
Author:     Cupertino Miranda <cmiranda@synopsys.com>
AuthorDate: Fri Mar 2 17:33:48 2018 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Fri Nov 30 23:51:12 2018 +0100

    [ARC] Improved robustness. Return FALSE in case of NULL pointer.
    
    bfd/
    2018-03-01  Cupertino Miranda <cmiranda@synopsys.com>
    
            * elf32-arc.c (elf_arc_finish_dynamic_symbol) Return FALSE in case
            arc_htab is NULL.
    
    (cherry picked from commit 7ea48e7d9d133f262855cd4947f0cf0c610a2b17)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 bfd/ChangeLog   | 7 +++++++
 bfd/elf32-arc.c | 3 +++
 2 files changed, 10 insertions(+)

commit 45708b36220a087525ca5adb4fe0651e6b13d03e
Author:     Cupertino Miranda <cmiranda@synopsys.com>
AuthorDate: Fri Mar 2 17:16:21 2018 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Fri Nov 30 23:50:56 2018 +0100

    [ARC] Refactored location where GOT information is collected.
    
    Change location where GOT information is collected for ARC target, avoiding
    posible use conflicts of the previous .got field in the symbols hash_entry.
    
    bfd/
    2018-03-01  Cupertino Miranda  <cmiranda@synopsys.com>
    
            * arc-got.h (get_got_entry_list_for_symbol): Changed.
            * ef32-arc.c (struct elf_arc_link_hash_entry): Moved and changed.
            (elf_arc_link_hash_newfunc): Changed.
            (arc_elf_link_hash_table_create): Removed old initializations.
            (elf_arc_relocate_section, elf_arc_finish_dynamic_symbol): Changed.
    
    (cherry picked from commit b80393e2751e2a3a11fcdee7247034e35ec9a4f6)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 bfd/ChangeLog   | 10 ++++++++
 bfd/arc-got.h   |  6 +++--
 bfd/elf32-arc.c | 77 +++++++++++++++++++++++++++++++--------------------------
 3 files changed, 56 insertions(+), 37 deletions(-)

commit a49a6bebb59f3de584594c765d865c662478278c
Author:     H.J. Lu <hjl.tools@gmail.com>
AuthorDate: Mon Nov 5 09:01:26 2018 -0800
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Fri Nov 30 23:50:19 2018 +0100

    x86: Disable GOT relaxation with data prefix
    
    Since linker GOT relaxation isn't valid for 16-bit GOT access, we should
    disable GOT relaxation with data prefix.
    
    gas/
    
            PR gas/23854
            * config/tc-i386.c (output_disp): Disable GOT relaxation with
            data prefix.
            * testsuite/gas/i386/mixed-mode-reloc32.d: Updated.
    
    ld/
    
            PR gas/23854
            * testsuite/ld-i386/i386.exp: Run pr23854.
            * testsuite/ld-x86-64/x86-64.exp: Likewwise.
            * testsuite/ld-i386/pr23854.d: New file.
            * testsuite/ld-i386/pr23854.s: Likewwise.
            * testsuite/ld-i386/pr23854.d: Likewwise.
            * testsuite/ld-x86-64/pr23854.d: Likewwise.
            * testsuite/ld-x86-64/pr23854.s: Likewwise.
    
    (cherry picked from commit e60f4d3bdac25f02875afe36b7436bc2dfbbb978)
    (cherry picked from commit 1929a39655d77686385913ef63c6c4340bb2d729)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 gas/ChangeLog                               |  7 ++++++
 gas/config/tc-i386.c                        | 13 ++++++------
 gas/testsuite/gas/i386/mixed-mode-reloc32.d |  2 +-
 ld/ChangeLog                                | 11 ++++++++++
 ld/testsuite/ld-i386/i386.exp               |  1 +
 ld/testsuite/ld-i386/pr23854.d              | 28 ++++++++++++++++++++++++
 ld/testsuite/ld-i386/pr23854.s              | 33 +++++++++++++++++++++++++++++
 ld/testsuite/ld-x86-64/pr23854.d            | 28 ++++++++++++++++++++++++
 ld/testsuite/ld-x86-64/pr23854.s            | 33 +++++++++++++++++++++++++++++
 ld/testsuite/ld-x86-64/x86-64.exp           |  1 +
 10 files changed, 150 insertions(+), 7 deletions(-)

commit 76d93c30197b3ac3d13a898b7f2b02cef797b182
Author:     Nick Clifton <nickc@redhat.com>
AuthorDate: Tue Nov 6 16:06:52 2018 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Fri Nov 30 23:49:58 2018 +0100

    When assigning symbol version, we should hide debug symbols defined in discarded sections from IR objects so that they can be removed later.
    
    bfd     PR ld/23818
            * elflink.c (_bfd_elf_link_assign_sym_version): Hide symbols
            defined in discarded input sections.
    
    ld      * testsuite/ld-plugin/lto.exp: Run PR ld/23818 test.
            * testsuite/ld-plugin/pr23818.d: New file.
            * testsuite/ld-plugin/pr23818.t: Likewise.
            * testsuite/ld-plugin/pr23818a.c: Likewise.
            * testsuite/ld-plugin/pr23818b.c: Likewise.
    
    (cherry picked from commit 84fdbf1a2c901965414eafc96e3bd15fc72ac123)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 bfd/ChangeLog                     |  6 ++++++
 bfd/elflink.c                     | 11 ++++++++++-
 ld/ChangeLog                      |  9 +++++++++
 ld/testsuite/ld-plugin/lto.exp    |  6 ++++++
 ld/testsuite/ld-plugin/pr23818.d  |  4 ++++
 ld/testsuite/ld-plugin/pr23818.t  |  4 ++++
 ld/testsuite/ld-plugin/pr23818a.c |  4 ++++
 ld/testsuite/ld-plugin/pr23818b.c |  7 +++++++
 8 files changed, 50 insertions(+), 1 deletion(-)

commit 9f5df59491e75e476ade8e48eec672e1d510a733
Author:     Tamar Christina <tamar.christina@arm.com>
AuthorDate: Fri Oct 19 16:18:37 2018 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Fri Nov 30 23:49:28 2018 +0100

    Arm: Skip new binary decode tests on pe targets
    
    The two new test I added require the use of the ".inst" directive which the PE
    targets don't support.  Because of that I excluded *-unknown-pe but the mask needs
    to be wider.  I am now excluding *-*-pe.
    
    gas/ChangeLog:
    
            * testsuite/gas/arm/undefined-insn-arm.d: Widen pe skip.
            * testsuite/gas/arm/undefined-insn-thumb.d: Likewise.
    
    (cherry picked from commit bacb77d0188ff37bacdbb211edd7e2419406b864)
    (cherry picked from commit fa6e5eabf907e4d134a9c1ce37ed06459d79eb93)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 gas/ChangeLog                                | 5 +++++
 gas/testsuite/gas/arm/undefined-insn-arm.d   | 2 +-
 gas/testsuite/gas/arm/undefined-insn-thumb.d | 2 +-
 3 files changed, 7 insertions(+), 2 deletions(-)

commit c153a0f4dcef308d2952822929e41894bf0b1dba
Author:     Tamar Christina <tamar.christina@arm.com>
AuthorDate: Fri Oct 19 10:31:42 2018 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Fri Nov 30 23:49:03 2018 +0100

    Arm: Fix disassembler crashing on -b binary when thumb file and thumb not forced.
    
    The disassembler for Arm has some aborts in it in places it assumes can never
    be reached.  Under normal circumstances they indeed cannot be reached because
    the right options are selected from the ARM attributes in the ELF file.
    
    However when disassembling with -b binary then if you do not get the options
    right the disassembler just aborts.  This changes it so it just prints how it
    was trying to interpret the instruction and prints UNKNOWN instructions next to it.
    
    This way the user has an idea of what's going.
    
    gas/ChangeLog:
    
            * testsuite/gas/arm/undefined-insn-arm.d: New test.
            * testsuite/gas/arm/undefined-insn-thumb.d: New test.
            * testsuite/gas/arm/undefined-insn.s: New test.
    
    opcodes/ChangeLog:
    
            * arm-dis.c (UNKNOWN_INSTRUCTION_32BIT): Format specifier for arm mode.
            (UNKNOWN_INSTRUCTION_16BIT): Format specifier for thumb mode.
            (print_insn_arm, print_insn_thumb16, print_insn_thumb32): Use them.
    
    (cherry picked from commit 0b347048e7e33070212a408dc2371075ee60b556)
    (cherry picked from commit f9369f95fb2dbeea186b0cafb27775b92fced4b9)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 gas/ChangeLog                                |  6 ++++++
 gas/testsuite/gas/arm/undefined-insn-arm.d   |  5 +++++
 gas/testsuite/gas/arm/undefined-insn-thumb.d |  5 +++++
 gas/testsuite/gas/arm/undefined-insn.s       |  1 +
 opcodes/ChangeLog                            |  6 ++++++
 opcodes/arm-dis.c                            | 11 ++++++++---
 6 files changed, 31 insertions(+), 3 deletions(-)

commit 183e59bf991290c1e409329023e440f78069f9d9
Author:     Matthew Malcomson <matthew.malcomson@arm.com>
AuthorDate: Tue Oct 16 18:49:36 2018 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Fri Nov 30 23:48:26 2018 +0100

    AArch64: Fix error checking for SIMD udot (by element)
    
    Committed on behalf of Matthew Malcomson:
    
    The SIMD UDOT instruction assembly has an unusual operand that selects a single
    32 bit element with the mnemonic 4B.
    This unusual mnemonic is handled by a special operand qualifier and associated
    qualifier data in `aarch64_opnd_qualifiers`.
    
    The current qualifier data describes 4 1-byte elements with the structure
    {1, 4, 0x0, "4b", OQK_OPD_VARIANT}
    This makes sense, as the instruction does work on 4 1-byte elements, however
    some logic in the `operand_general_constraint_met_p` makes assumptions about
    the range of index allowed when selecting a SIMD_ELEMENT depending on element
    size.
    That function reasons that e.g. in order to select a byte-sized element in a 16
    byte V register an index must allow selection of one of the 16 elements and
    hence its range will be in [0,15].
    
    This reasoning breaks with the above description of a 4 part selection of 1
    byte elements and allows an index outside the valid [0,3] range, triggering an
    assert later on in the program in `aarch64_ins_reglane`.
    
    vshcmd: > echo 'udot v0.2s, v1.8b, v2.4b[4]' | ../src/binutils-build/gas/as-new -march=armv8.4-a
    as-new: ../../binutils-gdb/opcodes/aarch64-asm.c:134: aarch64_ins_reglane: Assertion `reglane_index < 4' failed.
    {standard input}: Assembler messages:
    {standard input}:1: Internal error (Aborted).
    Please report this bug.
    
    This patch changes the operand qualifier data so that it describes a single
    32 bit element.
    {4, 1, 0x0, "4b", OQK_OPD_VARIANT}
    Hence the calculation in `operand_general_constraint_met_p` provides the
    correct answer and the usual error checking machinery is used.
    
    vshcmd: > echo 'udot v0.2s, v1.8b, v2.4b[4]' | ../src/binutils-build/gas/as-new -march=armv8.4-a
    {standard input}: Assembler messages:
    {standard input}:1: Error: register element index out of range 0 to 3 at operand 3 -- `udot v0.2s,v1.8b,v2.4b[4]'
    
    (cherry picked from commit 66e6f0b760c2480e4ebdac8169adcee1fc31f689)
    (cherry picked from commit da87a761d7071c25a382559b483a59f1fa539111)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 gas/ChangeLog                                  |  6 ++++++
 gas/testsuite/gas/aarch64/illegal-dotproduct.d |  4 ++++
 gas/testsuite/gas/aarch64/illegal-dotproduct.l | 13 +++++++++++++
 gas/testsuite/gas/aarch64/illegal-dotproduct.s |  4 ++++
 opcodes/ChangeLog                              |  5 +++++
 opcodes/aarch64-opc.c                          |  3 ++-
 6 files changed, 34 insertions(+), 1 deletion(-)

commit 9ab39115584d8d3848d20ffcbf68cc9b405332e0
Author:     H.J. Lu <hjl.tools@gmail.com>
AuthorDate: Fri Oct 5 11:56:42 2018 -0700
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Fri Nov 30 23:47:41 2018 +0100

    x86: Add Intel ENCLV to assembler and disassembler
    
    gas/
    
            * testsuite/gas/i386/se1.s: Add enclv.
            * testsuite/gas/i386/x86-64-se1.s: Likewise.
            * testsuite/gas/i386/se1.d: Updated.
            * testsuite/gas/i386/x86-64-se1.d: Likewise.
    
    opcodes/
    
            * i386-dis.c (rm_table): Add enclv.
            * i386-opc.tbl: Add enclv.
            * i386-tbl.h: Regenerated.
    
    (cherry picked from commit a4e78aa5fed5ba2cc343c76b78d062291a6fb659)
    (cherry picked from commit 1ae25bf8c2b5164e8a7e581cc4a72d692f4fd85a)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 gas/ChangeLog                       |  7 +++++++
 gas/testsuite/gas/i386/se1.d        |  1 +
 gas/testsuite/gas/i386/se1.s        |  1 +
 gas/testsuite/gas/i386/x86-64-se1.d |  1 +
 gas/testsuite/gas/i386/x86-64-se1.s |  1 +
 opcodes/ChangeLog                   |  6 ++++++
 opcodes/i386-dis.c                  |  2 +-
 opcodes/i386-opc.tbl                |  1 +
 opcodes/i386-tbl.h                  | 14 ++++++++++++++
 9 files changed, 33 insertions(+), 1 deletion(-)

commit 4a8c3084bd7ebff6a718abe1b22a93671a0217f7
Author:     Tamar Christina <tamar.christina@arm.com>
AuthorDate: Tue Sep 18 14:36:37 2018 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Fri Nov 30 23:46:50 2018 +0100

    Fix Aarch64 bug in warning filtering.
    
    This fixes a small bug with the warning filtering code, which when a line has
    generated a warning and a template decode error (due to the way templates are
    resolved) which would not have been emitted and warnings are being suppressed
    with -W it would erroneously emit the error.
    
    I have no testcase for this because the only places we generate warnings during
    encoding/decoding now is using msr/mrs and system registers.  They don't have a
    template that would trigger this.
    
    However an upcoming patch series will have tests in it which would expose this bug.
    
    gas/ChangeLog:
    
            * config/tc-aarch64.c (output_operand_error_report): Apply filtering to
            current instead of head message.
    
    (cherry picked from commit af81c43b51e17c597c8eb5bfaa02fa7f5f6dbe72)
    (cherry picked from commit dd17be4dffc2707659194ecfd2e686a5d6b52ace)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 gas/ChangeLog           | 5 +++++
 gas/config/tc-aarch64.c | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

commit 38ac076b2f3ed0997bc21a7f8d4838988338476b
Author:     Robert Yang <liezhi.yang@windriver.com>
AuthorDate: Mon Sep 17 16:26:58 2018 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Fri Nov 30 23:46:16 2018 +0100

    Improve the code in the assembler to detect and reject a duplicate input and output file.
    
            * as.c (main): Improve check for input file matching output file.
    
    (cherry picked from commit bdfdf1717407e4857fe671f902434273a71b4fe1)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 gas/ChangeLog |  7 +++++++
 gas/as.c      | 27 ++++++++++++++++++++-------
 2 files changed, 27 insertions(+), 7 deletions(-)

commit 4b653e05e53b774f0bf0ac56d74c32bf9a246f5d
Author:     H.J. Lu <hjl.tools@gmail.com>
AuthorDate: Sat Aug 25 06:17:52 2018 -0700
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Fri Nov 30 23:45:54 2018 +0100

    elf: Check for corrupt symbol version info
    
    The BFD linker with PR ld/23499 may generate shared libraries with
    corrupt symbol version info which leads to linker error when the
    corrupt shared library is used:
    
    /usr/bin/ld: bin/libKF5Service.so.5.49.0: _edata: invalid version 21 (max 0)
    /usr/bin/ld: bin/libKF5Service.so.5.49.0: error adding symbols: bad value
    
    Add check for corrupt symbol version info to objdump:
    
    00000000000af005 g    D  .data  0000000000000000  <corrupt>   _edata
    
    and readelf:
    
       728: 00000000000af005     0 NOTYPE  GLOBAL DEFAULT   25 _edata@<corrupt> (5)
    
    bfd/
    
            PR ld/23499
            * elf.c (_bfd_elf_get_symbol_version_string): Return
            _("<corrupt>") for corrupt symbol version info.
    
    binutils/
    
            PR ld/23499
            * readelf.c (get_symbol_version_string): Return _("<corrupt>")
            for corrupt symbol version info.
    
    (cherry picked from commit 7a815dd566f3dd32435ac73aa0a0cc948d525e06)
    (cherry picked from commit edd27c67f5f4d04331394d295806e697e606bbdb)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 bfd/ChangeLog      | 6 ++++++
 bfd/elf.c          | 2 +-
 binutils/ChangeLog | 6 ++++++
 binutils/readelf.c | 9 +++++++++
 4 files changed, 22 insertions(+), 1 deletion(-)

commit 612de6a0d2b164816ee0d8ee8e8a2c7d3b2f477c
Author:     H.J. Lu <hjl.tools@gmail.com>
AuthorDate: Fri Aug 10 12:21:58 2018 -0700
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Fri Nov 30 23:45:23 2018 +0100

    Always clear h->verinfo.verdef when overriding a dynamic definition
    
    When linker defines a symbol to override a dynamic definition, it should
    always clear h->verinfo.verdef so that the symbol won't be associated
    with the version information from the dynamic object.  This happened to
    the symbol "_edata" when creating an unversioned dynamic object linking
    against:
    
    1. libKF5ConfigCore.so.5.49.0
    2. libKF5CoreAddons.so.5.49.0
    3. libKF5I18n.so.5.49.0
    4. libKF5DBusAddons.so.5.49.0
    5. libQt5Xml.so.5.11.1
    6. libQt5DBus.so.5.11.1
    7. libQt5Core.so.5.11.1
    
    Among them
    
    libQt5Xml.so.5.11.1
       299: 000000000003e000     0 NOTYPE  GLOBAL DEFAULT   18 _edata@@Qt_5
    libQt5DBus.so.5.11.1
       597: 0000000000092018     0 NOTYPE  GLOBAL DEFAULT   18 _edata@@Qt_5
    libQt5Core.so.5.11.1
      2292: 00000000004df640     0 NOTYPE  GLOBAL DEFAULT   21 _edata@Qt_5
      2293: 00000000004df640     0 NOTYPE  GLOBAL DEFAULT   21 _edata@Qt_5
    
    The problem is triggered by 2 duplicated entries of _edata@Qt_5 in
    libQt5Core.so.5.11.1 which was created by gold.  Before this commit,
    ld created the dynamic object with "_edata" in its dynamic symbol table
    which was linker defined and associated with the version information
    from libQt5Core.so.5.11.1.  The code in question was there when the
    binutils source was imported to sourceware.org.  When such a dynamic
    object was used later, we got:
    
    /usr/bin/ld: bin/libKF5Service.so.5.49.0: _edata: invalid version 21 (max 0)
    /usr/bin/ld: bin/libKF5Service.so.5.49.0: error adding symbols: bad value
    
    Tested with many ELF targets.
    
            PR ld/23499
            * elflink.c (bfd_elf_record_link_assignment): Always clear
            h->verinfo.verdef when overriding a dynamic definition.
    
    (cherry picked from commit 48e30f5238c70e738f44474d595c476ef4e4ec38)
    (cherry picked from commit 76db6c1ac2cb4102e5551ab822afd84d88bb37aa)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 bfd/ChangeLog |  6 ++++++
 bfd/elflink.c | 12 +++++-------
 2 files changed, 11 insertions(+), 7 deletions(-)

commit e5aab2417fe17194ed43e4857efce41674d4581c
Author:     H.J. Lu <hjl.tools@gmail.com>
AuthorDate: Sun Aug 12 05:39:00 2018 -0700
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Fri Nov 30 23:43:34 2018 +0100

    ld-x86-64/pr23486b.d: Swap pr23486a.s and pr23486a.s
    
    Swap pr23486a.s and pr23486a.s so that pr23486b.d differs from pr23486a.d.
    
            * testsuite/ld-x86-64/pr23486b.d: Swap pr23486a.s and pr23486a.s.
    
    (cherry picked from commit 988daa317c01a610b5298bbcd80be8642ee66094)
    (cherry picked from commit a69de9c7cf6b9ce51eab20fc0d6499459a0e2ca8)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 ld/ChangeLog                      | 4 ++++
 ld/testsuite/ld-x86-64/pr23486b.d | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

commit c876ef9c78e124a10c6d9a93579a17b3f361e6ff
Author:     H.J. Lu <hjl.tools@gmail.com>
AuthorDate: Sat Aug 11 06:41:33 2018 -0700
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Fri Nov 30 23:43:10 2018 +0100

    x86: Properly add X86_ISA_1_NEEDED property
    
    Existing properties may be removed during property merging.  We avoid
    adding X86_ISA_1_NEEDED property only if existing properties won't be
    removed.
    
    bfd/
    
            PR ld/23428
            * elfxx-x86.c (_bfd_x86_elf_link_setup_gnu_properties): Don't
            add X86_ISA_1_NEEDED property only if existing properties won't
            be removed.
    
    ld/
    
            PR ld/23428
            * testsuite/ld-elf/dummy.s: New file.
            * testsuite/ld-elf/linux-x86.S: Add X86_FEATURE_1_AND property.
            * testsuite/ld-elf/linux-x86.exp: Add dummy.s to pr23428.
    
    (cherry picked from commit ab9e342807d132182892de1be1a92d6e91a5c1da)
    (cherry picked from commit 28a27bdbb9500797e6767f80c8128b09112aeed5)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 bfd/ChangeLog                     |  7 +++++++
 bfd/elfxx-x86.c                   | 28 ++++++++++++++++++++++------
 ld/ChangeLog                      |  7 +++++++
 ld/testsuite/ld-elf/dummy.s       |  1 +
 ld/testsuite/ld-elf/linux-x86.S   | 28 ++++++++++++++++++++++++++++
 ld/testsuite/ld-elf/linux-x86.exp |  2 +-
 6 files changed, 66 insertions(+), 7 deletions(-)

commit f51c6792245c577539f2c42e8ee397e15bf0b885
Author:     H.J. Lu <hjl.tools@gmail.com>
AuthorDate: Fri Aug 10 10:23:11 2018 -0700
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Fri Nov 30 23:42:48 2018 +0100

    x86: Replace evex-no-scale.s with evex-no-scale-[32|64].s
    
    .if is_64bit
            vmovaps -1024(%rip), %zmm0
            vmovaps 64(,%rax), %zmm0
            vmovaps 64(,%riz), %zmm0
    .endif
    
    doesn't with i686-elf cross binutils on 64-bit hosts:
    
    evex-no-scale.s: Assembler messages:
    evex-no-scale.s:10: Error: bad register name `%rip)'
    evex-no-scale.s:11: Error: bad register name `%rax)'
    evex-no-scale.s:12: Error: bad register name `%riz)'
    
    This patch replaces evex-no-scale.s with evex-no-scale-32.s and
    evex-no-scale-64.s.
    
            * testsuite/gas/i386/evex-no-scale-32.d: Don't use
            evex-no-scale.s.
            * testsuite/gas/i386/evex-no-scale-64.d: Likewise.
            * testsuite/gas/i386/evex-no-scale-32.s: New file.
            * testsuite/gas/i386/evex-no-scale-64.s: Likewise.
            * testsuite/gas/i386/evex-no-scale.s: Removed.
    
    (cherry picked from commit 19449d7c67690c641b1ec9c13ff3531677a5afcc)
    (cherry picked from commit d6922904447698fa59bc3a7d544b82207a2451b8)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 gas/ChangeLog                                                  |  9 +++++++++
 gas/testsuite/gas/i386/evex-no-scale-32.d                      |  1 -
 gas/testsuite/gas/i386/evex-no-scale-32.s                      |  7 +++++++
 gas/testsuite/gas/i386/evex-no-scale-64.d                      |  1 -
 gas/testsuite/gas/i386/{evex-no-scale.s => evex-no-scale-64.s} | 10 ----------
 5 files changed, 16 insertions(+), 12 deletions(-)

commit 050d6619e7dac14af186b10e2b5eef284050a8df
Author:     H.J. Lu <hjl.tools@gmail.com>
AuthorDate: Wed Aug 8 06:09:15 2018 -0700
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Fri Nov 30 23:42:30 2018 +0100

    x86: Properly merge GNU_PROPERTY_X86_ISA_1_USED
    
    Without the GNU_PROPERTY_X86_ISA_1_USED property, all ISAs may be used.
    If a bit in the GNU_PROPERTY_X86_ISA_1_USED property is unset, the
    corresponding x86 instruction set isn’t used.  When merging properties
    from 2 input files and one input file doesn't have the
    GNU_PROPERTY_X86_ISA_1_USED property, the output file shouldn't have
    it neither.  This patch removes the GNU_PROPERTY_X86_ISA_1_USED
    property if an input file doesn't have it.
    
    This patch replaces the GNU_PROPERTY_X86_ISA_1_USED property with the
    GNU_PROPERTY_X86_ISA_1_NEEDED property which is the minimum ISA
    requirement.
    
    bfd/
    
            PR ld/23486
            * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Remove
            GNU_PROPERTY_X86_ISA_1_USED if an input file doesn't have it.
            (_bfd_x86_elf_link_setup_gnu_properties): Adding the
            GNU_PROPERTY_X86_ISA_1_NEEDED, instead of
            GNU_PROPERTY_X86_ISA_1_USED, property.
    
    ld/
    
            PR ld/23486
            * testsuite/ld-i386/i386.exp: Run PR ld/23486 tests.
            * testsuite/ld-x86-64/x86-64.exp: Likewise.
            * testsuite/ld-i386/pr23486a.d: New file.
            * testsuite/ld-i386/pr23486b.d: Likewise.
            * testsuite/ld-x86-64/pr23486a-x32.d: Likewise.
            * testsuite/ld-x86-64/pr23486a.d: Likewise.
            * testsuite/ld-x86-64/pr23486a.s: Likewise.
            * testsuite/ld-x86-64/pr23486b-x32.d: Likewise.
            * testsuite/ld-x86-64/pr23486b.d: Likewise.
            * testsuite/ld-x86-64/pr23486b.s: Likewise.
            * testsuite/ld-i386/property-3.r: Remove "x86 ISA used".
            * testsuite/ld-i386/property-4.r: Likewise.
            * testsuite/ld-i386/property-5.r: Likewise.
            * testsuite/ld-i386/property-x86-ibt3a.d: Likewise.
            * testsuite/ld-i386/property-x86-ibt3b.d: Likewise.
            * testsuite/ld-i386/property-x86-shstk3a.d: Likewise.
            * testsuite/ld-i386/property-x86-shstk3b.d: Likewise.
            * testsuite/ld-x86-64/property-3.r: Likewise.
            * testsuite/ld-x86-64/property-4.r: Likewise.
            * testsuite/ld-x86-64/property-5.r: Likewise.
            * testsuite/ld-x86-64/property-x86-ibt3a-x32.d: Likewise.
            * testsuite/ld-x86-64/property-x86-ibt3a.d: Likewise.
            * testsuite/ld-x86-64/property-x86-ibt3b-x32.d: Likewise.
            * testsuite/ld-x86-64/property-x86-ibt3b.d: Likewise.
            * testsuite/ld-x86-64/property-x86-shstk3a-x32.d: Likewise.
            * testsuite/ld-x86-64/property-x86-shstk3a.d: Likewise.
            * testsuite/ld-x86-64/property-x86-shstk3b-x32.d: Likewise.
            * testsuite/ld-x86-64/property-x86-shstk3b.d: Likewise.
    
    (cherry picked from commit f7309df20c4e787041cedc4a6aced89c15259e54)
    (cherry picked from commit d55c3e36094f06bb1fb02f5eac19fdccf1d91f7e)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 bfd/ChangeLog                                     |  9 +++++++
 bfd/elfxx-x86.c                                   | 25 ++++++++++++++----
 ld/ChangeLog                                      | 32 +++++++++++++++++++++++
 ld/testsuite/ld-i386/i386.exp                     |  2 ++
 ld/testsuite/ld-i386/pr23486a.d                   | 10 +++++++
 ld/testsuite/ld-i386/pr23486b.d                   | 10 +++++++
 ld/testsuite/ld-i386/property-3.r                 |  1 -
 ld/testsuite/ld-i386/property-4.r                 |  1 -
 ld/testsuite/ld-i386/property-5.r                 |  1 -
 ld/testsuite/ld-i386/property-x86-ibt3a.d         |  5 ++--
 ld/testsuite/ld-i386/property-x86-ibt3b.d         |  5 ++--
 ld/testsuite/ld-i386/property-x86-shstk3a.d       |  5 ++--
 ld/testsuite/ld-i386/property-x86-shstk3b.d       |  5 ++--
 ld/testsuite/ld-x86-64/pr23486a-x32.d             | 10 +++++++
 ld/testsuite/ld-x86-64/pr23486a.d                 | 10 +++++++
 ld/testsuite/ld-x86-64/pr23486a.s                 | 30 +++++++++++++++++++++
 ld/testsuite/ld-x86-64/pr23486b-x32.d             | 10 +++++++
 ld/testsuite/ld-x86-64/pr23486b.d                 | 10 +++++++
 ld/testsuite/ld-x86-64/pr23486b.s                 | 30 +++++++++++++++++++++
 ld/testsuite/ld-x86-64/property-3.r               |  1 -
 ld/testsuite/ld-x86-64/property-4.r               |  1 -
 ld/testsuite/ld-x86-64/property-5.r               |  1 -
 ld/testsuite/ld-x86-64/property-x86-ibt3a-x32.d   |  5 ++--
 ld/testsuite/ld-x86-64/property-x86-ibt3a.d       |  5 ++--
 ld/testsuite/ld-x86-64/property-x86-ibt3b-x32.d   |  5 ++--
 ld/testsuite/ld-x86-64/property-x86-ibt3b.d       |  5 ++--
 ld/testsuite/ld-x86-64/property-x86-shstk3a-x32.d |  5 ++--
 ld/testsuite/ld-x86-64/property-x86-shstk3a.d     |  5 ++--
 ld/testsuite/ld-x86-64/property-x86-shstk3b-x32.d |  5 ++--
 ld/testsuite/ld-x86-64/property-x86-shstk3b.d     |  5 ++--
 ld/testsuite/ld-x86-64/x86-64.exp                 |  4 +++
 31 files changed, 211 insertions(+), 47 deletions(-)

commit f09b5f64ff64670d723d0bea15631cb09f9c5181
Author:     H.J. Lu <hjl.tools@gmail.com>
AuthorDate: Sun Aug 5 10:05:52 2018 -0700
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Fri Nov 30 23:41:53 2018 +0100

    x86: Update assembler tests for non-ELF targets
    
    evex-no-scale.s has ELF directive:
    
    .section .probe, "", @progbits
    
            * testsuite/gas/i386/i386.exp: Run evex-no-scale-32 and
            evex-no-scale-64 only for ELF targets.
    
    (cherry picked from commit 99c2d522f7a7259947aa84c1b385a7c8147fa46c)
    (cherry picked from commit 381c1eb6ec7bf11e67f30764a0e115e044564db8)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 gas/ChangeLog                   | 5 +++++
 gas/testsuite/gas/i386/i386.exp | 6 ++++--
 2 files changed, 9 insertions(+), 2 deletions(-)

commit 3e6cb3af62bff5522769665dc55d3fccbddf66b1
Author:     H.J. Lu <hjl.tools@gmail.com>
AuthorDate: Fri Aug 3 15:47:26 2018 -0700
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Fri Nov 30 23:41:35 2018 +0100

    x32: Align the .note.gnu.property section to 4 bytes
    
    The .note.gnu.property section should be aligned to 4 bytes for x32.
    
            * testsuite/ld-x86-64/property-x86-3.s: Use ".p2align 2" to
            align .note.gnu.property section if __64_bit__ is undefined.
    
    (cherry picked from commit 39aac631baa1c5c540d16e45b64c2813a14f95b0)
    (cherry picked from commit 9b075c7167d68d656c8197b17ccdb4e3c6fbdc5c)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 ld/ChangeLog                            | 5 +++++
 ld/testsuite/ld-x86-64/property-x86-3.s | 4 ++++
 2 files changed, 9 insertions(+)

commit 1bcde13ca14d95de4bce97169114d6be731a885f
Author:     Alan Modra <amodra@gmail.com>
AuthorDate: Sun Aug 5 19:44:03 2018 +0930
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Fri Nov 30 23:41:10 2018 +0100

    __tls_get_addr_opt stubs and tocsave optimization
    
    This patch fixes a bug in the handling of the __tls_get_addr_opt
    stub.  Calls via this stub don't have a toc restoring instruction
    following the "bl", and the stub itself doesn't have an initial toc
    save instruction.  Thus it is incorrect to skip over the first
    instruction when a __tls_get_addr call is marked with a tocsave
    reloc.
    
            * elf64-ppc.c (ppc64_elf_relocate_section): Don't skip first
            instruction of __tls_get_addr_opt stub.
            (plt_stub_size): Omit ALWAYS_EMIT_R2SAVE condition when
            dealing with __tls_get_addr_opt stub.
            (build_tls_get_addr_stub, ppc_size_one_stub): Likewise.
    
    (cherry picked from commit e81b4c933c1b88e29f4b27627dd9ea0bf9189944)
    (cherry picked from commit 4aa5eb02fd8e394e7128a78018b780fb566da81d)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 bfd/ChangeLog   |  8 ++++++++
 bfd/elf64-ppc.c | 18 +++++++++---------
 2 files changed, 17 insertions(+), 9 deletions(-)

commit 231e0dcac54c48468ad2755dd459cda5f7654474
Author:     Alan Modra <amodra@gmail.com>
AuthorDate: Wed Aug 1 18:59:03 2018 +0930
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Fri Nov 30 23:40:45 2018 +0100

    Re: PowerPC64 __tls_get_addr_opt stub .eh_frame fix
    
    The modified test failed on some powerpc targets due to differences in
    default hash style.  If the default hash style is both, then more
    sections are created, bumping section ids.  Section id is used in stub
    symbols and although the test is careful to not depend on id in
    labels, the stub hash traversal order changes when stub names change.
    That lead to the stubs being emitted in a different order and thus not
    matching expected output.
    
            * testsuite/ld-powerpc/powerpc.exp: Run tlsopt5 with hash-style
            specified.
    
    (cherry picked from commit a67ae9b01af7eb2b1f8e5c517338a4b12167ce40)
    (cherry picked from commit 95fbde6791dd4b7821a40cbbc985a257e4819fdb)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 ld/ChangeLog                        | 5 +++++
 ld/testsuite/ld-powerpc/powerpc.exp | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

commit 1a2b19f150f83748bfa565ecc2cb0617499e9e47
Author:     Alan Modra <amodra@gmail.com>
AuthorDate: Wed Aug 1 12:14:22 2018 +0930
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Fri Nov 30 23:40:20 2018 +0100

    PowerPC64 __tls_get_addr_opt stub .eh_frame fix
    
    This patch sets stub_offset in ppc_size_one_stub rather than in
    ppc_build_one_stub.  That allows the plt stub alignment to be done in
    just ppc_size_one_stub rather than both functions.  The patch also
    corrects the place where the alignment was done, fixing a possible
    error in .eh_frame data, and tidies some offset calculations.
    
    bfd/
            * elf64-ppc.c (plt_stub_pad): Delay plt_stub_size call until needed.
            (ppc_build_one_stub): Don't set stub_offset, instead assert that
            it is sane.  Don't adjust stub_offset for alignment.  Adjust size
            calculation.  Use "targ" temp when calculating offsets.
            (ppc_size_one_stub): Set stub_offset here.  Use "targ" temp when
            calculating offsets.  Adjust for alignment before setting
            tls_get_addr_opt_bctrl.
    ld/
            * testsuite/ld-powerpc/powerpc.exp: Run tlsopt5 with plt alignment.
            * testsuite/ld-powerpc/tlsopt5.s: Add extra call.
            * testsuite/ld-powerpc/tlsopt5.wf: Adjust expected output.
            * testsuite/ld-powerpc/tlsopt5.d: Likewise.
    
    (cherry picked from commit 079a6882b523cfd10709c6f2da89584698abd686)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 bfd/ChangeLog                       |  10 +++
 bfd/elf64-ppc.c                     | 125 ++++++++++++++++++------------------
 ld/ChangeLog                        |   7 ++
 ld/testsuite/ld-powerpc/powerpc.exp |   2 +-
 ld/testsuite/ld-powerpc/tlsopt5.d   |  20 +++++-
 ld/testsuite/ld-powerpc/tlsopt5.s   |   3 +
 ld/testsuite/ld-powerpc/tlsopt5.wf  |   3 +-
 7 files changed, 103 insertions(+), 67 deletions(-)

commit 9fa59a88a2dc06dc471d6b86887f3e11721b8a2e
Author:     Nick Clifton <nickc@redhat.com>
AuthorDate: Tue Aug 7 08:17:11 2018 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Fri Nov 30 23:40:01 2018 +0100

    Updated Bulgarian translation for the ld/ directory
    
    (cherry picked from commit 1d8f56a971396b403f2f4f42f94d4d236252c479)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 ld/ChangeLog |   4 +++
 ld/po/bg.po  | 108 +++++++++++++++++++++++++++++------------------------------
 2 files changed, 58 insertions(+), 54 deletions(-)

commit 9ee5a462d0d3e548cfdf65c5c03b7c28748ead03
Author:     Cary Coutant <ccoutant@gmail.com>
AuthorDate: Mon Aug 6 14:08:48 2018 -0700
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Fri Nov 30 23:39:43 2018 +0100

    Add --warn-drop-version option; by default, do not warn when discarding version info.
    
    gold/
            PR gold/23455
            * options.h (General_options): Add --warn-drop-version option.
            * symtab.cc (Symbol_table::set_dynsym_indexes): Check it.
    
    (cherry picked from commit b7991db94c9dabb42a7a0fc5b0a0fb1997d85586)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 gold/ChangeLog |  6 ++++++
 gold/options.h |  4 ++++
 gold/symtab.cc | 11 ++++++-----
 3 files changed, 16 insertions(+), 5 deletions(-)

commit 8a43c455c1e282f4e44c27a6e6e5205accc8c4d9
Author:     Cary Coutant <ccoutant@gmail.com>
AuthorDate: Mon Aug 6 13:36:42 2018 -0700
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Fri Nov 30 23:38:58 2018 +0100

    Fix type checking errors.
    
    gold/
            * target.h (Sized_target::record_gnu_property): Change first two
            parameters to unsigned int.
            * x86_64.cc (Target_x86_64::record_gnu_property): Likewise.
    
    (cherry picked from commit dbf924a63a80f7044f491a09c0df6fe51a07e05e)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 gold/ChangeLog | 6 ++++++
 1 file changed, 6 insertions(+)

commit 294e4951e3055b9e5c525babc908ee639a2421a1
Author:     Roland McGrath <mcgrathr@google.com>
AuthorDate: Wed Aug 1 13:36:51 2018 -0700
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Fri Nov 30 23:38:35 2018 +0100

    Fix spurious check-ld failures on aarch64-elf
    
    ld/
            * testsuite/ld-aarch64/ifunc-1-local.d: Adjust regexps to match
            the offsets emitted by aarch64-elf configurations.
            * testsuite/ld-aarch64/ifunc-1.d: Likewise.
            * testsuite/ld-aarch64/ifunc-2-local.d: Likewise.
            * testsuite/ld-aarch64/ifunc-2.d: Likewise.
            * testsuite/ld-aarch64/ifunc-21.d: Likewise.
            * testsuite/ld-aarch64/ifunc-3a.d: Likewise.
    
    (cherry picked from commit c198a1ecf835c5896ef810ebe1ded06729039dcd)
    (cherry picked from commit 60b3b24ca106f01361f2d53aeaea747927df8675)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 ld/ChangeLog                            | 10 ++++++++++
 ld/testsuite/ld-aarch64/ifunc-1-local.d |  4 ++--
 ld/testsuite/ld-aarch64/ifunc-1.d       |  4 ++--
 ld/testsuite/ld-aarch64/ifunc-2-local.d |  6 +++---
 ld/testsuite/ld-aarch64/ifunc-2.d       |  6 +++---
 ld/testsuite/ld-aarch64/ifunc-21.d      |  4 ++--
 ld/testsuite/ld-aarch64/ifunc-3a.d      |  4 ++--
 7 files changed, 24 insertions(+), 14 deletions(-)

commit a092729ab9436ed29fcb911dfb57712378282dd7
Author:     Andre Simoes Dias Vieira <andre.simoesdiasvieira@arm.com>
AuthorDate: Thu Jul 19 16:18:28 2018 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Fri Nov 30 23:38:20 2018 +0100

    [PATCH, LD, AArch64] Fix ifunc testisms
    
    This patch fixes some ifunc testisms after H.J. Lu's patch to enable the
    use of IFUNC pointers in position dependent code for binutils. See PR
    LD/23169 in binutils bugzilla.
    
    The aarch64 ifunc error message test was changed to no longer expect
    this error message as this is now an accepted combination. This patch
    also disables the executable tests added by H.J. Lu for aarch64, just as
    Alan Modra did with his patch, as these tests only seem to work on some
    architectures.
    
    ld/ChangeLog:
    2018-07-19  Andre Vieira  <andre.simoesdiasvieira@arm.com>
    
            * testsuite/ld-aarch64/ifunc-9.d: Remove no longer expected error.
            * testsuite/ld-ifunc/ifunc.exp: Disable tests for aarch64.
    
    (cherry picked from commit 3ba174474d3cc063d6b7abf0bfdd6021bbaf8a90)
    (cherry picked from commit feaed904944b4c07c1335b81f0fc27b5988e33c8)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 ld/testsuite/ld-aarch64/ifunc-9.d | 3 ++-
 ld/testsuite/ld-ifunc/ifunc.exp   | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

commit ad296596e8029063badc9e0dd42a5e55184795ef
Author:     Jan Beulich <jbeulich@novell.com>
AuthorDate: Tue Jul 31 11:04:34 2018 +0200
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Fri Nov 30 23:37:55 2018 +0100

    x86: don't mistakenly scale non-8-bit displacements
    
    PR gas/23465
    
    In commit b5014f7af2 I've removed (instead of replaced) a conditional,
    resulting in addressing forms not allowing 8-bit displacements to now
    get their displacements scaled under certain circumstances. Re-add the
    missing conditional.
    
    (cherry picked from commit 2069ccaf8dc28ea699bd901fdd35d90613e4402a)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 gas/ChangeLog                             |  9 +++++++++
 gas/config/tc-i386.c                      |  3 ++-
 gas/testsuite/gas/i386/evex-no-scale-32.d | 13 +++++++++++++
 gas/testsuite/gas/i386/evex-no-scale-64.d | 15 +++++++++++++++
 gas/testsuite/gas/i386/evex-no-scale.s    | 19 +++++++++++++++++++
 gas/testsuite/gas/i386/i386.exp           |  2 ++
 6 files changed, 60 insertions(+), 1 deletion(-)

commit 8452329c224d6e589142579bedbdf5c4b77b8e1f
Author:     John David Anglin <danglin@gcc.gnu.org>
AuthorDate: Mon Jul 30 10:52:34 2018 -0400
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Fri Nov 30 23:37:36 2018 +0100

    Fix unwind offset for call_info->start_symbol.
    
            * config/tc-hppa.c: Include "struc-symbol.h".
            (pa_build_unwind_subspace): Use call_info->start_symbol->sy_frag
            instead of frag_now for local symbol replacement.
    
    (cherry picked from commit 254ade2586dffb800a1a08726080ad6e05076ebb)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 gas/ChangeLog        | 6 ++++++
 gas/config/tc-hppa.c | 4 +++-
 2 files changed, 9 insertions(+), 1 deletion(-)

commit 01290cd23af0e424c38552091eac83c88826d30b
Author:     Andreas Krebbel <krebbel@linux.ibm.com>
AuthorDate: Thu Jul 19 10:00:51 2018 +0200
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Fri Nov 30 23:37:13 2018 +0100

    S/390: Set the htm flag on PPA
    
    The PPA instruction will be emitted by GCC transactional execution
    builtins so it needs to be accepted with just -mhtm and without
    -march=zEC12.
    
    opcodes/ChangeLog:
    
    2018-07-24  Andreas Krebbel  <krebbel@linux.ibm.com>
    
            Backport from mainline
            2018-07-19  Andreas Krebbel  <krebbel@linux.ibm.com>
    
            * s390-opc.txt (PPA): Add the htm flag.
    
    (cherry picked from commit 29153520a85046471f8e75453c10a93c8ad535a4)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 opcodes/s390-opc.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit f75431b755bfa8edf0cdee5255fcdf07ff303b1a
Author:     H.J. Lu <hjl.tools@gmail.com>
AuthorDate: Fri Jul 20 09:18:47 2018 -0700
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Fri Nov 30 23:36:52 2018 +0100

    x86: Add a GNU_PROPERTY_X86_ISA_1_USED note if needed
    
    When -z separate-code, which is enabled by default for Linux/x86, is
    used to create executable, ld won't place any data in the code-only
    PT_LOAD segment.  If there are no data sections placed before the
    code-only PT_LOAD segment, the program headers won't be mapped into
    any PT_LOAD segment.  When the executable tries to access it (based
    on the program header address passed in AT_PHDR), it will lead to
    segfault.  This patch inserts a GNU_PROPERTY_X86_ISA_1_USED note if
    there may be no data sections before the text section so that the
    first PT_LOAD segment won't be code-only and will contain the program
    header.
    
    Testcases are adjusted to either pass "-z noseparate-code" to ld or
    discard the .note.gnu.property section.  A Linux/x86 run-time test is
    added.
    
    bfd/
    
            PR ld/23428
            * elfxx-x86.c (_bfd_x86_elf_link_setup_gnu_properties): If the
            separate code program header is needed, make sure that the first
            read-only PT_LOAD segment has no code by adding a
            GNU_PROPERTY_X86_ISA_1_USED note.
    
    ld/
    
            PR ld/23428
            * testsuite/ld-elf/linux-x86.S: New file.
            * testsuite/ld-elf/linux-x86.exp: Likewise.
            * testsuite/ld-elf/pr23428.c: Likewise.
            * testsuite/ld-elf/sec64k.exp: Pass "-z noseparate-code" to ld
            for Linux/x86 targets.
            * testsuite/ld-i386/abs-iamcu.d: Likewise.
            * testsuite/ld-i386/abs.d: Likewise.
            * testsuite/ld-i386/pr12718.d: Likewise.
            * testsuite/ld-i386/pr12921.d: Likewise.
            * testsuite/ld-x86-64/abs-k1om.d: Likewise.
            * testsuite/ld-x86-64/abs-l1om.d: Likewise.
            * testsuite/ld-x86-64/abs.d: Likewise.
            * testsuite/ld-x86-64/pr12718.d: Likewise.
            * testsuite/ld-x86-64/pr12921.d: Likewise.
            * testsuite/ld-linkonce/zeroeh.ld: Discard .note.gnu.property
            section.
            * testsuite/ld-scripts/print-memory-usage.t: Likewise.
            * testsuite/ld-scripts/size-2.t: Likewise.
            * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Use ld
            to create executable if language is "asm".
    
    (cherry picked from commit 241e64e3b42cd9eba514b8e0ad2ef39a337f10a5)
    (cherry picked from commit 6737a6b34f4823deb7142f27b4074831a37ac1e1)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 bfd/ChangeLog                                |  8 ++++
 bfd/elfxx-x86.c                              | 60 +++++++++++++++++++-------
 ld/ChangeLog                                 | 24 +++++++++++
 ld/testsuite/ld-elf/linux-x86.S              | 63 ++++++++++++++++++++++++++++
 ld/testsuite/ld-elf/linux-x86.exp            | 46 ++++++++++++++++++++
 ld/testsuite/ld-elf/pr23428.c                | 43 +++++++++++++++++++
 ld/testsuite/ld-elf/sec64k.exp               |  2 +
 ld/testsuite/ld-i386/abs-iamcu.d             |  2 +-
 ld/testsuite/ld-i386/abs.d                   |  2 +-
 ld/testsuite/ld-i386/pr12718.d               |  2 +-
 ld/testsuite/ld-i386/pr12921.d               |  2 +-
 ld/testsuite/ld-linkonce/zeroeh.ld           |  1 +
 ld/testsuite/ld-scripts/print-memory-usage.t |  2 +
 ld/testsuite/ld-scripts/size-2.t             |  1 +
 ld/testsuite/ld-x86-64/abs-k1om.d            |  2 +-
 ld/testsuite/ld-x86-64/abs-l1om.d            |  2 +-
 ld/testsuite/ld-x86-64/abs.d                 |  2 +-
 ld/testsuite/ld-x86-64/pr12718.d             |  2 +-
 ld/testsuite/ld-x86-64/pr12921.d             |  2 +-
 ld/testsuite/lib/ld-lib.exp                  |  5 ++-
 20 files changed, 248 insertions(+), 25 deletions(-)

commit b3606349380cf63500867ab65899d2a0bd36bd06
Author:     H.J. Lu <hjl.tools@gmail.com>
AuthorDate: Wed Jul 18 12:34:44 2018 -0700
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Fri Nov 30 23:36:19 2018 +0100

    x86: Split vcvtps2{,u}qq and vcvttps2{,u}qq
    
    After
    
    commit 1b54b8d7e4fc8055f9220a5287e8a94d8a65a88d
    Author: Jan Beulich <jbeulich@novell.com>
    Date:   Mon Dec 18 09:36:14 2017 +0100
    
        x86: fold RegXMM/RegYMM/RegZMM into RegSIMD
    
        ... qualified by their respective sizes, allowing to drop FirstXmm0 at
        the same time.
    
    folded RegXMM, RegYMM and RegZMM into RegSIMD, it's no longer impossible
    to distinguish if Xmmword can represent a memory reference when operand
    specification contains SIMD register. For example, template operands
    specification like these
    
    RegXMM|...|Xmmword|...
    
    and
    
    RegXMM|...
    
    The Xmmword bitfield is always set by RegXMM which is represented by
    "RegSIMD|Xmmword".  This patch splits each of vcvtps2qq, vcvtps2uqq,
    vcvttps2qq and vcvttps2uqq into 2 templates: one template only has
    RegXMM source operand and the other only has mempry source operand.
    
    gas/
    
            PR gas/23418
            * testsuite/gas/i386/xmmword.s: Add tests for vcvtps2qq,
            vcvtps2uqq, vcvttps2qq and vcvttps2uqq.
            * testsuite/gas/i386/xmmword.l: Updated.
    
    opcodes/
    
            PR gas/23418
            * i386-opc.h (Byte): Update comments.
            (Word): Likewise.
            (Dword): Likewise.
            (Fword): Likewise.
            (Qword): Likewise.
            (Tbyte): Likewise.
            (Xmmword): Likewise.
            (Ymmword): Likewise.
            (Zmmword): Likewise.
            * i386-opc.tbl: Split vcvtps2qq, vcvtps2uqq, vcvttps2qq and
            vcvttps2uqq.
            * i386-tbl.h: Regenerated.
    
    (cherry picked from commit 11a322db5c8bc23009e97af30180d6b14d86dbd3)
    (cherry picked from commit 01683b308a016c49418aee27241389bd2560e0f1)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 gas/ChangeLog                    |  7 ++++
 gas/testsuite/gas/i386/xmmword.l |  4 ++
 gas/testsuite/gas/i386/xmmword.s |  5 +++
 opcodes/ChangeLog                | 16 ++++++++
 opcodes/i386-opc.h               | 18 ++++-----
 opcodes/i386-opc.tbl             | 12 ++++--
 opcodes/i386-tbl.h               | 84 ++++++++++++++++++++++++++++++++++++----
 7 files changed, 125 insertions(+), 21 deletions(-)

commit 08ead2ebda3c0276598b5bb9ab0443b12468d0ac (tag: gentoo/binutils-2.31.1-3)
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: Wed Sep 12 23:44:29 2018 +0100
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: Thu Sep 20 20:18:13 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 791cea065fb43cb8025ac2b3950297b01e7e661c (tag: gentoo/binutils-2.31.1-2)
Author:     Cary Coutant <ccoutant@gmail.com>
AuthorDate: Mon Aug 6 13:36:42 2018 -0700
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: Mon Aug 27 13:59:27 2018 +0100

    Fix type checking errors.
    
    gold/
            * target.h (Sized_target::record_gnu_property): Change first two
            parameters to unsigned int.
            * x86_64.cc (Target_x86_64::record_gnu_property): Likewise.
    
    Reported-by: David Carlos Manuelda
    Bug: https://bugs.gentoo.org/663194

 gold/target.h  | 3 ++-
 gold/x86_64.cc | 5 +++--
 2 files changed, 5 insertions(+), 3 deletions(-)

commit b79b404bcd8f6de2e0846bd6939e9a7f77682555 (tag: gentoo/binutils-2.31.1-1)
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: Wed Jul 18 15:39:20 2018 +0200

    Gentoo: Fix tests for textrel warning message
    
    (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 d7ac9877b2756d80a9eade88abd8e4683b32b5cf
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: Thu Mar 1 12:35:03 2018 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Wed Jul 18 15:38:57 2018 +0200

    Gentoo: Restore TEXTREL warnings for non-shared objects

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

commit d004b380fb7f436c2c4231416f231766ae1c3883
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: Wed Jul 18 15:38:54 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 e940a998f319c6d208aa4d28e91efcdb33dd19d0
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: Wed Jul 18 15:38:51 2018 +0200

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

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

commit 20800a4aaae2aa0612ac8d742f854017abf952c8
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: Wed Jul 18 15:38:47 2018 +0200

    [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                | 114 ++++++++++++++++++++++++++
 4 files changed, 189 insertions(+)

commit a25f18fccce9b160f627e3158c5505d948cc1c00
Author:     Mike Frysinger <vapier@gentoo.org>
AuthorDate: Tue Jul 5 20:24:00 2016 +0545
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Wed Jul 18 15:35:41 2018 +0200

    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 418ae52847fa822fbde0acffa704be5151cda98f
Author:     Mike Frysinger <vapier@gentoo.org>
AuthorDate: Fri Jan 7 00:15:53 2005 -0500
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Wed Jul 18 15:35:38 2018 +0200

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

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

commit 2f15f2677abf214ba7acc06a0fa1682f9898111d
Author:     Mike Frysinger <vapier@gentoo.org>
AuthorDate: Fri Jan 7 00:15:53 2005 -0500
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Wed Jul 18 15:35:35 2018 +0200

    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 20ba81b7bbabfa6bf887067e355b4d281f78294e
Author:     Mike Frysinger <vapier@gentoo.org>
AuthorDate: Tue Oct 10 22:53:53 2017 +0200
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Wed Jul 18 15:35:32 2018 +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 9dec9a41490998f5093403bc31543edb96c926e0
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: Wed Jul 18 15:35:29 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 3d96df87f90bcd30ad9261a50947dd250b2d10ae
Author:     Mike Frysinger <vapier@gentoo.org>
AuthorDate: Mon May 16 22:10:19 2005 -0400
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Wed Jul 18 15:35:25 2018 +0200

    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 be8a252e184c292909ae91a41f12141fc79a2d67
Author:     Nick Clifton <nickc@redhat.com>
AuthorDate: Wed Jul 18 09:05:35 2018 +0100
Commit:     Nick Clifton <nickc@redhat.com>
CommitDate: Wed Jul 18 09:05:35 2018 +0100

    Set the development flag back to true.
    
            * development.sh: Set to true.

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