On Wed, 2018-06-20 at 15:55 +0200, Andreas Schwab wrote: > It's probably because there are more than just simple relocations on > debug sections, more than reloc_simple_type can handle.
aha, ok, but it looks like RISCV_(ADD|SUB)(8|16|32|64) should not be too hard to handle. The other ones (RISCV_SETX) might be a little harder. They are not used much though and only againstĀ .debug_frame. So if you get RISC_ADD/SUB going that probably handles most uses. Maybe backend reloc_simple_type hook needs to be changed a bit to handle them. But that shouldn't really be a problem, all callers are internal (libdwfl/relocate.c and strip.c). Cheers, Mark