Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
PursuitSunshine opened this issue Feb 17, 2022 · 0 comments

Comments

@PursuitSunshine
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant