This is the mail archive of the elfutils-devel@sourceware.org mailing list for the elfutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]