summaryrefslogtreecommitdiffstats
path: root/arch/loongarch/kernel
diff options
context:
space:
mode:
authorTiezhu Yang <yangtiezhu@loongson.cn>2023-09-27 16:19:13 +0800
committerHuacai Chen <chenhuacai@loongson.cn>2023-09-27 16:19:13 +0800
commit2761498876adebff77a43574639005b29e912c43 (patch)
tree02f21a58261c66fb0bb5b67d37f674e5097719e4 /arch/loongarch/kernel
parent1943feecf80e73ecc03ce40271f29c6cea142bac (diff)
downloadlinux-stable-2761498876adebff77a43574639005b29e912c43.tar.gz
linux-stable-2761498876adebff77a43574639005b29e912c43.tar.bz2
linux-stable-2761498876adebff77a43574639005b29e912c43.zip
LoongArch: Define relocation types for ABI v2.10
The relocation types from 101 to 109 are used by GNU binutils >= 2.41, add their definitions to use them in later patches. Link: https://sourceware.org/git/?p=binutils-gdb.git;a=blob;f=include/elf/loongarch.h#l230 Cc: <stable@vger.kernel.org> Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to 'arch/loongarch/kernel')
-rw-r--r--arch/loongarch/kernel/module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/loongarch/kernel/module.c b/arch/loongarch/kernel/module.c
index b8b86088b2dd..c3f9d2f5d840 100644
--- a/arch/loongarch/kernel/module.c
+++ b/arch/loongarch/kernel/module.c
@@ -382,7 +382,7 @@ typedef int (*reloc_rela_handler)(struct module *mod, u32 *location, Elf_Addr v,
/* The handlers for known reloc types */
static reloc_rela_handler reloc_rela_handlers[] = {
- [R_LARCH_NONE ... R_LARCH_RELAX] = apply_r_larch_error,
+ [R_LARCH_NONE ... R_LARCH_64_PCREL] = apply_r_larch_error,
[R_LARCH_NONE] = apply_r_larch_none,
[R_LARCH_32] = apply_r_larch_32,