diff options
| author | Sunil Nimmagadda <sunil@nimmagadda.net> | 2026-10-15 13:57:48 +0530 |
|---|---|---|
| committer | Sunil Nimmagadda <sunil@nimmagadda.net> | 2026-10-15 14:00:35 +0530 |
| commit | c81bee318f006f3e31eb3705fdc741d5527e63cd (patch) | |
| tree | bc4d686c9c1434edbfb283559932c7de3c9eb9d4 | |
| parent | 808c2b5f0895c2148e7313e64ef7ea7aa73d8f00 (diff) | |
Match names to that of libelf.
| -rw-r--r-- | mkelf.lua | 40 |
1 files changed, 21 insertions, 19 deletions
@@ -50,24 +50,26 @@ local Type <const> = { ---@enum Machine local Machine <const> = { none = 0x00, - att = 0x01, -- AT&T WE 32100 - sparc = 0x02, -- SPARC - x86 = 0x03, -- x86 - m68k = 0x04, -- Motorola 68000 (M68k) - m88k = 0x05, -- Motorola 88000(M88k) - mcu = 0x06, -- Intel MCU - i8086 = 0x07, -- Intel 80860 - mips = 0x08, -- MIPS - sys370 = 0x09, -- IBM System/370 - mipsle = 0x0a, -- MIPS RS3000 Little Endian - parisc = 0x0f, -- Hewlett-Packard PA-RISC - i8096 = 0x13, -- Intel 80960 - ppc = 0x14, -- PowerPC - ppc64 = 0x15, -- PowerPC (64-bit) - s390 = 0x16, - spc = 0x17, -- IBM SPC/SPU - nec = 0x24, -- NEC V800 - fr20 = 0x25, -- Fujitsu FR20 + m32 = 0x01, -- AT&T WE 32100 + sparc = 0x02, -- SPARC + i386 = 0x03, -- Intel 80386 + m68k = 0x04, -- Motorola 68000 (M68k) + m88k = 0x05, -- Motorola 88000 (M88k) + mcu = 0x06, -- Intel MCU + i860 = 0x07, -- Intel 80860 + mips = 0x08, -- MIPS + s370 = 0x09, -- IBM System/370 + mipsrs3le = 0x0a, -- MIPS RS3000 Little Endian + parisc = 0x0f, -- Hewlett-Packard PA-RISC + vpp500 = 0x11, -- Fujitsu VPP500 + sparc32 = 0x12, -- Enhanced instruction set SPARC + i960 = 0x13, -- Intel 80960 + ppc = 0x14, -- PowerPC + ppc64 = 0x15, -- PowerPC (64-bit) + s390 = 0x16, -- IBM System/390 + spu = 0x17, -- IBM SPC/SPU + v800 = 0x24, -- NEC V800 + fr20 = 0x25, -- Fujitsu FR20 -- todo } @@ -133,7 +135,7 @@ local header <const> = { osabi = Osabi.netbsd, abiversion = 0, type = Type.exec, - machine = Machine.x86, + machine = Machine.i386, version = ELFVERSION, entry = 0, phoff = 0x34, |
