[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[cdt-patch] RE: Elf.java patch for new magic numbers
|
Oops, you can tell that I'm new at this! Perhaps it would help if I
attach the patch. Let's try that again.
James Langley
Senior Software Engineer
Altera ETC
Index: Elf.java
===================================================================
RCS file: /home/tools/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/elf/Elf.java,v
retrieving revision 1.24
diff -u -r1.24 Elf.java
--- Elf.java 29 Apr 2004 18:11:29 -0000 1.24
+++ Elf.java 12 May 2004 18:07:53 -0000
@@ -98,6 +98,8 @@
public final static int EM_MN10300 = 89;
public final static int EM_MN10200 = 90;
public final static int EM_EXCESS = 111;
+ public final static int EM_NIOSII = 113;
+ public final static int EM_NIOS = 0xFEBB;
public final static int EM_CYGNUS_POWERPC = 0x9025;
public final static int EM_CYGNUS_M32R = 0x9041;
public final static int EM_CYGNUS_V850 = 0x9080;
@@ -795,6 +797,12 @@
break;
case Elf.ELFhdr.EM_EXCESS:
attrib.cpu = "excess"; //$NON-NLS-1$
+ break;
+ case Elf.ELFhdr.EM_NIOSII :
+ attrib.cpu = "alteranios2";
+ break;
+ case Elf.ELFhdr.EM_NIOS :
+ attrib.cpu = "alteranios";
break;
case Elf.ELFhdr.EM_IA_64:
attrib.cpu = "ia64"; //$NON-NLS-1$