diff options
author | Alan Modra <amodra@gmail.com> | 2019-06-23 12:10:02 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2019-06-23 14:24:45 +0930 |
commit | 14b2a8e4244a29208ad430167860a0f01b20f215 (patch) | |
tree | d996d36537e73eb315f0662d9d49cb340f50c9be /bfd/elfcode.h | |
parent | a8d21e9ef0ae63c650e2ffa14edf5b1cd22be5cb (diff) | |
download | binutils-14b2a8e4244a29208ad430167860a0f01b20f215.zip binutils-14b2a8e4244a29208ad430167860a0f01b20f215.tar.gz binutils-14b2a8e4244a29208ad430167860a0f01b20f215.tar.bz2 |
PR24689 again, string table corruption
Depending on optimisation level and gcc version, git commit 890f750a3b
introduces a false positive warning that i_shdrp may be used
uninitialized.
PR 24689
* elfcode.h (elf_object_p): Warning fix.
Diffstat (limited to 'bfd/elfcode.h')
-rw-r--r-- | bfd/elfcode.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/bfd/elfcode.h b/bfd/elfcode.h index 5180f79..9a73c3b 100644 --- a/bfd/elfcode.h +++ b/bfd/elfcode.h @@ -749,11 +749,7 @@ elf_object_p (bfd *abfd) != 0)) abfd->flags &= ~D_PAGED; } - } - /* A further sanity check. */ - if (i_ehdrp->e_shnum != 0) - { if (i_ehdrp->e_shstrndx >= elf_numsections (abfd) || i_shdrp[i_ehdrp->e_shstrndx].sh_type != SHT_STRTAB) { |