mikeakohn / naken_asm

Assembler for MSP430, dsPIC, ARM, MIPS, 65xx, 68000, 8051/8052, Atmel AVR8, and others.
http://www.mikekohn.net/micro/naken_asm.php
GNU General Public License v3.0
294 stars 50 forks source link

ELF machine unknown for several processors #9

Closed abe-k closed 9 years ago

abe-k commented 9 years ago

The functions for reading and writing ELF files do not generate or recognize the machine number for several of the supported architectures. The latest version of the gABI spec defines machine numbers for the STM8 (186), the 68k (4), the 68HC08 (71), the 8051 (165), the PowerPC (20), and the Z80 (220) architectures, among others.

mikeakohn commented 9 years ago

Thanks for letting me know. I didn't add in PowerPC since there's no real support for it yet, but the others should be there. I also updated magic_elf to output Z80, STM8, and 8051. Let me know if you find anything else.

abe-k commented 9 years ago

Slight typo: you put 168 instead of 186 for the STM8.

mikeakohn commented 9 years ago

Fixed.