uxmal / reko

Reko is a binary decompiler.
https://uxmal.github.io/reko
GNU General Public License v2.0
2.09k stars 250 forks source link

can not open csky elf #1336

Closed bambooeric closed 3 months ago

bambooeric commented 3 months ago

When open C-Sky ELF file, get error "Opening file ELF machine type EM RCE is not implemented yet"

uxmal commented 3 months ago

Could you please provide the affected ELF file?

uxmal commented 3 months ago

I think I've fixed the immediate problem without a binary. It turns out that C-Sky incorrectly used the ELF machine type EM_RCE for a while before using the correct EM_CSKY constant. I've changed Reko to detect this, and redirect binaries with EM_RCE to EM_CSKY.