Michal Simek | c6087fd | 2009-03-27 14:25:34 +0100 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright (C) 2006 Atmark Techno, Inc. |
| 3 | * |
| 4 | * This file is subject to the terms and conditions of the GNU General Public |
| 5 | * License. See the file "COPYING" in the main directory of this archive |
| 6 | * for more details. |
| 7 | */ |
| 8 | |
| 9 | #ifndef _ASM_MICROBLAZE_ELF_H |
| 10 | #define _ASM_MICROBLAZE_ELF_H |
| 11 | |
| 12 | /* |
| 13 | * Note there is no "official" ELF designation for Microblaze. |
| 14 | * I've snaffled the value from the microblaze binutils source code |
| 15 | * /binutils/microblaze/include/elf/microblaze.h |
| 16 | */ |
| 17 | #define EM_XILINX_MICROBLAZE 0xbaab |
| 18 | #define ELF_ARCH EM_XILINX_MICROBLAZE |
| 19 | |
| 20 | /* |
| 21 | * This is used to ensure we don't load something for the wrong architecture. |
| 22 | */ |
| 23 | #define elf_check_arch(x) ((x)->e_machine == EM_XILINX_MICROBLAZE) |
| 24 | |
| 25 | /* |
| 26 | * These are used to set parameters in the core dumps. |
| 27 | */ |
| 28 | #define ELF_CLASS ELFCLASS32 |
| 29 | |
| 30 | #endif /* _ASM_MICROBLAZE_ELF_H */ |