This is the mail archive of the
mailing list for the binutils project.
Re: [PATCH] nm: basic symbol type support for SysV-style symbol table dumping
- From: "Jan Beulich" <JBeulich at suse dot com>
- To: "Nick Clifton" <nickc at redhat dot com>
- Cc: <binutils at sourceware dot org>
- Date: Fri, 11 Dec 2015 06:20:41 -0700
- Subject: Re: [PATCH] nm: basic symbol type support for SysV-style symbol table dumping
- Authentication-results: sourceware.org; auth=none
- References: <5665B25702000078000BCB47 at prv-mh dot provo dot novell dot com> <5666AE6502000078000BD0DE at prv-mh dot provo dot novell dot com> <566AC7CE dot 3060605 at redhat dot com>
>>> On 11.12.15 at 13:55, <firstname.lastname@example.org> wrote:
>> Btw., the title should really read "nm: basic COFF symbol type support
>> for SysV-style symbol table dumping", which is what I would commit if
>>> 2015-12-07 Jan Beulich <email@example.com>
>>> * nm.c: Include coff/external.h, coff/internal.h, and
>>> (struct extended_symbol_info): New field "coffinfo".
>>> (get_symbol_type): Rename to get_elf_symbol_type.
>>> (get_coff_symbol_type): New.
>>> (print_symbol): Also init info.coffinfo.
>>> (print_symbol_info_sysv): Print type and section name also for
>>> COFF symbols.
> Please could you add a binutils test for this new feature ? Approved
> with that change.
Well, the same applies here as mentioned in "bfd: don't produce
corrupt COFF symbol table due to long ELF file name symbols": I
would have liked to, but since the case of interest to me (and
hence the case that should primarily not break) is not on COFF
targets or against COFF objects, but for EFI binaries (linked from
ELF objects), I have no real clue how I would properly gate such
a test, nor would I then routinely run it and possible notice issues.