* elflink.h (bfd_elfNN_size_dynamic_sections): Verify that the
[binutils-gdb.git] / bfd / elflink.h
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)