This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix handling of ELF objects without section header table


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]