
- •Contents
- •Figures and Tables
- •OS X ABI Mach-O File Format Reference
- •Overview
- •Basic Structure
- •Header Structure and Load Commands
- •Segments
- •Sections
- •Data Types
- •Header Data Structure
- •mach_header
- •mach_header_64
- •Load Command Data Structures
- •load_command
- •uuid_command
- •segment_command
- •segment_command_64
- •section
- •section_64
- •twolevel_hints_command
- •twolevel_hint
- •dylib
- •dylib_command
- •dylinker_command
- •prebound_dylib_command
- •thread_command
- •routines_command
- •routines_command_64
- •sub_framework_command
- •sub_umbrella_command
- •sub_library_command
- •sub_client_command
- •Symbol Table and Related Data Structures
- •symtab_command
- •nlist
- •nlist_64
- •dysymtab_command
- •dylib_table_of_contents
- •dylib_module
- •dylib_module_64
- •dylib_reference
- •Relocation Data Structures
- •relocation_info
- •scattered_relocation_info
- •Universal Binaries and 32-bit/64-bit PowerPC Binaries
- •fat_header
- •fat_arch

OS X ABI Mach-O File Format Reference

Contents
OS X ABI Mach-O File Format Reference 4
Overview 4
Basic Structure 4
Header Structure and Load Commands 5
Segments 6
Sections 7
Data Types 9
Header Data Structure 9
Load Command Data Structures 16
Symbol Table and Related Data Structures 44
Relocation Data Structures 57
Universal Binaries and 32-bit/64-bit PowerPC Binaries 63
Document Revision History 67
2009-02-04 | Copyright © 2003, 2009 Apple Inc. All Rights Reserved.
2

Figures and Tables
OS X ABI Mach-O File Format Reference 4
Figure 1 Mach-O file format basic structure 5
Table 1 The sections of a __TEXT segment 8
Table 2 The sections of a __DATA segment 8
Table 3 The sections of a __IMPORT segment 9
Table 4 Mach-O load commands 16
2009-02-04 | Copyright © 2003, 2009 Apple Inc. All Rights Reserved.
3