objtool/powerpc: Enable objtool to be built on ppc
authorSathvika Vasireddy <sv@linux.ibm.com>
Mon, 14 Nov 2022 17:57:53 +0000 (23:27 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 18 Nov 2022 08:00:16 +0000 (19:00 +1100)
commite52ec98c5ab18c0710ea22bf52f45e60a725adaf
tree81935f99f2f1d1fec3c3c2ceb96e65ce15273e6c
parent4ca993d498987332ceeedee5380101b84accaf35
objtool/powerpc: Enable objtool to be built on ppc

This patch adds [stub] implementations for required functions, inorder
to enable objtool build on powerpc.

[Christophe Leroy: powerpc: Add missing asm/asm.h for objtool,
Use local variables for type and imm in arch_decode_instruction(),
Adapt len for prefixed instructions.]

Tested-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Reviewed-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Acked-by: Josh Poimboeuf <jpoimboe@kernel.org>
Signed-off-by: Sathvika Vasireddy <sv@linux.ibm.com>
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20221114175754.1131267-16-sv@linux.ibm.com
arch/powerpc/Kconfig
arch/powerpc/include/asm/asm.h [new file with mode: 0644]
tools/objtool/arch/powerpc/Build [new file with mode: 0644]
tools/objtool/arch/powerpc/decode.c [new file with mode: 0644]
tools/objtool/arch/powerpc/include/arch/cfi_regs.h [new file with mode: 0644]
tools/objtool/arch/powerpc/include/arch/elf.h [new file with mode: 0644]
tools/objtool/arch/powerpc/include/arch/special.h [new file with mode: 0644]
tools/objtool/arch/powerpc/special.c [new file with mode: 0644]