* coffgen.c (bfd_coff_get_comdat_section): Check that

coff_section_data isn't NULL.
This commit is contained in:
Alan Modra 2005-02-21 11:21:29 +00:00
parent 85e3476f96
commit fedf8d51e0
2 changed files with 9 additions and 7 deletions

View File

@ -1,3 +1,8 @@
2005-02-21 Alan Modra <amodra@bigpond.net.au>
* coffgen.c (bfd_coff_get_comdat_section): Check that
coff_section_data isn't NULL.
2005-02-21 Alan Modra <amodra@bigpond.net.au>
* bfd-in.h (bfd_elf_bfd_from_remote_memory): Warning fix.
@ -43,10 +48,6 @@
* bfd-in2.h: Regenerate.
* libbfd.h: Regenerate.
2005-02-18 Alan Modra <amodra@bigpond.net.au>
* coffgen.c (coff_write_symbols): Make "written" a bfd_vma.
2005-02-17 Alexandre Oliva <aoliva@redhat.com>
* elf32-frv.c (elf32_frv_relocate_section): Remove warning from

View File

@ -2427,7 +2427,8 @@ bfd_coff_set_symbol_class (abfd, symbol, class)
struct coff_comdat_info *
bfd_coff_get_comdat_section (bfd *abfd, struct bfd_section *sec)
{
if (bfd_get_flavour (abfd) == bfd_target_coff_flavour)
if (bfd_get_flavour (abfd) == bfd_target_coff_flavour
&& coff_section_data (abfd, sec) != NULL)
return coff_section_data (abfd, sec)->comdat;
else
return NULL;