Bug 22138 - Support marking "debug" info files with special ET_GNU_DEBUG_* values.
Summary: Support marking "debug" info files with special ET_GNU_DEBUG_* values.
Status: NEW
Alias: None
Product: elfutils
Classification: Unclassified
Component: tools (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks: 22101
  Show dependency treegraph
 
Reported: 2017-09-14 19:25 UTC by Florian Weimer
Modified: 2017-09-14 19:25 UTC (History)
4 users (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 Florian Weimer 2017-09-14 19:25:30 UTC
+++ This bug was initially created as a clone of Bug #22136 +++

We need a way to identify "debug" info files, which appear like they are ELF files but if inspected are actually missing a lot of information and can't be properly parsed without the original DSO or executable.

To that end I suggest we adopt:

* ET_GNU_DEBUG_EXEC
* ET_GNU_DEBUG_DYN
* ET_GNU_DEBUG_REL

As ways to mark these files a debug information files. We can place them into the OS-specific area, and audit that we don't overlap anything important from other OSs.

We would need new binutils options to edit, adjust and set the "debug"-ness of files.