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>
Mon, 9 Jan 2017 17:20:05 +0000 (09:20 -0800)
commita5ec5e3fe1b8fe1395c79ff29052edad91266a76
tree88733553071df8c89c24eb6121be64d20fa30496
parente294484ee7e8dea53d091443a0f24c7939ac15ed
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