Skip to content

Commit 291325b

Browse files
committed
elf: machine enum - add unofficial values, rename {=>old_}alpha
Based on <armijnhemel/binaryanalysis-ng@020c477>
1 parent deadeba commit 291325b

File tree

1 file changed

+97
-1
lines changed

1 file changed

+97
-1
lines changed

executable/elf.ksy

Lines changed: 97 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -857,7 +857,7 @@ enums:
857857
id: arm
858858
doc: ARM
859859
41:
860-
id: alpha
860+
id: old_alpha
861861
-orig-id: EM_FAKE_ALPHA
862862
doc: DEC Alpha
863863
42:
@@ -1423,6 +1423,102 @@ enums:
14231423
doc-ref:
14241424
- https://gitlab.com/gnutools/binutils-gdb/-/blob/4ffb22ec40/include/elf/common.h#L356
14251425
- https://groups.google.com/g/generic-abi/c/n8tLQxj02YY
1426+
# unofficial values
1427+
# https://gitlab.com/gnutools/binutils-gdb/-/blob/4ffb22ec40/include/elf/common.h#L358
1428+
0x1057:
1429+
id: avr_old
1430+
-orig-id: EM_AVR_OLD
1431+
0x1059:
1432+
id: msp430_old
1433+
-orig-id: EM_MSP430_OLD
1434+
0x1223:
1435+
id: adapteva_epiphany
1436+
-orig-id: EM_ADAPTEVA_EPIPHANY
1437+
doc: Adapteva's Epiphany architecture.
1438+
0x2530:
1439+
id: mt
1440+
-orig-id: EM_MT
1441+
doc: Morpho MT
1442+
0x3330:
1443+
id: cygnus_fr30
1444+
-orig-id: EM_CYGNUS_FR30
1445+
0x4157:
1446+
id: webassembly
1447+
-orig-id: EM_WEBASSEMBLY
1448+
doc: Unofficial value for Web Assembly binaries, as used by LLVM.
1449+
0x4688:
1450+
id: xc16x
1451+
-orig-id: EM_XC16X
1452+
doc: Infineon Technologies 16-bit microcontroller with C166-V2 core
1453+
0x4def:
1454+
id: s12z
1455+
-orig-id: EM_S12Z
1456+
doc: The Freescale toolchain generates elf files with this value.
1457+
0x5441:
1458+
id: cygnus_frv
1459+
-orig-id: EM_CYGNUS_FRV
1460+
0x5aa5:
1461+
id: dlx
1462+
-orig-id: EM_DLX
1463+
doc: openDLX
1464+
0x7650:
1465+
id: cygnus_d10v
1466+
-orig-id: EM_CYGNUS_D10V
1467+
0x7676:
1468+
id: cygnus_d30v
1469+
-orig-id: EM_CYGNUS_D30V
1470+
0x8217:
1471+
id: ip2k_old
1472+
-orig-id: EM_IP2K_OLD
1473+
0x9025:
1474+
id: cygnus_powerpc
1475+
-orig-id: EM_CYGNUS_POWERPC
1476+
0x9026:
1477+
id: alpha
1478+
-orig-id: EM_ALPHA
1479+
0x9041:
1480+
id: cygnus_m32r
1481+
-orig-id: EM_CYGNUS_M32R
1482+
0x9080:
1483+
id: cygnus_v850
1484+
-orig-id: EM_CYGNUS_V850
1485+
0xa390:
1486+
id: s390_old
1487+
-orig-id: EM_S390_OLD
1488+
0xabc7:
1489+
id: xtensa_old
1490+
-orig-id: EM_XTENSA_OLD
1491+
0xad45:
1492+
id: xstormy16
1493+
-orig-id: EM_XSTORMY16
1494+
0xbaab:
1495+
id: microblaze_old
1496+
-orig-id: EM_MICROBLAZE_OLD
1497+
0xbeef:
1498+
id: cygnus_mn10300
1499+
-orig-id: EM_CYGNUS_MN10300
1500+
0xdead:
1501+
id: cygnus_mn10200
1502+
-orig-id: EM_CYGNUS_MN10200
1503+
0xfeb0:
1504+
id: m32c_old
1505+
-orig-id: EM_M32C_OLD
1506+
doc: Renesas M32C and M16C
1507+
0xfeba:
1508+
id: iq2000
1509+
-orig-id: EM_IQ2000
1510+
doc: Vitesse IQ2000
1511+
0xfebb:
1512+
id: nios32
1513+
-orig-id: EM_NIOS32
1514+
0xf00d:
1515+
id: cygnus_mep
1516+
-orig-id: EM_CYGNUS_MEP
1517+
doc: Toshiba MeP
1518+
0xfeed:
1519+
id: moxie_old
1520+
-orig-id: EM_MOXIE_OLD
1521+
doc: Old, unofficial value for Moxie
14261522
ph_type:
14271523
0: null_type
14281524
1: load

0 commit comments

Comments
 (0)