summaryrefslogtreecommitdiffstats
path: root/qemu/roms/openbios/include/arch/sparc64/elf.h
diff options
context:
space:
mode:
Diffstat (limited to 'qemu/roms/openbios/include/arch/sparc64/elf.h')
-rw-r--r--qemu/roms/openbios/include/arch/sparc64/elf.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/qemu/roms/openbios/include/arch/sparc64/elf.h b/qemu/roms/openbios/include/arch/sparc64/elf.h
new file mode 100644
index 000000000..8acad1a47
--- /dev/null
+++ b/qemu/roms/openbios/include/arch/sparc64/elf.h
@@ -0,0 +1,5 @@
+#define ARCH_ELF_CLASS ELFCLASS64
+#define ARCH_ELF_DATA ELFDATA2MSB
+#define ARCH_ELF_MACHINE_OK(x) ((x)==EM_SPARCV9)
+typedef Elf64_Ehdr Elf_ehdr;
+typedef Elf64_Phdr Elf_phdr;