aboutsummaryrefslogtreecommitdiff
path: root/ld
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
commitf5a95868e409ce9ec09838eb35a22cbcdb301c03 (patch)
tree54d191a52ff71cdf1c4295cb160f7e245cd4bfc5 /ld
parent85be1ca62087a895ae7311fe644642147f5c1b02 (diff)
downloadgdb-f5a95868e409ce9ec09838eb35a22cbcdb301c03.zip
gdb-f5a95868e409ce9ec09838eb35a22cbcdb301c03.tar.gz
gdb-f5a95868e409ce9ec09838eb35a22cbcdb301c03.tar.bz2
* pe-dll.c (fill_edata): Check that exported_symbol_sections is
not NULL.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog5
-rw-r--r--ld/pe-dll.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 527c36a..f777254 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,8 @@
+2004-02-25 Danny Smith <dannysmith@users.sourceforge.net>
+
+ * pe-dll.c (fill_edata): Check that exported_symbol_sections is
+ not NULL.
+
2004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
* ldlang.c (lang_check): Use %P, not %E, in error message.
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);