summaryrefslogtreecommitdiffstats
path: root/arch/microblaze/include/asm/elf.h
diff options
context:
space:
mode:
authorMichal Simek <monstr@monstr.eu>2009-03-27 14:25:34 +0100
committerMichal Simek <monstr@monstr.eu>2009-03-27 14:25:34 +0100
commitc6087fdc7720e7c5cf3d52fccecb3f73e3d52ac7 (patch)
tree4c34a883541457ca44d79d68c3afcb63d6dae344 /arch/microblaze/include/asm/elf.h
parent2c572c2824ca5d96bd22b9366389b75ff3620a13 (diff)
downloadlinux-stable-c6087fdc7720e7c5cf3d52fccecb3f73e3d52ac7.tar.gz
linux-stable-c6087fdc7720e7c5cf3d52fccecb3f73e3d52ac7.tar.bz2
linux-stable-c6087fdc7720e7c5cf3d52fccecb3f73e3d52ac7.zip
microblaze_v8: headers for executables format FLAT, ELF
Reviewed-by: Ingo Molnar <mingo@elte.hu> Acked-by: John Linn <john.linn@xilinx.com> Acked-by: Stephen Neuendorffer <stephen.neuendorffer@xilinx.com> Acked-by: John Williams <john.williams@petalogix.com> Signed-off-by: Michal Simek <monstr@monstr.eu>
Diffstat (limited to 'arch/microblaze/include/asm/elf.h')
-rw-r--r--arch/microblaze/include/asm/elf.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/arch/microblaze/include/asm/elf.h b/arch/microblaze/include/asm/elf.h
new file mode 100644
index 000000000000..81337f241347
--- /dev/null
+++ b/arch/microblaze/include/asm/elf.h
@@ -0,0 +1,30 @@
+/*
+ * Copyright (C) 2006 Atmark Techno, Inc.
+ *
+ * This file is subject to the terms and conditions of the GNU General Public
+ * License. See the file "COPYING" in the main directory of this archive
+ * for more details.
+ */
+
+#ifndef _ASM_MICROBLAZE_ELF_H
+#define _ASM_MICROBLAZE_ELF_H
+
+/*
+ * Note there is no "official" ELF designation for Microblaze.
+ * I've snaffled the value from the microblaze binutils source code
+ * /binutils/microblaze/include/elf/microblaze.h
+ */
+#define EM_XILINX_MICROBLAZE 0xbaab
+#define ELF_ARCH EM_XILINX_MICROBLAZE
+
+/*
+ * This is used to ensure we don't load something for the wrong architecture.
+ */
+#define elf_check_arch(x) ((x)->e_machine == EM_XILINX_MICROBLAZE)
+
+/*
+ * These are used to set parameters in the core dumps.
+ */
+#define ELF_CLASS ELFCLASS32
+
+#endif /* _ASM_MICROBLAZE_ELF_H */