This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: PATCH: Add type and section to nm
On Sun, Jun 16, 2002 at 08:41:07AM -0700, H . J . Lu wrote:
> * 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.
OK. While you're at it, could you commit
http://sources.redhat.com/ml/binutils/2002-06/msg00495.html too?
--
Alan Modra
IBM OzLabs - Linux Technology Centre