Skip to content

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

@PursuitSunshine

Description

@PursuitSunshine

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

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