Minimalist Mach-O binary format support This code is sucessfully able to load and recognize Mach-O binary files. It is able to sort through the FAT file headers and identify compatible files, although it currently is hardcoded for PowerPC64 architecture. Does not yet support load_commands or actually mapping the Mach-O files into memory. Signed-off-by: Kyle Moffett --- fs/Kconfig.binfmt | 14 ++ fs/Makefile | 1 + fs/mach-o/Makefile | 8 ++ fs/mach-o/binfmt.c | 321 +++++++++++++++++++++++++++++++++++++++++++ ++++++ fs/mach-o/cpus.h | 329 +++++++++++++++++++++++++++++++++++++++++++ ++++++++ fs/mach-o/debug.h | 9 ++ fs/mach-o/files.h | 139 ++++++++++++++++++++++ fs/mach-o/headers.h | 49 ++++++++ 8 files changed, 870 insertions(+), 0 deletions(-)