Create a legal elf header and set e_type to ET_CORE.
Create a legal program header table.
On elf_update the following error is given:
program header only allowed in executables and shared objects
Program Header Table should be allowed in CORE FILES
2006-10-17 Phil Muldoon <firstname.lastname@example.org>
* FCore.java (postProcessElfFile): New. Change ET_EXEC -> ET_CORE.
See bz sw 3373.
I checked in a temporary fix that post processes the elf file when elf is done
with it, and fli[s the ET_EXEC flag to ET_CORE. Ulitmatley I think his should be
fixed in libelf.
Fixed in upstream. Imported into frysk-imports