* pe-dll.c (fill_edata): Check that exported_symbol_sections is

not NULL.
This commit is contained in:
Danny Smith
2004-02-25 21:00:32 +00:00
parent 85be1ca620
commit f5a95868e4
2 changed files with 7 additions and 2 deletions

View File

@@ -966,9 +966,9 @@ fill_edata (bfd *abfd, struct bfd_link_info *info ATTRIBUTE_UNUSED)
hint = 0;
for (s = 0; s < NE; s++)
{
if (pe_def_file->exports[s].ordinal != -1)
struct bfd_section *ssec = exported_symbol_sections[s];
if (ssec && pe_def_file->exports[s].ordinal != -1)
{
struct bfd_section *ssec = exported_symbol_sections[s];
unsigned long srva = (exported_symbol_offsets[s]
+ ssec->output_section->vma
+ ssec->output_offset);