On Thu, 10 Oct 2024 at 22:34, Josh Poimboeuf <jpoim...@kernel.org> wrote: > > On Thu, Oct 10, 2024 at 02:28:07PM +0200, Ard Biesheuvel wrote: > > From: Ard Biesheuvel <a...@kernel.org> > > > > Tweak the jump table so > > - the address is taken far way from its use > > - its offset from the start of .rodata is != 0x0 > > - its type is STT_OBJECT and its size is set to the size of the actual > > table > > - the indirect jump is annotated with a R_X86_64_NONE relocation > > pointing to the jump table > > > > Signed-off-by: Ard Biesheuvel <a...@kernel.org> > > This needs more "why", I assume the goals are to add the annotations + > confuse objtool if it doesn't read them properly? >
As presented, this is just a vehicle to test the other changes in the series. That is why I split it off from the previous one. Whether or not we want this code in the tree is up for debate, but I guess it could be useful as a canary for objtool, given that most configs now disable jump tables entirely.