diff options
author | Kaz Kojima <kkojima@rr.iij4u.or.jp> | 2004-04-23 02:47:39 +0000 |
---|---|---|
committer | Kaz Kojima <kkojima@rr.iij4u.or.jp> | 2004-04-23 02:47:39 +0000 |
commit | e85231387c0aaa9a5bdd4619e5531b6c5e4779de (patch) | |
tree | 85f3d88bd965083b7d6bdbf2b45e3725ad78c0ac /opcodes/sh-dis.c | |
parent | fb313aea40e52e0fff025d23a21ca47eac1ff306 (diff) | |
download | gdb-e85231387c0aaa9a5bdd4619e5531b6c5e4779de.tar.gz |
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.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/opcodes/sh-dis.c b/opcodes/sh-dis.c index 840823e0206..527eb759377 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); } } |