2018-01-05 Jim Wilson <jimw@sifive.com>
+ * testsuite/ld-riscv-elf/disas-jalr.d: New.
+ * testsuite/ld-riscv-elf/disas-jalr.s: New.
+ * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Run new testcase.
+
* emulparams/elf32lriscv-defs.sh (GENERATE_SHLIB_SCRIPT): Move inside
case on $target, and don't set for riscv*-elf targets.
(GENERATE_PIE_SCRIPT): Likewise.
--- /dev/null
+#name: jalr zero-offset symbols
+#source: disas-jalr.s
+#ld: --no-relax
+#objdump: -d
+
+.*:[ ]+file format .*
+
+Disassembly of section \.text:
+
+.* <_start>:
+#...
+.*:[ ]+fffff097[ ]+auipc[ ]+ra,0xfffff
+.*:[ ]+000080e7[ ]+jalr[ ]+ra # .* <_start>
--- /dev/null
+ .text
+ .globl _start
+_start:
+ .skip 4096
+ call _start
if [istarget "riscv*-*-*"] {
run_dump_test "c-lui"
+ run_dump_test "disas-jalr"
set abis { rv32gc ilp32 elf32lriscv rv64gc lp64 elf64lriscv }
foreach { arch abi emul } $abis {
+2018-01-05 Jim Wilson <jimw@sifive.com>
+
+ * riscv-dis.c (print_insn_args) <'s'>: Call maybe_print_address for a
+ jalr.
+
2018-01-03 Alan Modra <amodra@gmail.com>
Update year range in copyright notice of all files.
case 'b':
case 's':
+ if ((l & MASK_JALR) == MATCH_JALR)
+ maybe_print_address (pd, rs1, 0);
print (info->stream, "%s", riscv_gpr_names[rs1]);
break;