Skip to content
Snippets Groups Projects
Commit f2b2af2c authored by Alan Modra's avatar Alan Modra
Browse files

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.
parent dab26bf4
No related branches found
No related tags found
No related merge requests found
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> 2016-06-24 Alan Modra <amodra@gmail.com>
* objcopy.c (find_section_rename): Forward declare. Remove * objcopy.c (find_section_rename): Forward declare. Remove
......
...@@ -823,6 +823,7 @@ objdump_print_symname (bfd *abfd, struct disassemble_info *inf, ...@@ -823,6 +823,7 @@ objdump_print_symname (bfd *abfd, struct disassemble_info *inf,
name = alloc; name = alloc;
} }
if ((sym->flags & BSF_SYNTHETIC) == 0)
version_string = bfd_get_symbol_version_string (abfd, sym, &hidden); version_string = bfd_get_symbol_version_string (abfd, sym, &hidden);
if (bfd_is_und_section (bfd_get_section (sym))) if (bfd_is_und_section (bfd_get_section (sym)))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment