bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/27491] ld: relocation R_X86_64_PC32 against undefined protected


From: cvs-commit at gcc dot gnu.org
Subject: [Bug ld/27491] ld: relocation R_X86_64_PC32 against undefined protected symbol `__start_xx' can not be used when making a shared object
Date: Thu, 02 Dec 2021 11:56:35 +0000

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

--- Comment #9 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=794f2bba0f338d467bbf9c55b5aba415ecd5e138

commit 794f2bba0f338d467bbf9c55b5aba415ecd5e138
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Wed Dec 1 04:55:24 2021 -0800

    x86: Skip __[start|stop]_SECNAME for --gc-sections -z start-stop-gc

    Don't convert memory load to immediate load on __start_SECNAME and
    __stop_SECNAME for --gc-sections -z start-stop-gc if all SECNAME
    sections been garbage collected.

    bfd/

            PR ld/27491
            * elf32-i386.c (elf_i386_convert_load_reloc): Skip __start_SECNAME
            and __stop_SECNAME for --gc-sections -z start-stop-gc if the input
            section been garbage collected.
            * elf64-x86-64.c (elf_x86_64_convert_load_reloc): Likewise.
            * elfxx-x86.h (elf_x86_start_stop_gc_p): New function.

    ld/
            PR ld/27491
            * testsuite/ld-i386/i386.exp: Run PR ld/27491 tests.
            * testsuite/ld-x86-64/x86-64.exp: Likewise.
            * testsuite/ld-i386/pr27491-1.s: New file.
            * testsuite/ld-i386/pr27491-1a.d: Likewise.
            * testsuite/ld-i386/pr27491-1b.d: Likewise.
            * testsuite/ld-i386/pr27491-1c.d: Likewise.
            * testsuite/ld-i386/pr27491-2.d: Likewise.
            * testsuite/ld-i386/pr27491-2.s: Likewise.
            * testsuite/ld-i386/pr27491-3.d: Likewise.
            * testsuite/ld-i386/pr27491-3.s: Likewise.
            * testsuite/ld-i386/pr27491-4.d: Likewise.
            * testsuite/ld-i386/pr27491-4a.s: Likewise.
            * testsuite/ld-i386/pr27491-4b.s: Likewise.
            * testsuite/ld-x86-64/pr27491-1.s: Likewise.
            * testsuite/ld-x86-64/pr27491-1a.d: Likewise.
            * testsuite/ld-x86-64/pr27491-1b.d: Likewise.
            * testsuite/ld-x86-64/pr27491-1c.d: Likewise.
            * testsuite/ld-x86-64/pr27491-2.d: Likewise.
            * testsuite/ld-x86-64/pr27491-2.s: Likewise.
            * testsuite/ld-x86-64/pr27491-3.d: Likewise.
            * testsuite/ld-x86-64/pr27491-3.s: Likewise.
            * testsuite/ld-x86-64/pr27491-4.d: Likewise.
            * testsuite/ld-x86-64/pr27491-4a.s: Likewise.
            * testsuite/ld-x86-64/pr27491-4b.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]