[PATCH] backends: add abi_cfi and register_info callbacks for RISC-V

Mark Wielaard mark@klomp.org
Wed Jun 20 20:49:00 GMT 2018


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



More information about the Elfutils-devel mailing list