From c19a6ffad47fe772a3be345cfafc5e4ada2feabd Mon Sep 17 00:00:00 2001
From: Anton Leherbauer <anton.leherbauer@windriver.com>
Date: Fri, 7 Mar 2008 13:14:42 +0000
Subject: [PATCH] 216882: Add support for xtensa cpu in ELF machine attribute
 Patch from Abeer Bagul (Tensilica)

---
 .../utils/org/eclipse/cdt/utils/elf/Elf.java                | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

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 3299b23c1e6..68794e5b093 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
@@ -1,5 +1,5 @@
 /*******************************************************************************
- * Copyright (c) 2000, 2007 QNX Software Systems and others.
+ * Copyright (c) 2000, 2008 QNX Software Systems and others.
  * All rights reserved. This program and the accompanying materials
  * are made available under the terms of the Eclipse Public License v1.0
  * which accompanies this distribution, and is available at
@@ -117,6 +117,7 @@ public class Elf {
 		public final static int EM_M32R = 88;
 		public final static int EM_MN10300 = 89;
 		public final static int EM_MN10200 = 90;
+		public final static int EM_XTENSA = 94;
 		public final static int EM_MSP430 = 105;
 		public final static int EM_BLACKFIN = 106;
 		public final static int EM_EXCESS = 111;
@@ -832,6 +833,9 @@ public class Elf {
 			case Elf.ELFhdr.EM_MSP430 :
 				attrib.cpu = "msp430"; //$NON-NLS-1$
 				break;
+			case Elf.ELFhdr.EM_XTENSA:
+				attrib.cpu = "xtensa"; //$NON-NLS-1$
+				break;
 			case Elf.ELFhdr.EM_ST100:
 				attrib.cpu = "st100"; //$NON-NLS-1$
 				break;