bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/24458] Linker BFD 2.32 regression: __ehdr_start not useable in s


From: cvs-commit at gcc dot gnu.org
Subject: [Bug ld/24458] Linker BFD 2.32 regression: __ehdr_start not useable in shared libraries: "relocation R_X86_64_PC32 against undefined symbol `__ehdr_start' can not be used when making a shared object; recompile with -fPIC"
Date: Wed, 17 Apr 2019 16:14:06 +0000

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

--- 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 <address@hidden>:

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

commit 4e84a8f8bbeab52fa7048873655e582ceb92534d
Author: H.J. Lu <address@hidden>
Date:   Wed Apr 17 09:08:46 2019 -0700

    x86: Also check x86 linker_def for non-shared definition

    Since elf_x86_linker_defined sets linker_def in elf_x86_link_hash_entry
    for linker defined symbols, SYMBOL_DEFINED_NON_SHARED_P should also check
    linker_def in elf_x86_link_hash_entry.

    bfd/

        PR ld/24458
        * elfxx-x86.h (SYMBOL_DEFINED_NON_SHARED_P): Also check x86
        linker_def.

    ld/

        PR ld/24458
        * testsuite/ld-x86-64/x86-64.exp: Run PR ld/24458 tests.
        * testsuite/ld-x86-64/pr24458.s: New file.
        * testsuite/ld-x86-64/pr24458a-x32.d: Likewise.
        * testsuite/ld-x86-64/pr24458a.d: Likewise.
        * testsuite/ld-x86-64/pr24458b-x32.d: Likewise.
        * testsuite/ld-x86-64/pr24458b.d: Likewise.
        * testsuite/ld-x86-64/pr24458c-x32.d: Likewise.
        * testsuite/ld-x86-64/pr24458c.d: 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]