Mach-o file format

Source: Internet
Author: User

Mach-o (Mach object) file format

This format is very rare in Chinese, and the most detailed is Apple's official documentation, this article does not repeat the contents of the Mach-o file format, only the experience when using IDA reverse iOS application.

Mach-o Detailed documentation Reference: https://developer.apple.com/library/mac/documentation/DeveloperTools/Conceptual/MachORuntime/index.html

The 1,mach-o format can contain executable code for multiple target platforms, such as executable code that contains both arm64 and ARM7.

When you build an iOS application with a multi-target platform, drag it into Ida, as shown in:

Ida recognizes the code for both architectures.

Let Ida load the code for the ARM7 platform first

Place the mouse over the red circle. You can see the magic number of the Mach-o file in the hex window on the right. Show magic number at file offset 4000 in the lower-left corner of the position

Then open the Segment window to view the layout of the file mapped to memory

 

From the IDA Segment window, you can see clearly how the various sections of each executable file are loaded. The executable file is mapped from a file offset of 4000 to memory (starting at 0).

Mach-o file format

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.