aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1997-11-10 19:33:59 +0000
committerIan Lance Taylor <ian@airs.com>1997-11-10 19:33:59 +0000
commit9793236cc334403369922e46a36c4d6515932d8b (patch)
tree86096543a4be8369a98d586e2ee12018c4a98bba /bfd
parent20d41979a9c2d05b629df1244c0f4b1b67ae1634 (diff)
downloadgdb-9793236cc334403369922e46a36c4d6515932d8b.zip
gdb-9793236cc334403369922e46a36c4d6515932d8b.tar.gz
gdb-9793236cc334403369922e46a36c4d6515932d8b.tar.bz2
Mon Nov 10 14:32:40 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't crash if a version dependency could not be found.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elflink.h9
2 files changed, 13 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 9966077..b542937 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+Mon Nov 10 14:32:40 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
+
+ * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't crash if
+ a version dependency could not be found.
+
Tue Nov 4 12:05:56 1997 Klaus K"ampf <kkaempf@progis.de>
* configure.com: Get version info from configure.in
diff --git a/bfd/elflink.h b/bfd/elflink.h
index 97bb4b9..711372d 100644
--- a/bfd/elflink.h
+++ b/bfd/elflink.h
@@ -2542,7 +2542,14 @@ NAME(bfd_elf,size_dynamic_sections) (output_bfd, soname, rpath,
for (n = t->deps; n != NULL; n = n->next)
{
- defaux.vda_name = n->version_needed->name_indx;
+ if (n->version_needed == NULL)
+ {
+ /* This can happen if there was an error in the
+ version script. */
+ defaux.vda_name = 0;
+ }
+ else
+ defaux.vda_name = n->version_needed->name_indx;
if (n->next == NULL)
defaux.vda_next = 0;
else