Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Parser for 32-bit and 64-bit Mach-O binary/executable formats in C++ [closed]

Tags:

c++

macos

mach-o

I'm looking for a C++ library that can parse 32-bit and 64-bit Mach-O binary format. I don't need anything fancy, just a disassembly and splitting the file into its sections, so no decompilation, name demangling and so on.

I know I can either rip open any existing disassembler or craft my own binary parsers using the format specification from Apple, but I was kind of hoping not having to go that far, especially if someone else has done the work for me.

Many thanks!

like image 685
blwy10 Avatar asked Nov 22 '09 08:11

blwy10


1 Answers

You can start with the open-source class-dump tool (http://www.codethecode.com/projects/class-dump/). It can read both 32 and 64 bits Mach-o binaries, and is known to have a decent parser.

like image 155
Laurent Etiemble Avatar answered Sep 21 '22 20:09

Laurent Etiemble