Re: [RFC PATCH 4/4] objtool/powerpc: Add --mcount specific implementation

2022-06-17 Thread Naveen N. Rao
Christophe Leroy wrote: Le 16/06/2022 à 15:57, Peter Zijlstra a écrit : On Thu, Jun 16, 2022 at 01:40:34PM +, Christophe Leroy wrote: sizeof(u64) is always 8 by definition. So if size is 8 we are working on a binary file for a 64 bits target, if not it means we are working for a 32 bits

Re: [RFC PATCH 4/4] objtool/powerpc: Add --mcount specific implementation

2022-06-16 Thread Christophe Leroy
Le 16/06/2022 à 15:57, Peter Zijlstra a écrit : > On Thu, Jun 16, 2022 at 01:40:34PM +, Christophe Leroy wrote: >> sizeof(u64) is always 8 by definition. >> >> So if size is 8 we are working on a binary file for a 64 bits target, if >> not it means we are working for a 32 bits target. > > Cr

Re: [RFC PATCH 4/4] objtool/powerpc: Add --mcount specific implementation

2022-06-16 Thread Peter Zijlstra
On Thu, Jun 16, 2022 at 01:40:34PM +, Christophe Leroy wrote: > sizeof(u64) is always 8 by definition. > > So if size is 8 we are working on a binary file for a 64 bits target, if > not it means we are working for a 32 bits target. Cross-builds invalidate this I think. Best to look at someth

Re: [RFC PATCH 4/4] objtool/powerpc: Add --mcount specific implementation

2022-06-16 Thread Christophe Leroy
Le 16/06/2022 à 15:34, Naveen N. Rao a écrit : > Christophe Leroy wrote: >> >> >> Le 25/05/2022 à 19:27, Christophe Leroy a écrit : >>> >>> >>> Le 24/05/2022 à 15:33, Christophe Leroy a écrit : Le 24/05/2022 à 13:00, Sathvika Vasireddy a écrit : >> >>> +{ >>> +    switc

Re: [RFC PATCH 4/4] objtool/powerpc: Add --mcount specific implementation

2022-06-16 Thread Naveen N. Rao
Christophe Leroy wrote: Le 25/05/2022 à 19:27, Christophe Leroy a écrit : Le 24/05/2022 à 15:33, Christophe Leroy a écrit : Le 24/05/2022 à 13:00, Sathvika Vasireddy a écrit : +{ +    switch (elf->ehdr.e_machine) { +    case EM_X86_64: +    return R_X86_64_64; +    case EM_PPC6

Re: [RFC PATCH 4/4] objtool/powerpc: Add --mcount specific implementation

2022-05-30 Thread Christophe Leroy
Le 25/05/2022 à 19:27, Christophe Leroy a écrit : Le 24/05/2022 à 15:33, Christophe Leroy a écrit : Le 24/05/2022 à 13:00, Sathvika Vasireddy a écrit : +{ +    switch (elf->ehdr.e_machine) { +    case EM_X86_64: +    return R_X86_64_64; +    case EM_PPC64: +    return R

Re: [RFC PATCH 4/4] objtool/powerpc: Add --mcount specific implementation

2022-05-25 Thread Christophe Leroy
Le 24/05/2022 à 15:33, Christophe Leroy a écrit : Le 24/05/2022 à 13:00, Sathvika Vasireddy a écrit : +{ +    switch (elf->ehdr.e_machine) { +    case EM_X86_64: +    return R_X86_64_64; +    case EM_PPC64: +    return R_PPC64_ADDR64; +    default: +    WARN("unkno

Re: [RFC PATCH 4/4] objtool/powerpc: Add --mcount specific implementation

2022-05-24 Thread Christophe Leroy
Le 24/05/2022 à 13:00, Sathvika Vasireddy a écrit : > [Vous ne recevez pas souvent de courriers de la part de > s...@linux.vnet.ibm.com. Découvrez pourquoi cela peut être important à > l’adresse https://aka.ms/LearnAboutSenderIdentification.] > > On 24/05/22 15:05, Christophe Leroy wrote: >> >

Re: [RFC PATCH 4/4] objtool/powerpc: Add --mcount specific implementation

2022-05-24 Thread Sathvika Vasireddy
On 24/05/22 15:05, Christophe Leroy wrote: Le 23/05/2022 à 19:55, Sathvika Vasireddy a écrit : This patch enables objtool --mcount on powerpc, and adds implementation specific to powerpc. Signed-off-by: Sathvika Vasireddy --- arch/powerpc/Kconfig| 1 + tools/objtool/ar

Re: [RFC PATCH 4/4] objtool/powerpc: Add --mcount specific implementation

2022-05-24 Thread Christophe Leroy
Le 23/05/2022 à 19:55, Sathvika Vasireddy a écrit : > This patch enables objtool --mcount on powerpc, and > adds implementation specific to powerpc. > > Signed-off-by: Sathvika Vasireddy > --- > arch/powerpc/Kconfig| 1 + > tools/objtool/arch/powerpc/decode.c | 14 ++

[RFC PATCH 4/4] objtool/powerpc: Add --mcount specific implementation

2022-05-23 Thread Sathvika Vasireddy
This patch enables objtool --mcount on powerpc, and adds implementation specific to powerpc. Signed-off-by: Sathvika Vasireddy --- arch/powerpc/Kconfig| 1 + tools/objtool/arch/powerpc/decode.c | 14 ++ tools/objtool/check.c | 12 +++- tools/obj