objtool: Provide elf_write_{insn,reloc}()
authorPeter Zijlstra <peterz@infradead.org>
Fri, 12 Jun 2020 13:43:00 +0000 (15:43 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Thu, 18 Jun 2020 15:36:33 +0000 (17:36 +0200)
commitfdabdd0b05e0bdf232340d5da86563ed142a99a7
tree32bb99ed96e96fbff9e8c62e035b7fa58d18a401
parent2b10be23ac0f8e107fd575397361ddbaebc2944b
objtool: Provide elf_write_{insn,reloc}()

This provides infrastructure to rewrite instructions; this is
immediately useful for helping out with KCOV-vs-noinstr, but will
also come in handy for a bunch of variable sized jump-label patches
that are still on ice.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
tools/objtool/elf.c
tools/objtool/elf.h