Skip to content

关于 "Mach-O"文件格式探索一文中 magic = 0xcafebabe 的问题 #14

Description

@PursuitSunshine

建议采用 MachOView 看下 magic 的值,并非 magic = 0xcafebabe,而是 magic = 0xbebafeca,FAT_CIGAM。 这个涉及到内存大小端问题。官方文档对此也有详细的解释,参考官文: https://developer.apple.com/documentation/kernel/fat_header。iOS 是小端模式。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions