diff options
Diffstat (limited to 'meta/recipes-devtools/binutils/binutils/0015-binutils-enable-x86_64-pep-for-producing-EFI-binarie.patch')
-rw-r--r-- | meta/recipes-devtools/binutils/binutils/0015-binutils-enable-x86_64-pep-for-producing-EFI-binarie.patch | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/meta/recipes-devtools/binutils/binutils/0015-binutils-enable-x86_64-pep-for-producing-EFI-binarie.patch b/meta/recipes-devtools/binutils/binutils/0015-binutils-enable-x86_64-pep-for-producing-EFI-binarie.patch new file mode 100644 index 0000000000..bfde561dee --- /dev/null +++ b/meta/recipes-devtools/binutils/binutils/0015-binutils-enable-x86_64-pep-for-producing-EFI-binarie.patch | |||
@@ -0,0 +1,53 @@ | |||
1 | From d5d783903e335302e562bac8da1a083338d75b25 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 15/15] binutils : enable x86_64-pep for producing EFI binaries | ||
5 | on 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 | diff --git a/bfd/config.bfd b/bfd/config.bfd | ||
23 | index 3614ff79d4..aef144803a 100644 | ||
24 | --- a/bfd/config.bfd | ||
25 | +++ b/bfd/config.bfd | ||
26 | @@ -694,7 +694,7 @@ case "${targ}" in | ||
27 | ;; | ||
28 | x86_64-*-linux-*) | ||
29 | targ_defvec=x86_64_elf64_vec | ||
30 | - 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" | ||
31 | + 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" | ||
32 | want64=true | ||
33 | ;; | ||
34 | x86_64-*-nacl*) | ||
35 | diff --git a/ld/configure.tgt b/ld/configure.tgt | ||
36 | index 347df6c3f6..1e37d747a9 100644 | ||
37 | --- a/ld/configure.tgt | ||
38 | +++ b/ld/configure.tgt | ||
39 | @@ -257,8 +257,9 @@ x86_64-*-linux-gnux32) targ_emul=elf32_x86_64 | ||
40 | tdir_elf_iamcu=`echo ${targ_alias} | sed -e 's/x86_64/i386/' -e 's/-linux-gnux32/-linux-gnu/'` | ||
41 | tdir_elf_i386=`echo ${targ_alias} | sed -e 's/x86_64/i386/' -e 's/-linux-gnux32/-linux-gnu/'` ;; | ||
42 | x86_64-*-linux-*) targ_emul=elf_x86_64 | ||
43 | - targ_extra_emuls="elf32_x86_64 elf_i386 elf_iamcu elf_l1om elf_k1om" | ||
44 | - targ_extra_libpath="elf_i386 elf32_x86_64 elf_l1om elf_k1om" | ||
45 | + targ_extra_emuls="elf32_x86_64 elf_i386 elf_iamcu elf_l1om elf_k1om i386pe i386pep" | ||
46 | + targ_extra_libpath="elf_i386 elf32_x86_64 elf_l1om elf_k1om i386pep" | ||
47 | + targ_extra_ofiles="deffilep.o pep-dll.o pe-dll.o" | ||
48 | tdir_elf_i386=`echo ${targ_alias} | sed -e 's/x86_64/i386/'` ;; | ||
49 | i[3-7]86-*-redox*) targ_emul=elf_i386 | ||
50 | targ_extra_emuls=elf_x86_64 ;; | ||
51 | -- | ||
52 | 2.20.1 | ||
53 | |||