bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/17709] [2.26 Regression] elf/vismain test in glibc failed


From: cvs-commit at gcc dot gnu.org
Subject: [Bug ld/17709] [2.26 Regression] elf/vismain test in glibc failed
Date: Mon, 25 Jul 2022 17:24:25 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=17709

--- Comment #8 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot 
gnu.org> ---
The binutils-2_39-branch branch has been updated by H.J. Lu
<hjl@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=fc69c7e989d531c95c686ce2bed3d3f89c33c142

commit fc69c7e989d531c95c686ce2bed3d3f89c33c142
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Mon Jul 18 18:24:26 2022 -0700

    x86: Disallow invalid relocations against protected symbols

    Since glibc 2.36 will issue warnings for copy relocation against
    protected symbols and non-canonical reference to canonical protected
    functions, change the linker to always disallow such relocations.

    bfd/

            * elf32-i386.c (elf_i386_scan_relocs): Remove check for
            elf_has_indirect_extern_access.
            * elf64-x86-64.c (elf_x86_64_scan_relocs): Likewise.
            (elf_x86_64_relocate_section): Remove check for
            elf_has_no_copy_on_protected.
            * elfxx-x86.c (elf_x86_allocate_dynrelocs): Check for building
            executable instead of elf_has_no_copy_on_protected.
            (_bfd_x86_elf_adjust_dynamic_symbol): Disallow copy relocation
            against non-copyable protected symbol.
            * elfxx-x86.h (SYMBOL_NO_COPYRELOC): Remove check for
            elf_has_no_copy_on_protected.

    ld/

            * testsuite/ld-i386/i386.exp: Expect linker error for PR ld/17709
            test.
            * testsuite/ld-i386/pr17709.rd: Removed.
            * testsuite/ld-i386/pr17709.err: New file.
            * testsuite/ld-x86-64/pr17709.rd: Removed.
            * testsuite/ld-x86-64/pr17709.err: New file.
            * testsuite/ld-x86-64/pr28875-func.err: Updated.
            * testsuite/ld-x86-64/x86-64.exp: Expect linker error for PR
            ld/17709 test.  Add tests for function pointer against protected
            function.

    (cherry picked from commit f638657759f5b9b4eb31a1aa6b9fe6e6fb01f4a0)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]