bug-binutils
[Top][All Lists]
Advanced

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

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


From: cvs-commit at gcc dot gnu.org
Subject: [Bug ld/29377] non-canonical reference to canonical protected function
Date: Tue, 19 Jul 2022 16:12:34 +0000

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

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

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

commit 19892fedb7b7e9129d76a0c48b26721d4973fb20
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Mon Jul 18 11:44:32 2022 -0700

    x86: Properly check invalid relocation against protected symbol

    Only check invalid relocation against protected symbol defined in shared
    object.

    bfd/

            PR ld/29377
            * elf32-i386.c (elf_i386_scan_relocs): Only check invalid
            relocation against protected symbol defined in shared object.
            * elf64-x86-64.c (elf_x86_64_scan_relocs): Likewise.

    ld/

            PR ld/29377
            * testsuite/ld-elf/linux-x86.exp: Run PR ld/29377 tests.
            * testsuite/ld-elf/pr29377a.c: New file.
            * testsuite/ld-elf/pr29377b.c: Likewise.

    (cherry picked from commit bd0736124c20950ac353f01e5029b7cb5d8a7010)

    ld: Pass -nostdlib to compiler with -r

    Pass -nostdlib to compiler with -r to avoid unnecessary .o file and
    libraries.

            PR ld/29377
            * testsuite/ld-elf/linux-x86.exp: Pass -nostdlib with -r.

    (cherry picked from commit 76e4fa70e79ee959c0e11eaacd4cf863291b1ddb)

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