From a674793be6bc060b6d695c0cb481e8262c763885 Mon Sep 17 00:00:00 2001 From: LoveSy Date: Tue, 26 Mar 2024 13:12:56 +0800 Subject: [PATCH] Fix ELF_R_GENERIC_GLOB_DAT for riscv --- lsplt/src/main/jni/elf_util.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lsplt/src/main/jni/elf_util.cc b/lsplt/src/main/jni/elf_util.cc index 1309470..2e933d0 100644 --- a/lsplt/src/main/jni/elf_util.cc +++ b/lsplt/src/main/jni/elf_util.cc @@ -23,7 +23,7 @@ #define ELF_R_GENERIC_ABS R_X86_64_64 #elif defined(__riscv) #define ELF_R_GENERIC_JUMP_SLOT R_RISCV_JUMP_SLOT -#define ELF_R_GENERIC_GLOB_DAT R_RISCV_32_PCREL +#define ELF_R_GENERIC_GLOB_DAT R_RISCV_64 #define ELF_R_GENERIC_ABS R_RISCV_64 #endif