Re: [PATCH] ELF OSABI

From: Paul Mundt
Date: Tue Sep 09 2003 - 23:42:03 EST


On Wed, Sep 10, 2003 at 02:09:33AM +0100, Matthew Wilcox wrote:
> --- arch/mips/kernel/irixelf.c 8 Sep 2003 21:41:38 -0000 1.3
> +++ arch/mips/kernel/irixelf.c 8 Sep 2003 22:00:20 -0000 1.4
> @@ -1088,6 +1088,7 @@ static int irix_core_dump(long signr, st
> elf.e_ident[EI_CLASS] = ELFCLASS32;
> elf.e_ident[EI_DATA] = ELFDATA2LSB;
> elf.e_ident[EI_VERSION] = EV_CURRENT;
> + elf->e_ident[EI_OSABI] = ELF_OSABI;
> memset(elf.e_ident+EI_PAD, 0, EI_NIDENT-EI_PAD);

Someone was a bit too hasty here. Perhaps it might be a good idea to
change this to elf.e_ident instead.

Attachment: pgp00001.pgp
Description: PGP signature