Bug 3373 - Libelf will not allow program header table in elf file type ET_CORE
Summary: Libelf will not allow program header table in elf file type ET_CORE
Status: RESOLVED FIXED
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Unassigned
URL:
Keywords:
Depends on:
Blocks: 2243
  Show dependency treegraph
 
Reported: 2006-10-17 19:30 UTC by Phil Muldoon
Modified: 2011-03-16 21:19 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Phil Muldoon 2006-10-17 19:30:57 UTC
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
Comment 1 Phil Muldoon 2006-10-18 18:19:01 UTC
2006-10-17  Phil Muldoon  <pmuldoon@redhat.com>
	
* 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.
Comment 2 Phil Muldoon 2007-10-10 17:06:14 UTC
Fixed in upstream. Imported into frysk-imports