dfad21992b6cb62f05413e264734f3c80ac86a24
[openwrt/openwrt.git] /
1 diff --git a/kexec/arch/x86_64/kexec-elf-rel-x86_64.c b/kexec/arch/x86_64/kexec-elf-rel-x86_64.c
2 index 7fdde73..af33689 100644
3 --- a/kexec/arch/x86_64/kexec-elf-rel-x86_64.c
4 +++ b/kexec/arch/x86_64/kexec-elf-rel-x86_64.c
5 @@ -78,7 +78,8 @@ void machine_apply_elf_rel(struct mem_ehdr *UNUSED(ehdr),
6 if ((int64_t)value != *(int32_t *)location)
7 goto overflow;
8 break;
9 - case R_X86_64_PC32:
10 + case R_X86_64_PC32:
11 + case R_X86_64_PLT32:
12 *(uint32_t *)location = value - address;
13 break;
14 default: