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

Elias Athanasopoulos eathan@otenet.gr
Tue Jun 18 11:08:00 GMT 2002


Hi Jakub,

On Tue, Jun 18, 2002 at 09:10:38PM +0300, Elias Athanasopoulos wrote:
> 
> Shouldn't we check for elf_header.e_shnum (= ((ElfW(Shdr) *)(char *)ehdrp + 
> e_shoff)->sh_size) too?

Ah, forget it. Just noticed:

bfd/
        * elfcode.h (elf_object_p): Sanity check eh_shoff == 0 implies
        e_shnum == 0.
 
Elias



More information about the Binutils mailing list