Re: [PATCH v2 08/14] objtool: Fix JUMP_ENTRY_SIZE for bi-arch like powerpc

2023-06-22 Thread Peter Zijlstra
On Thu, Jun 22, 2023 at 12:54:30PM +0200, Christophe Leroy wrote: > struct jump_entry { > s32 code; > s32 target; > long key; > }; > > It means that the size of the third argument depends on > whether we are building a 32 bits or 64 bits kernel

[PATCH v2 08/14] objtool: Fix JUMP_ENTRY_SIZE for bi-arch like powerpc

2023-06-22 Thread Christophe Leroy
struct jump_entry { s32 code; s32 target; long key; }; It means that the size of the third argument depends on whether we are building a 32 bits or 64 bits kernel. Therefore JUMP_ENTRY_SIZE must depend on elf_class_addrsize(elf). To