2002-06-18 H.J. Lu (hjl@gnu.org)
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 19 Jun 2002 03:07:04 +0000 (03:07 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 19 Jun 2002 03:07:04 +0000 (03:07 +0000)
commit33f5f537800aad5a854e03e77ba79ae2bff5ab00
tree910754cd78e5266a17bb0bf30158fc608c49fa9c
parent8505f8840799eb6b7b9efdf801299e2107009d84
2002-06-18  H.J. Lu  (hjl@gnu.org)

* nm.c: Include "elf/common.h".
(extended_symbol_info): Add elfinfo, a pointer to
elf_symbol_type.
(SYM_SIZE): Use elfinfo if it is not NULL.
(get_symbol_type): New function.
(display_archive): Set print_width for each archive member.
(display_file): Likewise.
(display_rel_file): Don't set print_width here.
(print_object_filename_sysv): Handle print_width.
(print_archive_member_sysv): Likewise.
(print_symbols): Pass (bfd_vma) 0 to print_symbol.
(print_symbol): Set the elfinfo field in extended_symbol_info
for ELF.
(print_object_filename_sysv): Fix the output format.
(print_symbol_info_sysv): Print type and section for ELF.

2002-06-18  Elias Athanasopoulos  <eathan@otenet.gr>

* nm.c (print_size_symbols): Remove assignment, which makes
the symbol's size equal to its value when --size-sort is
used.
binutils/ChangeLog
binutils/nm.c