summaryrefslogtreecommitdiffstats
path: root/qemu/roms/openbios/include/arch/x86/elf.h
diff options
context:
space:
mode:
Diffstat (limited to 'qemu/roms/openbios/include/arch/x86/elf.h')
-rw-r--r--qemu/roms/openbios/include/arch/x86/elf.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/qemu/roms/openbios/include/arch/x86/elf.h b/qemu/roms/openbios/include/arch/x86/elf.h
new file mode 100644
index 000000000..86c672508
--- /dev/null
+++ b/qemu/roms/openbios/include/arch/x86/elf.h
@@ -0,0 +1,5 @@
+#define ARCH_ELF_CLASS ELFCLASS32
+#define ARCH_ELF_DATA ELFDATA2LSB
+#define ARCH_ELF_MACHINE_OK(x) ((x)==EM_386 || (x)==EM_486)
+typedef Elf32_Ehdr Elf_ehdr;
+typedef Elf32_Phdr Elf_phdr;