diff options
author | Bernd Schmidt <bernds@codesourcery.com> | 2010-09-09 09:55:03 +0000 |
---|---|---|
committer | Bernd Schmidt <bernds@codesourcery.com> | 2010-09-09 09:55:03 +0000 |
commit | 7326c758fd67de5fdaf703c4d24454692e8113e4 (patch) | |
tree | 1d87945394cdeffeba49ca423bcf2c3dbe5b60a8 /bfd/elflink.c | |
parent | 40f246e36c27a521661a926536e1cfceb18cd957 (diff) | |
download | gdb-7326c758fd67de5fdaf703c4d24454692e8113e4.zip gdb-7326c758fd67de5fdaf703c4d24454692e8113e4.tar.gz gdb-7326c758fd67de5fdaf703c4d24454692e8113e4.tar.bz2 |
* elflink.c (bfd_elf_final_link): Correct calculation of
max_external_reloc_size.
Diffstat (limited to 'bfd/elflink.c')
-rw-r--r-- | bfd/elflink.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bfd/elflink.c b/bfd/elflink.c index dd48c74..1446885 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) |