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

--- Comment #8 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot 
gnu.org> ---
The binutils-2_37-branch branch has been updated by H.J. Lu
<h...@sourceware.org>:

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

commit cce64d8d01ba1558f9fc93775b9d96b40a019199
Author: H.J. Lu <hjl.to...@gmail.com>
Date:   Thu Jul 8 14:03:53 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.

    (cherry picked from commit 661b504df9bfb8d7c5d669091720e1dc0079c05e)

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to