OSDN Git Service

binutils/
authorjakub <jakub>
Tue, 18 Jun 2002 14:09:06 +0000 (14:09 +0000)
committerjakub <jakub>
Tue, 18 Jun 2002 14:09:06 +0000 (14:09 +0000)
commitd337f1a44383c5dcde30f7b252eb6b3ea108fba6
tree2aa294816251da6a48316d896dd6c6d190dfb26d
parent2c4666fc263a57d5489bc7def1d87a61697da240
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/elfcode.h