Re: [PATCH v2 10/14] objtool: Add support for relative switch tables

2023-06-23 Thread Christophe Leroy
Le 22/06/2023 à 13:48, Peter Zijlstra a écrit : > On Thu, Jun 22, 2023 at 12:54:32PM +0200, Christophe Leroy wrote: >> On powerpc, switch tables are relative, than means the address of the >> table is added to the value of the entry in order to get the pointed >> address: (r10 is the table addres

Re: [PATCH v2 10/14] objtool: Add support for relative switch tables

2023-06-22 Thread Peter Zijlstra
On Thu, Jun 22, 2023 at 12:54:32PM +0200, Christophe Leroy wrote: > On powerpc, switch tables are relative, than means the address of the > table is added to the value of the entry in order to get the pointed > address: (r10 is the table address, r4 the index in the table) > > lis r10,0

[PATCH v2 10/14] objtool: Add support for relative switch tables

2023-06-22 Thread Christophe Leroy
On powerpc, switch tables are relative, than means the address of the table is added to the value of the entry in order to get the pointed address: (r10 is the table address, r4 the index in the table) lis r10,0 <== Load r10 with upper part of .rodata address R_PPC_