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: jose.marchesi at oracle dot com
Subject: [Bug gas/21407] gas -relax option on SPARC generates incorrect code
Date: Mon, 24 Apr 2017 15:01:31 +0000

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

Jose E. Marchesi <jose.marchesi at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jose.marchesi at oracle dot com

--- Comment #1 from Jose E. Marchesi <jose.marchesi at oracle dot com> ---
Hi Jeremy.

I cannot reproduce the issue with latest git binutils (nor with an old binutils
2.20) in sparc64-linux-gnu, so this seems to be Solaris specific.

Anyway, I would expect for the relaxation to not happen when the value of the
symbol is not known at assemble time (addsy is not NULL) as there is no way for
the assembler to determine whether the branch distance will fall within the
narrower limits of the branch instructions after resolution.

If the relaxation happens, the fixup is fully resolved in md_apply_fix, and no
relocation is generated by the assembler.

I will try to reproduce the problem in a solaris machine.

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