aboutsummaryrefslogtreecommitdiffstats
path: root/arch/microblaze/include/asm
diff options
context:
space:
mode:
authorEdgar E. Iglesias <edgar.iglesias@petalogix.com>2011-08-23 17:16:15 -0400
committerMichal Simek <monstr@monstr.eu>2011-10-14 06:24:31 -0400
commit69515f8b957a4b1558d4726ffa6be2484e1dcb60 (patch)
tree4c3212f3489341df851a04853027f4f32723f139 /arch/microblaze/include/asm
parent0fb2a6f283f25731217841f961cefa0a19bd449d (diff)
microblaze: Switch ELF_ARCH code to 189
Switch arch code to 189, the registered code in the upstream version of binutils. Continue to accept the experimental 0xbaab. Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com> Signed-off-by: Michal Simek <monstr@monstr.eu>
Diffstat (limited to 'arch/microblaze/include/asm')
-rw-r--r--arch/microblaze/include/asm/elf.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/arch/microblaze/include/asm/elf.h b/arch/microblaze/include/asm/elf.h
index 098dfdde4b06..834849f59ae8 100644
--- a/arch/microblaze/include/asm/elf.h
+++ b/arch/microblaze/include/asm/elf.h
@@ -16,13 +16,15 @@
16 * I've snaffled the value from the microblaze binutils source code 16 * I've snaffled the value from the microblaze binutils source code
17 * /binutils/microblaze/include/elf/microblaze.h 17 * /binutils/microblaze/include/elf/microblaze.h
18 */ 18 */
19#define EM_XILINX_MICROBLAZE 0xbaab 19#define EM_MICROBLAZE 189
20#define ELF_ARCH EM_XILINX_MICROBLAZE 20#define EM_MICROBLAZE_OLD 0xbaab
21#define ELF_ARCH EM_MICROBLAZE
21 22
22/* 23/*
23 * This is used to ensure we don't load something for the wrong architecture. 24 * This is used to ensure we don't load something for the wrong architecture.
24 */ 25 */
25#define elf_check_arch(x) ((x)->e_machine == EM_XILINX_MICROBLAZE) 26#define elf_check_arch(x) ((x)->e_machine == EM_MICROBLAZE \
27 || (x)->e_machine == EM_MICROBLAZE_OLD)
26 28
27/* 29/*
28 * These are used to set parameters in the core dumps. 30 * These are used to set parameters in the core dumps.