Re: [POC][RFC][PATCH 1/2] jump_function: Addition of new feature "jump_function"
From: Andy Lutomirski
Date: Mon Oct 08 2018 - 13:47:26 EST
On Mon, Oct 8, 2018 at 10:44 AM Jiri Kosina <jikos@xxxxxxxxxx> wrote:
>
> On Mon, 8 Oct 2018, Ard Biesheuvel wrote:
>
> > Does that mean that architectures could opt out of doing the whole
> > objtool + relocation processing thing, and instead take the hit of
> > going through the trampoline for all calls?
>
> There are architectures that aren't [currently] supported by objtool at
> all anyway.
>
The the credit of most architectures, though, the only reason x86
would want to use objtool instead of digging the results directly out
of the relocation data is that x86 has an overcomplicated instruction
encoding and there's no fully reliable way to find the address of the
instruction that contains a given relocation without fully
disassembling the binary.