Commit 1f77cdb40a997575fed193d1edbe16af03ea733e

Marek Vasut 2015-11-30T20:39:00

Add NIOS2 support to nlist() Add support for the NIOS2 soft-core CPU provided by Altera. Signed-off-by: Marek Vasut <marex@denx.de> Signed-off-by: Guillem Jover <guillem@hadrons.org> Cc: Ley Foon Tan <lftan@altera.com> Cc: Thomas Chou <thomas@wytron.com.tw> Cc: Walter Goossens <waltergoossens@home.nl>

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/src/local-elf.h b/src/local-elf.h
index 612ce12..28d4007 100644
--- a/src/local-elf.h
+++ b/src/local-elf.h
@@ -134,6 +134,12 @@
 #define ELF_TARG_DATA	ELFDATA2LSB
 #endif
 
+#elif defined(__nios2__)
+
+#define ELF_TARG_MACH	EM_ALTERA_NIOS2
+#define ELF_TARG_CLASS	ELFCLASS32
+#define ELF_TARG_DATA	ELFDATA2LSB
+
 #elif defined(__powerpc__)
 
 #define ELF_TARG_MACH	EM_PPC