mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
216882: Add support for xtensa cpu in ELF machine attribute
Patch from Abeer Bagul (Tensilica)
This commit is contained in:
parent
0f3191b1bb
commit
c19a6ffad4
1 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue