From f5a95868e409ce9ec09838eb35a22cbcdb301c03 Mon Sep 17 00:00:00 2001 From: Danny Smith Date: Wed, 25 Feb 2004 21:00:32 +0000 Subject: * pe-dll.c (fill_edata): Check that exported_symbol_sections is not NULL. --- ld/pe-dll.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ld/pe-dll.c') diff --git a/ld/pe-dll.c b/ld/pe-dll.c index ce3f443..5c4a3ad 100644 --- a/ld/pe-dll.c +++ b/ld/pe-dll.c @@ -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); -- cgit v1.1