bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/22136] Support marking "debug" info files with special ET_


From: mark at klomp dot org
Subject: [Bug binutils/22136] Support marking "debug" info files with special ET_GNU_DEBUG_* values.
Date: Fri, 15 Sep 2017 20:58:55 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=22136

--- Comment #18 from Mark Wielaard <mark at klomp dot org> ---
(In reply to H.J. Lu from comment #16)
> (In reply to Mark Wielaard from comment #15)
> > (In reply to H.J. Lu from comment #14)
> > > Anything else besides "identical to the phdrs"?  Must .dynamic section 
> > > have
> > > the identical section contents in debug info file?
> > 
> > Allocated sections are NOBITS in a separate debug file.
> 
> I checked libfoo.so against the output of "objcopy --only-keep-debug".
> Their program headers are different:

That might be a bug. See e.g. eu-strip -f which keeps them intact.
And eu-unstrip depends on this for example.

Anyway, the point is that you are not supposed to use the phdrs offsets of the
separate debug file. So you need some marker in the ELF header to indicate what
kind of ELF file it is.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]