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: Thu, 08 Jul 2021 21:02:18 +0000

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

--- Comment #7 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=661b504df9bfb8d7c5d669091720e1dc0079c05e

commit 661b504df9bfb8d7c5d669091720e1dc0079c05e
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Thu Jul 8 13:49:17 2021 -0700

    x86-64: Disallow PC reloc against weak undefined symbols in PIE

    Disallow PC relocations against weak undefined symbols in PIE since they
    can lead to non-zero address at run-time.

    bfd/

            PR ld/21782
            * elf64-x86-64.c (elf_x86_64_relocate_section): Disallow PC
            relocations against weak undefined symbols in PIE.

    ld/

            PR ld/21782
            * testsuite/ld-x86-64/pie3.d: Expect linker error.

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