|
From: | hjl.tools at gmail dot com |
Subject: | [Bug binutils/22136] Support marking "debug" info files with special ET_GNU_DEBUG_* values. |
Date: | Fri, 15 Sep 2017 21:47:55 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=22136 --- Comment #19 from H.J. Lu <hjl.tools at gmail dot com> --- (In reply to Mark Wielaard from comment #18) > (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. Does it even work given that program header from "objcopy --only-keep-debug" is different? > 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. I have a hard time to see why it is necessary. -- You are receiving this mail because: You are on the CC list for the bug.
[Prev in Thread] | Current Thread | [Next in Thread] |