Re: [PATCH 2/3] x86/callthunks: Handle %rip-relative relocations in call thunk template

From: Peter Zijlstra
Date: Thu Nov 02 2023 - 07:57:23 EST


On Thu, Nov 02, 2023 at 12:50:01PM +0100, Uros Bizjak wrote:

> > Remove static, add decl, stuff like that?
>
> On second thought, you are right. Should I move the above function
> somewhere (reloc.c?) , or can I just use it from alternative.c and add
> decl (where?) ?

Yeah, leave it there for now, perhaps asm/text-patching.h ?