bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/29087] "non-canonical reference to canonical protected function"


From: cvs-commit at gcc dot gnu.org
Subject: [Bug ld/29087] "non-canonical reference to canonical protected function" with protected visibility, -mno-direct-extern-access and virtual functions
Date: Thu, 28 Apr 2022 16:21:36 +0000

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

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

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

commit 68c4956b1401de70173848a6bdf620cb42fa9358
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Tue Apr 26 09:08:54 2022 -0700

    x86: Properly handle function pointer reference

    Update

    commit ebb191adac4ab45498dec0bfaac62f0a33537ba4
    Author: H.J. Lu <hjl.tools@gmail.com>
    Date:   Wed Feb 9 15:51:22 2022 -0800

        x86: Disallow invalid relocation against protected symbol

    to allow function pointer reference and make sure that PLT entry isn't
    used for function reference due to function pointer reference.

    bfd/

            PR ld/29087
            * elf32-i386.c (elf_i386_scan_relocs): Don't set
            pointer_equality_needed nor check non-canonical reference for
            function pointer reference.
            * elf64-x86-64.c (elf_x86_64_scan_relocs): Likewise.

    ld/

            PR ld/29087
            * testsuite/ld-x86-64/x86-64.exp: Run PR ld/29087 tests.
            * testsuite/ld-x86-64/protected-func-3.c: New file.

-- 
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]