bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/27998] relocation R_386_GOTOFF against STT_GNU_IFUNC symbol `foo


From: cvs-commit at gcc dot gnu.org
Subject: [Bug ld/27998] relocation R_386_GOTOFF against STT_GNU_IFUNC symbol `foo' isn't supported
Date: Sun, 20 Jun 2021 03:21:38 +0000

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

--- Comment #1 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=406b4ada55b2957c10fedaeaada801e77912d976

commit 406b4ada55b2957c10fedaeaada801e77912d976
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Sat Jun 19 20:20:52 2021 -0700

    x86: Count PLT for GOTOFF relocation against IFUNC symbol

    Since GOTOFF relocations against IFUNC symbols must go through PLT,
    set PLT reference count to 1 for GOTOFF relocation.

    bfd/

            PR ld/27998
            * elfxx-x86.c (elf_x86_allocate_dynrelocs): Count PLT for GOTOFF
            relocation against IFUNC symbols.
            (_bfd_x86_elf_adjust_dynamic_symbol): Likewise.

    ld/

            PR ld/27998
            * testsuite/ld-i386/i386.exp: Run PR ld/27998 tests.
            * testsuite/ld-i386/pr27998a.d: New file.
            * testsuite/ld-i386/pr27998a.s: Likewise.
            * testsuite/ld-i386/pr27998b.d: Likewise.
            * testsuite/ld-i386/pr27998b.s: Likewise.

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