From: Bernd Schmidt Date: Thu, 9 Sep 2010 09:55:03 +0000 (+0000) Subject: * elflink.c (bfd_elf_final_link): Correct calculation of X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7326c758fd67de5fdaf703c4d24454692e8113e4;p=binutils-gdb.git * elflink.c (bfd_elf_final_link): Correct calculation of max_external_reloc_size. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index ec0659b2785..acc08130504 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2010-09-09 Bernd Schmidt + + bfd/ + * elflink.c (bfd_elf_final_link): Correct calculation of + max_external_reloc_size. + 2010-09-07 Alan Modra Marcus Brinkmann diff --git a/bfd/elflink.c b/bfd/elflink.c index dd48c749785..1446885c9f5 100644 --- a/bfd/elflink.c +++ b/bfd/elflink.c @@ -10360,7 +10360,10 @@ bfd_elf_final_link (bfd *abfd, struct bfd_link_info *info) { size_t ext_size; - ext_size = elf_section_data (sec)->rel_hdr.sh_size; + ext_size = esdi->rel_hdr.sh_size; + if (esdi->rel_hdr2 != NULL) + ext_size += esdi->rel_hdr2->sh_size; + if (ext_size > max_external_reloc_size) max_external_reloc_size = ext_size; if (sec->reloc_count > max_internal_reloc_count)