Re: [PATCH v2 2/5] objtool: Allow arch code to discover jump table size

2024-10-11 Thread Ard Biesheuvel
On Thu, 10 Oct 2024 at 21:52, Josh Poimboeuf wrote: > > On Thu, Oct 10, 2024 at 02:28:04PM +0200, Ard Biesheuvel wrote: > > @@ -,7 +2234,6 @@ static void mark_func_jump_tables(struct objtool_file > > *file, > > struct symbol *func) > > { > > struct ins

Re: [PATCH v2 2/5] objtool: Allow arch code to discover jump table size

2024-10-10 Thread Josh Poimboeuf
On Thu, Oct 10, 2024 at 02:28:04PM +0200, Ard Biesheuvel wrote: > @@ -,7 +2234,6 @@ static void mark_func_jump_tables(struct objtool_file > *file, > struct symbol *func) > { > struct instruction *insn, *last = NULL; > - struct reloc *reloc; > >

[PATCH v2 2/5] objtool: Allow arch code to discover jump table size

2024-10-10 Thread Ard Biesheuvel
From: Ard Biesheuvel In preparation for adding support for annotated jump tables, where ELF relocations and symbols are used to describe the locations of jump tables in the executable, refactor the jump table discovery logic so the table size can be returned from arch_find_switch_table(). Signed