(coff_link_add_symbols): Check that the comdat pointer in the coff_section_data
structure has been initialised before using it.
This commit is contained in:
Nick Clifton
2004-08-18 09:44:11 +00:00
parent e65123b72d
commit 271d0fc399
2 changed files with 8 additions and 0 deletions

View File

@@ -435,6 +435,7 @@ coff_link_add_symbols (bfd *abfd,
if (obj_pe (abfd)
&& (classification == COFF_SYMBOL_GLOBAL
|| classification == COFF_SYMBOL_PE_SECTION)
&& coff_section_data (abfd, section) != NULL
&& coff_section_data (abfd, section)->comdat != NULL
&& strncmp (name, "??_", 3) == 0
&& strcmp (name, coff_section_data (abfd, section)->comdat->name) == 0)