objtool/LoongArch: Enable objtool to be built
authorTiezhu Yang <yangtiezhu@loongson.cn>
Mon, 11 Mar 2024 14:23:46 +0000 (22:23 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Mon, 11 Mar 2024 14:23:46 +0000 (22:23 +0800)
commite8aff71ca93026209dd0eab9b285e6808cd87d05
treea228cf2211873e29b9d44d6fbe703a0adf9aff1b
parente8f897f4afef0031fe618a8e94127a0934896aba
objtool/LoongArch: Enable objtool to be built

Add the minimal changes to enable objtool build on LoongArch,
most of the functions are stubs to only fix the build errors
when make -C tools/objtool.

This is similar with commit e52ec98c5ab1 ("objtool/powerpc:
Enable objtool to be built on ppc").

Co-developed-by: Jinyang He <hejinyang@loongson.cn>
Signed-off-by: Jinyang He <hejinyang@loongson.cn>
Co-developed-by: Youling Tang <tangyouling@loongson.cn>
Signed-off-by: Youling Tang <tangyouling@loongson.cn>
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
tools/objtool/arch/loongarch/Build [new file with mode: 0644]
tools/objtool/arch/loongarch/decode.c [new file with mode: 0644]
tools/objtool/arch/loongarch/include/arch/cfi_regs.h [new file with mode: 0644]
tools/objtool/arch/loongarch/include/arch/elf.h [new file with mode: 0644]
tools/objtool/arch/loongarch/include/arch/special.h [new file with mode: 0644]
tools/objtool/arch/loongarch/special.c [new file with mode: 0644]