From: Nick Clifton Date: Wed, 18 Aug 2004 09:44:11 +0000 (+0000) Subject: PR 324 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=271d0fc399a1d41cee9d2f34fbb15e18e008a6bb;p=binutils-gdb.git PR 324 (coff_link_add_symbols): Check that the comdat pointer in the coff_section_data structure has been initialised before using it. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 7c24b394a34..f9f11261d5c 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,10 @@ +2004-08-18 Nick Clifton + + PR 324 + * cofflink.c (coff_link_add_symbols): Check that the comdat + pointer in the coff_section_data structure has been initialised + before using it. + 2004-08-18 Alan Modra PR 338 diff --git a/bfd/cofflink.c b/bfd/cofflink.c index 6520669f282..ca144cc4929 100644 --- a/bfd/cofflink.c +++ b/bfd/cofflink.c @@ -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)