OSDN Git Service

binutils/
authorjakub <jakub>
Tue, 18 Jun 2002 14:08:55 +0000 (14:08 +0000)
committerjakub <jakub>
Tue, 18 Jun 2002 14:08:55 +0000 (14:08 +0000)
commit2c4666fc263a57d5489bc7def1d87a61697da240
treebba7e4f0aa7b1ba96f248e48532bef2d5c5c1e05
parentbb11f9c450100dc5f7947d3ebe98d3571ec25a01
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
binutils/ChangeLog
binutils/readelf.c