* elflink.h (bfd_elfNN_size_dynamic_sections): Verify that the

bed has a size_dynamic_sections routine before trying to use it.
This commit is contained in:
Richard Henderson 1998-09-04 00:30:35 +00:00
parent 11ac795258
commit 37b68f729c
2 changed files with 7 additions and 1 deletions

View 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

View 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)