From 171191bac50ef813c1fb456551662df9361bd683 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Thu, 4 Dec 2008 08:04:47 +0000 Subject: * objdump.c (dump_reloc_set): Append "()" to symbol names which have the BSF_INDIRECT_FUNCTION type. * readelf.c (print_symbol): Fix handling of negative widths. (dump_relocations): Append "()" to symbol names which have the STT_IFUNC type. Display negative offsets as a positive number with a "-" prefix. (get_symbol_type): Return "IFUNC" for STT_IFUNC symbols. * doc/binutils.texi: Document 'i' symbol type. --- binutils/objdump.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'binutils/objdump.c') diff --git a/binutils/objdump.c b/binutils/objdump.c index b1411d9..ac5fa0d 100644 --- a/binutils/objdump.c +++ b/binutils/objdump.c @@ -2718,8 +2718,13 @@ dump_reloc_set (bfd *abfd, asection *sec, arelent **relpp, long relcount) printf (" %-16s ", q->howto->name); else printf (" %-16d ", q->howto->type); + if (sym_name) - objdump_print_symname (abfd, NULL, *q->sym_ptr_ptr); + { + objdump_print_symname (abfd, NULL, *q->sym_ptr_ptr); + if ((*q->sym_ptr_ptr)->flags & BSF_INDIRECT_FUNCTION) + printf ("() "); + } else { if (section_name == NULL) -- cgit v1.1