]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
RISC-V/GAS: Support more relocs against constant addresses
authorAndrew Waterman <andrew@sifive.com>
Thu, 22 Dec 2016 02:05:28 +0000 (18:05 -0800)
committerPalmer Dabbelt <palmer@dabbelt.com>
Tue, 17 Jan 2017 05:33:14 +0000 (21:33 -0800)
commitf4a292321b21ef3af34520edd9714ea5b4d12dd5
tree54cb7db71409283fdabc026f80fb6f7e25dc196f
parent2398b2bad9812c7bada17563805ee61f72c8cc87
RISC-V/GAS: Support more relocs against constant addresses

Previously, some pseudoinstructions like "call" only accepted
symbolic addresses and rejected constant addresses with an
esoteric internal error.  This patch enables them by deferring
application of constant relocations to md_apply_fix, rather than
eagerly applying them during instruction assembly.

gas/ChangeLog

2017-01-09  Andrew Waterman <andrew@sifive.com>

* config/tc-riscv.c (append_insn): Don't eagerly apply relocations
against constants.
(md_apply_fix): Mark relocations against constants as "done."
gas/ChangeLog
gas/config/tc-riscv.c