Fix missing file.
This commit is contained in:
parent
9f8dca1220
commit
9da0c0554e
66
gnu-efi-3.0e-machine-types.patch
Normal file
66
gnu-efi-3.0e-machine-types.patch
Normal file
@ -0,0 +1,66 @@
|
|||||||
|
From eb2e79305e8363b1340afc24387a7b6967b5874b Mon Sep 17 00:00:00 2001
|
||||||
|
From: Peter Jones <pjones@redhat.com>
|
||||||
|
Date: Tue, 26 Apr 2011 13:25:26 -0400
|
||||||
|
Subject: [PATCH] Add more machine type defines.
|
||||||
|
|
||||||
|
Add machine type defines for i386, arm/thumb, ia64, ebc, and x86_64.
|
||||||
|
---
|
||||||
|
inc/ia32/pe.h | 4 ++++
|
||||||
|
inc/ia64/pe.h | 4 ++++
|
||||||
|
inc/x86_64/pe.h | 4 ++++
|
||||||
|
3 files changed, 12 insertions(+), 0 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/inc/ia32/pe.h b/inc/ia32/pe.h
|
||||||
|
index c492606..85d6981 100644
|
||||||
|
--- a/inc/ia32/pe.h
|
||||||
|
+++ b/inc/ia32/pe.h
|
||||||
|
@@ -98,8 +98,12 @@ typedef struct _IMAGE_FILE_HEADER {
|
||||||
|
#define IMAGE_FILE_MACHINE_R3000 0x162 // MIPS little-endian, 0540 big-endian
|
||||||
|
#define IMAGE_FILE_MACHINE_R4000 0x166 // MIPS little-endian
|
||||||
|
#define IMAGE_FILE_MACHINE_ALPHA 0x184 // Alpha_AXP
|
||||||
|
+#define IMAGE_FILE_MACHINE_ARMTHUMB_MIXED 0x1c2 // Arm/Thumb
|
||||||
|
#define IMAGE_FILE_MACHINE_POWERPC 0x1F0 // IBM PowerPC Little-Endian
|
||||||
|
+#define IMAGE_FILE_MACHINE_IA64 0x200 // IA-64
|
||||||
|
#define IMAGE_FILE_MACHINE_TAHOE 0x7cc // Intel EM machine
|
||||||
|
+#define IMAGE_FILE_MACHINE_EBC 0xebc // EFI Byte Code
|
||||||
|
+#define IMAGE_FILE_MACHINE_X64 0x8664 // x86_64
|
||||||
|
//
|
||||||
|
// Directory format.
|
||||||
|
//
|
||||||
|
diff --git a/inc/ia64/pe.h b/inc/ia64/pe.h
|
||||||
|
index 618d59f..226e49d 100644
|
||||||
|
--- a/inc/ia64/pe.h
|
||||||
|
+++ b/inc/ia64/pe.h
|
||||||
|
@@ -113,8 +113,12 @@ typedef struct _IMAGE_FILE_HEADER {
|
||||||
|
#define IMAGE_FILE_MACHINE_R3000 0x162 // MIPS little-endian, 0540 big-endian
|
||||||
|
#define IMAGE_FILE_MACHINE_R4000 0x166 // MIPS little-endian
|
||||||
|
#define IMAGE_FILE_MACHINE_ALPHA 0x184 // Alpha_AXP
|
||||||
|
+#define IMAGE_FILE_MACHINE_ARMTHUMB_MIXED 0x1c2 // Arm/Thumb
|
||||||
|
#define IMAGE_FILE_MACHINE_POWERPC 0x1F0 // IBM PowerPC Little-Endian
|
||||||
|
+#define IMAGE_FILE_MACHINE_IA64 0x200 // IA-64
|
||||||
|
#define IMAGE_FILE_MACHINE_TAHOE 0x7cc // Intel EM machine
|
||||||
|
+#define IMAGE_FILE_MACHINE_EBC 0xebc // EFI Byte Code
|
||||||
|
+#define IMAGE_FILE_MACHINE_X64 0x8664 // x86_64
|
||||||
|
//
|
||||||
|
// Directory format.
|
||||||
|
//
|
||||||
|
diff --git a/inc/x86_64/pe.h b/inc/x86_64/pe.h
|
||||||
|
index f0a1fd0..4f5f469 100644
|
||||||
|
--- a/inc/x86_64/pe.h
|
||||||
|
+++ b/inc/x86_64/pe.h
|
||||||
|
@@ -98,8 +98,12 @@ typedef struct _IMAGE_FILE_HEADER {
|
||||||
|
#define IMAGE_FILE_MACHINE_R3000 0x162 // MIPS little-endian, 0540 big-endian
|
||||||
|
#define IMAGE_FILE_MACHINE_R4000 0x166 // MIPS little-endian
|
||||||
|
#define IMAGE_FILE_MACHINE_ALPHA 0x184 // Alpha_AXP
|
||||||
|
+#define IMAGE_FILE_MACHINE_ARMTHUMB_MIXED 0x1c2 // Arm/Thumb
|
||||||
|
#define IMAGE_FILE_MACHINE_POWERPC 0x1F0 // IBM PowerPC Little-Endian
|
||||||
|
+#define IMAGE_FILE_MACHINE_IA64 0x200 // IA-64
|
||||||
|
#define IMAGE_FILE_MACHINE_TAHOE 0x7cc // Intel EM machine
|
||||||
|
+#define IMAGE_FILE_MACHINE_EBC 0xebc // EFI Byte Code
|
||||||
|
+#define IMAGE_FILE_MACHINE_X64 0x8664 // x86_64
|
||||||
|
//
|
||||||
|
// Directory format.
|
||||||
|
//
|
||||||
|
--
|
||||||
|
1.7.3.1
|
||||||
|
|
Loading…
Reference in New Issue
Block a user