aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2014-11-07 09:37:39 +1030
committerAlan Modra <amodra@gmail.com>2014-11-07 13:19:15 +1030
commit405724050266e30fcc8cbcee416cde41862e8e8f (patch)
treef35a8d0b9758bbae7c5b50431042e07246802ae5 /bfd/elf.c
parent2dd2cd1c92d09ad96b643d2574d0dc6cd7e4841a (diff)
downloadgdb-405724050266e30fcc8cbcee416cde41862e8e8f.zip
gdb-405724050266e30fcc8cbcee416cde41862e8e8f.tar.gz
gdb-405724050266e30fcc8cbcee416cde41862e8e8f.tar.bz2
Revert bfd_get_size checks
* archive.c (_bfd_slurp_extended_name_table): Revert bfd_get_size check. * coffcode.h (coff_set_alignment_hook): Likewise. (coff_slurp_line_table): Likewise. * coffgen.c (coff_get_normalized_symtab): Likewise. (_bfd_coff_get_external_symbols): Likewise. * elf.c (bfd_elf_get_str_section): Likewise. * tekhex.c (first_phase): Likewise.
Diffstat (limited to 'bfd/elf.c')
-rw-r--r--bfd/elf.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/bfd/elf.c b/bfd/elf.c
index 7cc0ce1..9c4dcdf 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -294,11 +294,6 @@ bfd_elf_get_str_section (bfd *abfd, unsigned int shindex)
offset = i_shdrp[shindex]->sh_offset;
shstrtabsize = i_shdrp[shindex]->sh_size;
- /* PR binutils/17512: Do not even try to load
- a string table bigger than the entire file... */
- if (shstrtabsize >= (bfd_size_type) bfd_get_size (abfd))
- return NULL;
-
/* Allocate and clear an extra byte at the end, to prevent crashes
in case the string table is not terminated. */
if (shstrtabsize + 1 <= 1