aboutsummaryrefslogtreecommitdiff
path: root/opcodes/sh-dis.c
diff options
context:
space:
mode:
authorKaz Kojima <kkojima@rr.iij4u.or.jp>2004-04-23 02:47:39 +0000
committerKaz Kojima <kkojima@rr.iij4u.or.jp>2004-04-23 02:47:39 +0000
commit1f1799d5ad9c8f2af8bebf4df515507c87659a9c (patch)
treec785649eb2136ae9a5be487efaf48dc287d51fa9 /opcodes/sh-dis.c
parent4d0d148db826dd8413051b44673b3fabfa35ebdc (diff)
downloadgdb-1f1799d5ad9c8f2af8bebf4df515507c87659a9c.zip
gdb-1f1799d5ad9c8f2af8bebf4df515507c87659a9c.tar.gz
gdb-1f1799d5ad9c8f2af8bebf4df515507c87659a9c.tar.bz2
bfd/
* elf32-sh.c (sh_elf_plt_sym_val): New function. (elf_backend_plt_sym_val): Define. opcodes/ * sh-dis.c (print_insn_sh): Print the value in constant pool as a symbol if it looks like a symbol. gas/testsuite/ * gas/sh/pcrel2.d: Update. * gas/sh/tlsd.d: Update. * gas/sh/tlsnopic.d: Update. * gas/sh/tlspic.d: Update. ld/testsuite/ * ld-sh/tlsbin-1.d: Update * ld-sh/tlspic-1.d: Update.
Diffstat (limited to 'opcodes/sh-dis.c')
-rw-r--r--opcodes/sh-dis.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/opcodes/sh-dis.c b/opcodes/sh-dis.c
index 840823e..527eb75 100644
--- a/opcodes/sh-dis.c
+++ b/opcodes/sh-dis.c
@@ -855,7 +855,13 @@ print_insn_sh (memaddr, info)
else
val = bfd_getb32 (bytes);
}
- fprintf_fn (stream, "\t! 0x%x", val);
+ if ((*info->symbol_at_address_func) (val, info))
+ {
+ fprintf_fn (stream, "\t! 0x");
+ (*info->print_address_func) (val, info);
+ }
+ else
+ fprintf_fn (stream, "\t! 0x%x", val);
}
}