This is the mail archive of the
elfutils-devel@sourceware.org
mailing list for the elfutils project.
Re: eu-strip --reloc-debug-sections
- From: Roland McGrath <roland at hack dot frob dot com>
- To: elfutils-devel at lists dot fedorahosted dot org
- Date: Mon, 23 May 2011 13:43:29 -0700
- Subject: Re: eu-strip --reloc-debug-sections
Note that eu-unstrip already does this in some modes, though that's a
roundabout way of getting there.
You don't want to constrain it to STT_SECTION symbols. Any symbol whose
shndx is in a non-allocated section ought to be fine. Whether you see only
section-relative references or see symbols too depends on the tools and
machine (IIRC s390 gets a lot of symbol-relative relocations).
Also, I'm not sure that it matters to confine it to ebl_debugscn_p. That
is more in line with the name of the option, I suppose. But the essential
thing is that a reloc whose target is in any ~SHF_ALLOC section is a
"trivial" reloc, i.e. will be resolved to 0+addend by libdwfl/gdb.
Thanks,
Roland