kaitai-io / kaitai_struct_formats

Kaitai Struct: library of binary file formats (.ksy)
http://formats.kaitai.io
700 stars 202 forks source link

Mach-O: big endian binaries not supported #670

Open armijnhemel opened 1 year ago

armijnhemel commented 1 year ago

I am currently looking at a binary for a PowerPC ppc_7400 which is big endian.

The magic bytes in the file are: 0xFEEDFACE which according to mach_o.ksy means macho_be_x86 (despite it being PowerPC, and not x86, but that is nitpicking).

It seems that mach_o.ksy is only supporting little endian files though.

armijnhemel commented 1 year ago

Test files can be found inside the Apple file downloaded from:

https://www.dji.com/nl/downloads/softwares/dji-assistant-2-consumer-drones-series