aboutsummaryrefslogtreecommitdiff
path: root/bfd/elfcode.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1994-06-20 15:51:28 +0000
committerIan Lance Taylor <ian@airs.com>1994-06-20 15:51:28 +0000
commit6c8fa8e62cd3a5872fd98269ccd4d7da6e26a459 (patch)
tree9a7a000643d3ec91847747ead7250a372d6ab191 /bfd/elfcode.h
parentaa91350c626e1d890c18914161ad34805e198420 (diff)
downloadgdb-6c8fa8e62cd3a5872fd98269ccd4d7da6e26a459.zip
gdb-6c8fa8e62cd3a5872fd98269ccd4d7da6e26a459.tar.gz
gdb-6c8fa8e62cd3a5872fd98269ccd4d7da6e26a459.tar.bz2
* aoutx.h (NAME(aout,final_link)): Check flavour of sub, not abfd,
when computing reloc sizes. From Eric Youngdale <ericy@cais.cais.com>. * elfcode.h (elf_bfd_final_link): Don't try to compute maximum reloc count or size for a non-ELF file.
Diffstat (limited to 'bfd/elfcode.h')
-rw-r--r--bfd/elfcode.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/bfd/elfcode.h b/bfd/elfcode.h
index 26b666e..54d4bbd 100644
--- a/bfd/elfcode.h
+++ b/bfd/elfcode.h
@@ -5115,17 +5115,17 @@ elf_bfd_final_link (abfd, info)
if (sym_count > max_sym_count)
max_sym_count = sym_count;
- }
- if ((sec->flags & SEC_RELOC) != 0)
- {
- size_t ext_size;
+ if ((sec->flags & SEC_RELOC) != 0)
+ {
+ size_t ext_size;
- ext_size = elf_section_data (sec)->rel_hdr.sh_size;
- if (ext_size > max_external_reloc_size)
- max_external_reloc_size = ext_size;
- if (sec->reloc_count > max_internal_reloc_count)
- max_internal_reloc_count = sec->reloc_count;
+ ext_size = elf_section_data (sec)->rel_hdr.sh_size;
+ if (ext_size > max_external_reloc_size)
+ max_external_reloc_size = ext_size;
+ if (sec->reloc_count > max_internal_reloc_count)
+ max_internal_reloc_count = sec->reloc_count;
+ }
}
}
}