diff options
author | Nick Clifton <nickc@redhat.com> | 2004-08-18 09:44:11 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2004-08-18 09:44:11 +0000 |
commit | eeea3ca96cd281d49e4e6594025ed8dc2d9cc816 (patch) | |
tree | ebf8587a8b749a02363578fa74cf2183ba9e0a96 /bfd/cofflink.c | |
parent | e92fa636be88c969b3e2a5b77e0a68805cb3de7f (diff) | |
download | binutils-redhat-eeea3ca96cd281d49e4e6594025ed8dc2d9cc816.tar.gz |
PR 324
(coff_link_add_symbols): Check that the comdat pointer in the coff_section_data
structure has been initialised before using it.
Diffstat (limited to 'bfd/cofflink.c')
-rw-r--r-- | bfd/cofflink.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bfd/cofflink.c b/bfd/cofflink.c index 6520669f28..ca144cc492 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) |