bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/21782] Fail to create static PIE with undefined weak symbols


From: cvs-commit at gcc dot gnu.org
Subject: [Bug ld/21782] Fail to create static PIE with undefined weak symbols
Date: Mon, 17 Jul 2017 19:54:54 +0000

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

--- Comment #3 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot 
gnu.org> ---
The binutils-2_29-branch branch has been updated by H.J. Lu
<address@hidden>:

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

commit 89f512d3eca31aae9498430d3cdad6be8cf44c9a
Author: H.J. Lu <address@hidden>
Date:   Mon Jul 17 12:17:59 2017 -0700

    x86-64: Limit PIC check to shared library build

    When building an executable, undefined symbols are error and undefined
    weak symbols are resolved to zero.  We only need to check PIC for
    building a shared library.

    bfd/

        PR ld/21782
        * elf64-x86-64.c (elf_x86_64_relocate_section): Limit PIC check
        to shared library.

    ld/

        PR ld/21782
        * testsuite/ld-x86-64/pie3-nacl.d: New file.
        * testsuite/ld-x86-64/pie3.d: Likewise.
        * testsuite/ld-x86-64/pie3.s: Likewise.
        * testsuite/ld-x86-64/x86-64.exp: Run pie3 and pie3-nacl.

    (cherry picked from commit c5bb8910e80c6cd80c63541f86471c18375c8198)

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