]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/blob
d25ce616267a5578a1337977704b4eef52b3dc5c
[thirdparty/openembedded/openembedded-core-contrib.git] /
1 From a326a8feb445a5713ff3d17c55f43d5681e26585 Mon Sep 17 00:00:00 2001
2 From: Khem Raj <raj.khem@gmail.com>
3 Date: Thu, 29 Nov 2018 17:46:40 -0800
4 Subject: [PATCH] binutils : enable x86_64-pep for producing EFI binaries on
5 x86-64
6
7 Add x86_64-pep emulation support to the set enabled for x86_64 targets
8 to enable the linker to produce Portable Executables for EFI binaries.
9
10 Enables building the x86-64 EFI variant of the Xen hypervisor for
11 the OpenXT Project.
12
13 Upstream-Status: Inappropriate [OE configuration specific]
14
15 Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
16 Signed-off-by: Khem Raj <raj.khem@gmail.com>
17 ---
18 bfd/config.bfd | 2 +-
19 ld/configure.tgt | 5 +++--
20 2 files changed, 4 insertions(+), 3 deletions(-)
21
22 --- a/bfd/config.bfd
23 +++ b/bfd/config.bfd
24 @@ -694,7 +694,7 @@ case "${targ}" in
25 ;;
26 x86_64-*-linux-*)
27 targ_defvec=x86_64_elf64_vec
28 - targ_selvecs="i386_elf32_vec iamcu_elf32_vec x86_64_elf32_vec i386_pei_vec x86_64_pei_vec l1om_elf64_vec k1om_elf64_vec"
29 + targ_selvecs="i386_elf32_vec iamcu_elf32_vec x86_64_elf32_vec i386_pei_vec x86_64_pei_vec l1om_elf64_vec k1om_elf64_vec x86_64_pe_vec x86_64_pe_be_vec i386_pe_vec"
30 want64=true
31 ;;
32 x86_64-*-nacl*)
33 --- a/ld/configure.tgt
34 +++ b/ld/configure.tgt
35 @@ -258,8 +258,9 @@ x86_64-*-linux-gnux32) targ_emul=elf32_x
36 tdir_elf_iamcu=`echo ${targ_alias} | sed -e 's/x86_64/i386/' -e 's/-linux-gnux32/-linux-gnu/'`
37 tdir_elf_i386=`echo ${targ_alias} | sed -e 's/x86_64/i386/' -e 's/-linux-gnux32/-linux-gnu/'` ;;
38 x86_64-*-linux-*) targ_emul=elf_x86_64
39 - targ_extra_emuls="elf32_x86_64 elf_i386 elf_iamcu elf_l1om elf_k1om"
40 - targ_extra_libpath="elf_i386 elf32_x86_64 elf_l1om elf_k1om"
41 + targ_extra_emuls="elf32_x86_64 elf_i386 elf_iamcu elf_l1om elf_k1om i386pe i386pep"
42 + targ_extra_libpath="elf_i386 elf32_x86_64 elf_l1om elf_k1om i386pep"
43 + targ_extra_ofiles="deffilep.o pep-dll.o pe-dll.o"
44 tdir_elf_i386=`echo ${targ_alias} | sed -e 's/x86_64/i386/'` ;;
45 i[3-7]86-*-redox*) targ_emul=elf_i386
46 targ_extra_emuls=elf_x86_64 ;;