summaryrefslogtreecommitdiff
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
commitb4e832df1fa00f3169a670cdc832dffcfb9b0bc9 (patch)
tree0402b47e73321d901a182896b08c5b34fcfc63d1 /opcodes/sh-dis.c
parent6dcee2f29f64cf9deff1f445d8994e43fe55113c (diff)
downloadbinutils-redhat-b4e832df1fa00f3169a670cdc832dffcfb9b0bc9.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.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/opcodes/sh-dis.c b/opcodes/sh-dis.c
index 840823e020..527eb75937 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);
}
}