diff options
author | Anton Leherbauer | 2007-01-25 08:27:05 +0000 |
---|---|---|
committer | Anton Leherbauer | 2007-01-25 08:27:05 +0000 |
commit | 24f59a092f7724dfe058fa6894f95e7cf1bb047a (patch) | |
tree | a3830f0e8f8fa03e7751f02a4cfcbfbca1bad44b /core/org.eclipse.cdt.core/utils | |
parent | db7ea396eab44c91d44b347f7e651e570b2f3c60 (diff) | |
download | org.eclipse.cdt-24f59a092f7724dfe058fa6894f95e7cf1bb047a.tar.gz org.eclipse.cdt-24f59a092f7724dfe058fa6894f95e7cf1bb047a.tar.xz org.eclipse.cdt-24f59a092f7724dfe058fa6894f95e7cf1bb047a.zip |
Fix for Bug 171421 - CDT ELF parser do not detect COLDFIRE cpu from ELF machine id (patch by Uwe Stieber)
Diffstat (limited to 'core/org.eclipse.cdt.core/utils')
-rw-r--r-- | core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/elf/Elf.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/elf/Elf.java b/core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/elf/Elf.java index 92d32542cab..dc14ecdb500 100644 --- a/core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/elf/Elf.java +++ b/core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/elf/Elf.java @@ -108,6 +108,7 @@ public class Elf { public final static int EM_H8_300 = 46; public final static int EM_H8_300H = 47; public final static int EM_IA_64 = 50; + public final static int EM_COLDFIRE = 52; public final static int EM_X86_64 = 62; public final static int EM_ST100 = 60; public final static int EM_AVR = 83; @@ -817,6 +818,9 @@ public class Elf { case Elf.ELFhdr.EM_IA_64 : attrib.cpu = "ia64"; //$NON-NLS-1$ break; + case Elf.ELFhdr.EM_COLDFIRE: + attrib.cpu = "coldfire"; //$NON-NLS-1$ + break; case Elf.ELFhdr.EM_AVR : attrib.cpu = "avr"; //$NON-NLS-1$ break; |