summaryrefslogtreecommitdiff
path: root/ld/pe-dll.c
diff options
context:
space:
mode:
authorDanny Smith <dannysmith@users.sourceforge.net>2004-02-25 21:00:32 +0000
committerDanny Smith <dannysmith@users.sourceforge.net>2004-02-25 21:00:32 +0000
commit7c0b1ccbaa0da7ab2866e2f49c59de727e14cbda (patch)
tree9621b4e000a31b7cb9831d690685f7b4d4e9de1a /ld/pe-dll.c
parent34e841a201aa0972049ccc964a52872f0847ee9c (diff)
downloadbinutils-redhat-7c0b1ccbaa0da7ab2866e2f49c59de727e14cbda.tar.gz
* pe-dll.c (fill_edata): Check that exported_symbol_sections is
not NULL.
Diffstat (limited to 'ld/pe-dll.c')
-rw-r--r--ld/pe-dll.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ld/pe-dll.c b/ld/pe-dll.c
index ce3f443d55..5c4a3ad72b 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);