binutils/
commit8b82559e4cb342c2f5988894f2f6a1303e84888b
authorJakub Jelinek <jakub@redhat.com>
Tue, 18 Jun 2002 14:09:06 +0000 (18 14:09 +0000)
committerJakub Jelinek <jakub@redhat.com>
Tue, 18 Jun 2002 14:09:06 +0000 (18 14:09 +0000)
treed72e0dd8049cede7d7e54a4621296eda8bd1a790
parentb6c3a97043e3866a65cc970bcd476f8466a927c1
binutils/
* readelf.c (get_file_header): Only read the first section header if
e_shoff is non-zero.

bfd/
* elfcode.h (elf_object_p): Sanity check eh_shoff == 0 implies
e_shnum == 0.
Only read the first section header if e_shoff is non-zero.
Don't consider e_shstrndx if there are no sections.
bfd/ChangeLog
bfd/elfcode.h
binutils/ChangeLog
binutils/readelf.c