]>
Commit | Line | Data |
---|---|---|
bab38dad MT |
1 | From 5dce2d454b2829431e0484ac0f993b7a2759e0df Mon Sep 17 00:00:00 2001 |
2 | From: Christian Hesse <mail@eworm.de> | |
3 | Date: Sat, 25 Aug 2018 13:53:08 +0200 | |
4 | Subject: [PATCH] [build] handle R_X86_64_PLT32 from binutils 2.31 | |
5 | ||
6 | Starting from binutils 2.31.0 (commit bd7ab16b) x86-64 assembler | |
7 | generates R_X86_64_PLT32 instead of R_X86_64_PC32. | |
8 | --- | |
9 | src/util/elf2efi.c | 1 + | |
10 | 1 file changed, 1 insertion(+) | |
11 | ||
12 | diff --git a/src/util/elf2efi.c b/src/util/elf2efi.c | |
13 | index 6718df777..2c5b9df8a 100644 | |
14 | --- a/src/util/elf2efi.c | |
15 | +++ b/src/util/elf2efi.c | |
16 | @@ -636,6 +636,7 @@ static void process_reloc ( struct elf_file *elf, const Elf_Shdr *shdr, | |
17 | case ELF_MREL ( EM_ARM, R_ARM_THM_JUMP24 ) : | |
18 | case ELF_MREL ( EM_ARM, R_ARM_V4BX ): | |
19 | case ELF_MREL ( EM_X86_64, R_X86_64_PC32 ) : | |
20 | + case ELF_MREL ( EM_X86_64, R_X86_64_PLT32 ) : | |
21 | case ELF_MREL ( EM_AARCH64, R_AARCH64_CALL26 ) : | |
22 | case ELF_MREL ( EM_AARCH64, R_AARCH64_JUMP26 ) : | |
23 | case ELF_MREL ( EM_AARCH64, R_AARCH64_ADR_PREL_LO21 ) : |