Invalid read in _bfd_elf_get_symbol_version_string

PR 20304
	* objdump.c (objdump_print_symname): Don't attempt to retrieve
	version info from synthetic symbols.
This commit is contained in:
Alan Modra 2016-06-28 18:59:33 +09:30
parent dab26bf4e7
commit f2b2af2c9f
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2016-06-28 Alan Modra <amodra@gmail.com>
PR 20304
* objdump.c (objdump_print_symname): Don't attempt to retrieve
version info from synthetic symbols.
2016-06-24 Alan Modra <amodra@gmail.com>
* objcopy.c (find_section_rename): Forward declare. Remove

View File

@ -823,7 +823,8 @@ objdump_print_symname (bfd *abfd, struct disassemble_info *inf,
name = alloc;
}
version_string = bfd_get_symbol_version_string (abfd, sym, &hidden);
if ((sym->flags & BSF_SYNTHETIC) == 0)
version_string = bfd_get_symbol_version_string (abfd, sym, &hidden);
if (bfd_is_und_section (bfd_get_section (sym)))
hidden = TRUE;