LoongArch: Add ELF and module support
authorHuacai Chen <chenhuacai@loongson.cn>
Tue, 31 May 2022 10:04:11 +0000 (18:04 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Fri, 3 Jun 2022 12:09:28 +0000 (20:09 +0800)
commitfcdfe9d22bed08409968a751e93112f742208be6
tree14bbbe55e6c6e715223006e91160c55d6bd113ec
parentb74baf4ad05b5ebe3152592fb2fa80d51681392a
LoongArch: Add ELF and module support

Add ELF-related definition and module relocation code for basic
LoongArch support.

Cc: Jessica Yu <jeyu@kernel.org>
Reviewed-by: WANG Xuerui <git@xen0n.name>
Reviewed-by: Luis Chamberlain <mcgrof@kernel.org>
Reviewed-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
12 files changed:
arch/loongarch/include/asm/cpufeature.h [new file with mode: 0644]
arch/loongarch/include/asm/elf.h [new file with mode: 0644]
arch/loongarch/include/asm/exec.h [new file with mode: 0644]
arch/loongarch/include/asm/module.h [new file with mode: 0644]
arch/loongarch/include/asm/module.lds.h [new file with mode: 0644]
arch/loongarch/include/asm/vermagic.h [new file with mode: 0644]
arch/loongarch/include/uapi/asm/auxvec.h [new file with mode: 0644]
arch/loongarch/include/uapi/asm/hwcap.h [new file with mode: 0644]
arch/loongarch/kernel/elf.c [new file with mode: 0644]
arch/loongarch/kernel/inst.c [new file with mode: 0644]
arch/loongarch/kernel/module-sections.c [new file with mode: 0644]
arch/loongarch/kernel/module.c [new file with mode: 0644]