RISC-V/GAS: Improve handling of invalid relocs
authorAndrew Waterman <andrew@sifive.com>
Wed, 21 Dec 2016 20:47:13 +0000 (12:47 -0800)
committerPalmer Dabbelt <palmer@dabbelt.com>
Mon, 9 Jan 2017 17:18:36 +0000 (09:18 -0800)
commite294484ee7e8dea53d091443a0f24c7939ac15ed
treee9c7cc778f2ea32840305b3ebe06254ca1634771
parent6ec11ab97ab47ec4a22118e5b1c77df567796002
RISC-V/GAS: Improve handling of invalid relocs

TLS relocs against constants previously segfaulted, and illegal
symbol subtractions were silently ignored.

The previous behavior was to segfault.

gas/ChangeLog

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

* config/tc-riscv.c (md_apply_fix): Report TLS relocations against
constants.  Report disallowed symbol subtractions.
gas/ChangeLog
gas/config/tc-riscv.c