From 37b68f729c8cb0185e35bbbf14958f27d8f7411c Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Fri, 4 Sep 1998 00:30:35 +0000 Subject: [PATCH] * elflink.h (bfd_elfNN_size_dynamic_sections): Verify that the bed has a size_dynamic_sections routine before trying to use it. --- bfd/ChangeLog | 5 +++++ bfd/elflink.h | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 43ab93bb51..107a0d46ff 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +Thu Sep 3 17:28:50 1998 Richard Henderson + + * 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 * elf32-mips.c (elf_mips_gnu_vtentry_howto): Use diff --git a/bfd/elflink.h b/bfd/elflink.h index 67493cbde1..5b44aedabb 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) -- 2.34.1