]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* elflink.h (bfd_elfNN_size_dynamic_sections): Verify that the
authorRichard Henderson <rth@redhat.com>
Fri, 4 Sep 1998 00:30:35 +0000 (00:30 +0000)
committerRichard Henderson <rth@redhat.com>
Fri, 4 Sep 1998 00:30:35 +0000 (00:30 +0000)
        bed has a size_dynamic_sections routine before trying to use it.

bfd/ChangeLog
bfd/elflink.h

index 43ab93bb51308ac90a2f61b7caf0370425544f01..107a0d46ff3cc5f50e2b7c8896387c8ae6f9a007 100644 (file)
@@ -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
index 67493cbde11a0bbf7033798b6940ae7c58cda208..5b44aedabb5221aaf9456b04fa5bf7cf6c94b2ba 100644 (file)
@@ -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)