diff options
author | Nick Clifton <nickc@redhat.com> | 2008-12-04 08:04:47 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2008-12-04 08:04:47 +0000 |
commit | 171191bac50ef813c1fb456551662df9361bd683 (patch) | |
tree | a81b63e45ce2f62d06cd2b6a56e1064db066b694 /binutils/objdump.c | |
parent | 77a4f04d8018dc588aa05aea727d13a746ce8faf (diff) | |
download | gdb-171191bac50ef813c1fb456551662df9361bd683.zip gdb-171191bac50ef813c1fb456551662df9361bd683.tar.gz gdb-171191bac50ef813c1fb456551662df9361bd683.tar.bz2 |
* 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.
Diffstat (limited to 'binutils/objdump.c')
-rw-r--r-- | binutils/objdump.c | 7 |
1 files changed, 6 insertions, 1 deletions
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) |