关于 Mach_O 文件的结构

Structure about the Mach_O File

大家好,谁知道 align 字段是什么?我使用 ida pro 来破坏这个文件,但在 __text 部分中断了它可能是开发人员对这个 macho 文件做了一些事情。比如编辑偏移字段以避免开发人员反编译这个文件。 This Image is i use the otool command to decode the struct of this unix mach_o file (Click to see)

align 字段指定部分所需的对齐方式。该段的基地址必须是您看到的数字的倍数(在您的示例中为 128)。

截面对齐被计算为截面中所有原子对齐的最大值,在 OutputFile::updateLINKEDITAddresses(ld::Internal& state)