Avoid creating symbol table entries for registers
authorAndrew Waterman <andrew@sifive.com>
Tue, 20 Dec 2016 22:25:33 +0000 (14:25 -0800)
committerAlan Modra <amodra@gmail.com>
Wed, 21 Dec 2016 13:49:47 +0000 (00:19 +1030)
commit58a6d3c9d8d4d4be8f1dfc1a49fed264dceddaba
treea3770cd80918701a536178b68fa33e91563e9d86
parent9ef7906f20e81faa4498761002e6376f4d35c865
Avoid creating symbol table entries for registers

Instructions like "jal t0, foo" were erroneously creating symbol table
entries for t0 as well as foo, which causes linking problems.  Fix by
reordering instruction alternatives so that t0 is first attempted to
be parsed as a register, rather than as a symbol.

* riscv-opc.c (riscv_opcodes): Reorder jal and call entries.
opcodes/ChangeLog
opcodes/riscv-opc.c