This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [PATCH] Fix handling of ELF objects without section header table
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Tue, 18 Jun 2002 20:26:07 +0930
- Subject: Re: [PATCH] Fix handling of ELF objects without section header table
- References: <20020618110313.A20867@sunsite.ms.mff.cuni.cz>
On Tue, Jun 18, 2002 at 11:03:13AM +0200, Jakub Jelinek wrote:
> 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.
Thanks for cleaning up after me! Please commit.
--
Alan Modra
IBM OzLabs - Linux Technology Centre