bug-binutils
[Top][All Lists]
Advanced

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

[Bug gold/26939] gold: Don't relax R_X86_64_GOTPCRELX when addend != -4


From: cvs-commit at gcc dot gnu.org
Subject: [Bug gold/26939] gold: Don't relax R_X86_64_GOTPCRELX when addend != -4
Date: Sun, 29 Nov 2020 14:08:51 +0000

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

--- Comment #3 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=568cbddc710f6cb6be752f390a1521cd5556ad9b

commit 568cbddc710f6cb6be752f390a1521cd5556ad9b
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Sun Nov 29 06:00:37 2020 -0800

    gold: Convert x86-64 GOTPCRELX only if addend == -4

    Convert x86-64 GOTPCRELX relocations only if addend == -4.

            PR gold/26939
            * x86_64.cc (Target_x86_64<size>::Scan::local): Check
            get_r_addend() == -4 for GOTPCRELX conversion.
            (Target_x86_64<size>::Scan::global): Likewise.
            (Target_x86_64<size>::Relocate::relocate): Likewise.
            * testsuite/Makefile.am (check_DATA): Add
            x86_64_mov_to_lea15.stdout and x86_64_mov_to_lea16.stdout.
            (MOSTLYCLEANFILES): Add x86_64_mov_to_lea15 and
            x86_64_mov_to_lea16.
            (x86_64_mov_to_lea9.o): New target.
            (x86_64_mov_to_lea10.o): Likewise.
            (x86_64_mov_to_lea15): Likewise.
            (x86_64_mov_to_lea16): Likewise.
            (x86_64_mov_to_lea15.stdout): Likewise.
            (x86_64_mov_to_lea16.stdout): Likewise.
            * testsuite/Makefile.in: Regenerated.
            * testsuite/x86_64_mov_to_lea.sh: Updated.
            * testsuite/x86_64_mov_to_lea5.s: New file.

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