bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/19609] [2.26 Regression] Load defined symbol in non-PIC link are


From: cvs-commit at gcc dot gnu.org
Subject: [Bug ld/19609] [2.26 Regression] Load defined symbol in non-PIC link are wrongly optimized
Date: Thu, 04 Feb 2021 14:08:57 +0000

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

--- Comment #5 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=1a2f1b54a520b28891910846c8671e1c4bcaf348

commit 1a2f1b54a520b28891910846c8671e1c4bcaf348
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Thu Feb 4 06:02:13 2021 -0800

    x86-64: Provide more info when failed to convert GOTPCREL

    Provide

    [hjl@gnu-cfl-2 ld]$ ./ld-new -z norelro 
-L/export/gnu/import/git/gitlab/x86-binutils/ld/testsuite/ld-x86-64 
-melf32_x86_64 -Ttext=0x80000000 -o tmpdir/dump tmpdir/pr19609-7.o
    tmpdir/pr19609-7.o: in function `_start':
    (.text+0x2): failed to convert GOTPCREL relocation against 'foobar'; relink
with --no-relax
    [hjl@gnu-cfl-2 ld]$

    instead of

    [hjl@gnu-cfl-2 ld]$ ld -z norelro 
-L/export/gnu/import/git/gitlab/x86-binutils/ld/testsuite/ld-x86-64 
-melf32_x86_64 -Ttext=0x80000000 -o tmpdir/dump tmpdir/pr19609-7.o
    ld: failed to convert GOTPCREL relocation; relink with --no-relax
    [hjl@gnu-cfl-2 ld]$

    bfd/

            PR ld/19609
            * elf64-x86-64.c (elf_x86_64_relocate_section): Provide more
            info when failed to convert GOTPCREL relocation.

    ld/

            PR ld/19609
            * testsuite/ld-x86-64/pr19609-2a.d: Updated.
            * testsuite/ld-x86-64/pr19609-2b.d: Likewise.
            * testsuite/ld-x86-64/pr19609-4a.d: Likewise.
            * testsuite/ld-x86-64/pr19609-4c.d: Likewise.
            * testsuite/ld-x86-64/pr19609-5d.d: Likewise.
            * testsuite/ld-x86-64/pr19609-7a.d: Likewise.
            * testsuite/ld-x86-64/pr19609-7c.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]