diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2020-03-24 04:23:11 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2020-03-24 04:23:11 -0700 |
commit | 7e6e972f74aeac0ebdbd95a7f905d871cd2581de (patch) | |
tree | acbfcc916da7663766a6eb079c70ccdf8fa1f0d1 /binutils/ChangeLog | |
parent | a64fafb54577a87919a600474a3e4abe3510341a (diff) | |
download | gdb-7e6e972f74aeac0ebdbd95a7f905d871cd2581de.zip gdb-7e6e972f74aeac0ebdbd95a7f905d871cd2581de.tar.gz gdb-7e6e972f74aeac0ebdbd95a7f905d871cd2581de.tar.bz2 |
bfd: Display symbol version for nm -D
Extend _bfd_elf_get_symbol_version_string for nm -D to display symbol
version. _bfd_elf_get_symbol_version_name is added to avoid updating
all XXX_get_symbol_version_string functions.
bfd/
PR binutils/25708
* elf-bfd.h (_bfd_elf_get_symbol_version_name): New.
* elf.c (_bfd_elf_get_symbol_version_name): New function. Based
on the previous _bfd_elf_get_symbol_version_string.
(_bfd_elf_get_symbol_version_string): Use it.
binutils/
PR binutils/25708
* nm.c (SYM_NAME): Removed.
(print_symname): Add a pointer to struct extended_symbol_info
argument. Call _bfd_elf_get_symbol_version_name to get symbol
version.
(print_symdef_entry): Pass NULL to print_symname.
(print_symbol_info_bsd): Update call to print_symname.
(print_symbol_info_sysv): Likewise.
(print_symbol_info_posix): Likewise.
ld/
PR binutils/25708
* testsuite/ld-elf/pr25708.d: New file.
Diffstat (limited to 'binutils/ChangeLog')
-rw-r--r-- | binutils/ChangeLog | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 11be80d..2565f36 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,15 @@ +2020-03-24 H.J. Lu <hongjiu.lu@intel.com> + + PR binutils/25708 + * nm.c (SYM_NAME): Removed. + (print_symname): Add a pointer to struct extended_symbol_info + argument. Call _bfd_elf_get_symbol_version_name to get symbol + version. + (print_symdef_entry): Pass NULL to print_symname. + (print_symbol_info_bsd): Update call to print_symname. + (print_symbol_info_sysv): Likewise. + (print_symbol_info_posix): Likewise. + 2020-03-24 Alan Modra <amodra@gmail.com> * readelf.c (process_mips_specific): Free iconf on error path. |