public inbox for gnu-gabi@sourceware.org
 help / color / mirror / Atom feed
* Re: RFC: Add ET_DEBUG
       [not found]   ` <8a57b41ee8bbe9a8efbf3bb6d51d8c1548fc863a.camel@klomp.org>
@ 2020-07-15 15:47     ` H.J. Lu
  0 siblings, 0 replies; only message in thread
From: H.J. Lu @ 2020-07-15 15:47 UTC (permalink / raw)
  To: Mark Wielaard, GNU gABI gnu-gabi; +Cc: H.J. Lu via Libc-alpha, Binutils

On Wed, Jul 15, 2020 at 7:02 AM Mark Wielaard <mark@klomp.org> wrote:
>
> On Fri, 2020-06-26 at 23:35 +0200, Florian Weimer wrote:
> > * H. J. Lu via Libc-alpha:
> >
> > > 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.
> > > We propose
> > >
> > > #define ET_DEBUG        5       /* Debug information file */
> > >
> > > Consumers should skip ET_DEBUG files if they don't know how to
> > > handle them.  Debuggers should process ET_DEBUG files to extract
> > > debug info.
> >
> > I would like to see a change like this.
> >
> > For background: These separate debuginfo files contain the same program
> > headers as the original object file, but all the loadable segments are
> > missing from the file (including the dynamic segment).  Tools compare
> > these program headers for consistency, so we cannot change them in the
> > separate debuginfo.
> >
> > In the dynamic loader, we only have ready access to the loadable
> > segments.  This means the ELF header is the only area of overlap, and
> > the information to tell the two apart has to be located there.
>
> Note that this is only true for separate debug file for ET_EXEC and
> ET_DYN ELF files. Some debug files, like stripped ET_REL ELF files,
> split-dwarf .dwo files, supplementary debug files (dwz multi files),
> don't contain any program headers. Should those also be marked ET_DEBUG
> or not? I think they should. And then the above description should
> simply say "may contain the same program headers as the associated
> (original) object file...".
>
> Cheers,
>

https://gitlab.com/x86-psABIs/Linux-ABI/-/merge_requests/3


-- 
H.J.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-07-15 15:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <CAMe9rOojQUP1WvmeeQv7uzhotVpYwcz+7c64=Ava9bzd+GyJTw@mail.gmail.com>
     [not found] ` <87tuyx4ijo.fsf@oldenburg2.str.redhat.com>
     [not found]   ` <8a57b41ee8bbe9a8efbf3bb6d51d8c1548fc863a.camel@klomp.org>
2020-07-15 15:47     ` RFC: Add ET_DEBUG H.J. Lu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).