bug-binutils
[Top][All Lists]
Advanced

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

[Bug gas/21407] gas -relax option on SPARC generates incorrect code


From: cvs-commit at gcc dot gnu.org
Subject: [Bug gas/21407] gas -relax option on SPARC generates incorrect code
Date: Tue, 25 Apr 2017 09:52:12 +0000

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

--- Comment #7 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot 
gnu.org> ---
The master branch has been updated by Jose E. Marchesi
<address@hidden>:

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

commit d28b6364b1fba1c0270c001f0d82a69e351e1922
Author: Jose E. Marchesi <address@hidden>
Date:   Tue Apr 25 02:40:43 2017 -0700

    gas: sparc: fix relaxation of CALL instruction into branches in a.out
targets

    This patch avoids CALL instructions to be optimized into branches if
    the symbols referred to in the CALL instruction are not fully resolved
    at the time the assembler writes its output.

    Tested in sparc64-linux-gnu and sparc-sun-sunos4.1.3 targets.
    No regressions.

    gas/ChangeLog:

    2017-04-25  Jose E. Marchesi  <address@hidden>

        PR gas/21407
        * config/tc-sparc.c (md_apply_fix): Do not transform `call'
        instructions into branch instructions in fixups generating
        additional relocations.
        * testsuite/gas/sparc/call-relax.s: New file.
        * testsuite/gas/sparc/call-relax.d: Likewise.
        * testsuite/gas/sparc/call-relax-aout.d: Likewise.
        * testsuite/gas/sparc/sparc.exp: Test call-relax and call-relax-aout.

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