aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>1998-09-04 00:30:35 +0000
committerRichard Henderson <rth@redhat.com>1998-09-04 00:30:35 +0000
commit37b68f729c8cb0185e35bbbf14958f27d8f7411c (patch)
tree82aee2dd1bfaeb696c61333bac7148a17cd19e58 /bfd
parent11ac7952581a92d56abbdcad10ee146fb26e9feb (diff)
downloadgdb-37b68f729c8cb0185e35bbbf14958f27d8f7411c.zip
gdb-37b68f729c8cb0185e35bbbf14958f27d8f7411c.tar.gz
gdb-37b68f729c8cb0185e35bbbf14958f27d8f7411c.tar.bz2
* elflink.h (bfd_elfNN_size_dynamic_sections): Verify that the
bed has a size_dynamic_sections routine before trying to use it.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elflink.h3
2 files changed, 7 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 43ab93b..107a0d4 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+Thu Sep 3 17:28:50 1998 Richard Henderson <rth@cygnus.com>
+
+ * elflink.h (bfd_elfNN_size_dynamic_sections): Verify that the
+ bed has a size_dynamic_sections routine before trying to use it.
+
Mon Aug 31 14:49:22 1998 Richard Henderson <rth@cygnus.com>
* elf32-mips.c (elf_mips_gnu_vtentry_howto): Use
diff --git a/bfd/elflink.h b/bfd/elflink.h
index 67493cb..5b44aed 100644
--- a/bfd/elflink.h
+++ b/bfd/elflink.h
@@ -2380,7 +2380,8 @@ NAME(bfd_elf,size_dynamic_sections) (output_bfd, soname, rpath,
/* The backend must work out the sizes of all the other dynamic
sections. */
old_dynsymcount = elf_hash_table (info)->dynsymcount;
- if (! (*bed->elf_backend_size_dynamic_sections) (output_bfd, info))
+ if (bed->elf_backend_size_dynamic_sections
+ && ! (*bed->elf_backend_size_dynamic_sections) (output_bfd, info))
return false;
if (elf_hash_table (info)->dynamic_sections_created)