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 _______________________________________________ elfutils-devel mailing list [email protected] https://fedorahosted.org/mailman/listinfo/elfutils-devel
