1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-22 06:02:11 +02:00

Bug 465976 aarch64 support in Elf reader

Change-Id: I226efbe1013cb254686979fd4cd48a05f9800c01
This commit is contained in:
Alena Laskavaia 2015-10-21 13:14:28 -04:00 committed by Gerrit Code Review @ Eclipse.org
parent 9f03bd1ee2
commit 95c65f0a9c

View file

@ -148,6 +148,8 @@ public class Elf {
/** @since 5.4 */ /** @since 5.4 */
public final static int EM_RL78 = 197; /* Renesas RL78 Microcontroller */ public final static int EM_RL78 = 197; /* Renesas RL78 Microcontroller */
/** @since 5.12 */
public final static int EM_AARCH64 = 183;
public final static int EM_NIOS = 0xFEBB; public final static int EM_NIOS = 0xFEBB;
public final static int EM_CYGNUS_POWERPC = 0x9025; public final static int EM_CYGNUS_POWERPC = 0x9025;
@ -769,6 +771,9 @@ public class Elf {
case Elf.ELFhdr.EM_ARM : case Elf.ELFhdr.EM_ARM :
attrib.cpu = "arm"; //$NON-NLS-1$ attrib.cpu = "arm"; //$NON-NLS-1$
break; break;
case Elf.ELFhdr.EM_AARCH64 :
attrib.cpu = "aarch64"; //$NON-NLS-1$
break;
case Elf.ELFhdr.EM_MIPS_RS3_LE : case Elf.ELFhdr.EM_MIPS_RS3_LE :
case Elf.ELFhdr.EM_MIPS : case Elf.ELFhdr.EM_MIPS :
attrib.cpu = "mips"; //$NON-NLS-1$ attrib.cpu = "mips"; //$NON-NLS-1$