https://sourceware.org/bugzilla/show_bug.cgi?id=31447
--- Comment #3 from Mark Wielaard <mark at klomp dot org> --- Yes, just process the .rela.debug_* sections. Note that you don't need to depend on the exact name. You can follow the section header sh_info field, which points to the section (number) to which the relocations apply. If that section starts with .debug you can apply the relocations. Or better use ebl_debugscn_p, which checks against the list in libebl/eblopenbackend.c (default_debugscn_p). See also in strip.c, where it says: /* Make sure that this relocation section points to a section to relocate with contents, that isn't allocated and that is a debug section. */ Or libdwfl/relocate.c (relocate_section). Which contains similar logic. -- You are receiving this mail because: You are on the CC list for the bug.