Skip to content

Instantly share code, notes, and snippets.

@davefinster
Created June 10, 2015 00:44
Show Gist options
  • Save davefinster/f3284b53a86615025d57 to your computer and use it in GitHub Desktop.
Save davefinster/f3284b53a86615025d57 to your computer and use it in GitHub Desktop.
Load command 0
cmd LC_SEGMENT_64
cmdsize 72
segname __PAGEZERO
vmaddr 0x0000000000000000
vmsize 0x0000000100000000
fileoff 0
filesize 0
maxprot 0x00000000
initprot 0x00000000
nsects 0
flags 0x0
Load command 1
cmd LC_SEGMENT_64
cmdsize 712
segname __TEXT
vmaddr 0x0000000100000000
vmsize 0x000000000007f000
fileoff 0
filesize 520192
maxprot 0x00000007
initprot 0x00000005
nsects 8
flags 0x0
Section
sectname __text
segname __TEXT
addr 0x000000010000108c
size 0x000000000004e0a2
offset 4236
align 2^2 (4)
reloff 0
nreloc 0
flags 0x80000400
reserved1 0
reserved2 0
Section
sectname __stubs
segname __TEXT
addr 0x000000010004f12e
size 0x00000000000008b2
offset 323886
align 2^1 (2)
reloff 0
nreloc 0
flags 0x80000408
reserved1 0 (index into indirect symbol table)
reserved2 6 (size of stubs)
Section
sectname __stub_helper
segname __TEXT
addr 0x000000010004f9e0
size 0x0000000000000e8e
offset 326112
align 2^2 (4)
reloff 0
nreloc 0
flags 0x80000400
reserved1 0
reserved2 0
Section
sectname __cstring
segname __TEXT
addr 0x0000000100050870
size 0x0000000000010320
offset 329840
align 2^4 (16)
reloff 0
nreloc 0
flags 0x00000002
reserved1 0
reserved2 0
Section
sectname __const
segname __TEXT
addr 0x0000000100060b90
size 0x000000000001c520
offset 396176
align 2^4 (16)
reloff 0
nreloc 0
flags 0x00000000
reserved1 0
reserved2 0
Section
sectname __info_plist
segname __TEXT
addr 0x000000010007d0b0
size 0x00000000000002f1
offset 512176
align 2^0 (1)
reloff 0
nreloc 0
flags 0x00000000
reserved1 0
reserved2 0
Section
sectname __unwind_info
segname __TEXT
addr 0x000000010007d3a4
size 0x000000000000133c
offset 512932
align 2^2 (4)
reloff 0
nreloc 0
flags 0x00000000
reserved1 0
reserved2 0
Section
sectname __eh_frame
segname __TEXT
addr 0x000000010007e6e0
size 0x0000000000000918
offset 517856
align 2^3 (8)
reloff 0
nreloc 0
flags 0x00000000
reserved1 0
reserved2 0
Load command 2
cmd LC_SEGMENT_64
cmdsize 712
segname __DATA
vmaddr 0x000000010007f000
vmsize 0x0000000000007000
fileoff 520192
filesize 12288
maxprot 0x00000007
initprot 0x00000003
nsects 8
flags 0x0
Section
sectname __got
segname __DATA
addr 0x000000010007f000
size 0x00000000000000f0
offset 520192
align 2^3 (8)
reloff 0
nreloc 0
flags 0x00000006
reserved1 371 (index into indirect symbol table)
reserved2 0
Section
sectname __nl_symbol_ptr
segname __DATA
addr 0x000000010007f0f0
size 0x0000000000000010
offset 520432
align 2^3 (8)
reloff 0
nreloc 0
flags 0x00000006
reserved1 401 (index into indirect symbol table)
reserved2 0
Section
sectname __la_symbol_ptr
segname __DATA
addr 0x000000010007f100
size 0x0000000000000b98
offset 520448
align 2^3 (8)
reloff 0
nreloc 0
flags 0x00000007
reserved1 403 (index into indirect symbol table)
reserved2 0
Section
sectname __const
segname __DATA
addr 0x000000010007fca0
size 0x0000000000001b40
offset 523424
align 2^4 (16)
reloff 0
nreloc 0
flags 0x00000000
reserved1 0
reserved2 0
Section
sectname __cfstring
segname __DATA
addr 0x00000001000817e0
size 0x00000000000000a0
offset 530400
align 2^3 (8)
reloff 0
nreloc 0
flags 0x00000000
reserved1 0
reserved2 0
Section
sectname __data
segname __DATA
addr 0x0000000100081880
size 0x0000000000000188
offset 530560
align 2^4 (16)
reloff 0
nreloc 0
flags 0x00000000
reserved1 0
reserved2 0
Section
sectname __bss
segname __DATA
addr 0x0000000100081a10
size 0x0000000000000d54
offset 0
align 2^4 (16)
reloff 0
nreloc 0
flags 0x00000001
reserved1 0
reserved2 0
Section
sectname __common
segname __DATA
addr 0x0000000100082770
size 0x0000000000002948
offset 0
align 2^4 (16)
reloff 0
nreloc 0
flags 0x00000001
reserved1 0
reserved2 0
Load command 3
cmd LC_SEGMENT_64
cmdsize 72
segname __LINKEDIT
vmaddr 0x0000000100086000
vmsize 0x000000000000d000
fileoff 532480
filesize 52656
maxprot 0x00000007
initprot 0x00000001
nsects 0
flags 0x0
Load command 4
cmd LC_DYLD_INFO_ONLY
cmdsize 48
rebase_off 532480
rebase_size 192
bind_off 532672
bind_size 896
weak_bind_off 0
weak_bind_size 0
lazy_bind_off 533568
lazy_bind_size 8160
export_off 541728
export_size 14064
Load command 5
cmd LC_SYMTAB
cmdsize 24
symoff 557288
nsyms 410
stroff 566944
strsize 6176
Load command 6
cmd LC_DYSYMTAB
cmdsize 80
ilocalsym 0
nlocalsym 1
iextdefsym 1
nextdefsym 1
iundefsym 2
nundefsym 408
tocoff 0
ntoc 0
modtaboff 0
nmodtab 0
extrefsymoff 0
nextrefsyms 0
indirectsymoff 563848
nindirectsyms 774
extreloff 0
nextrel 0
locreloff 0
nlocrel 0
Load command 7
cmd LC_LOAD_DYLINKER
cmdsize 32
name /usr/lib/dyld (offset 12)
Load command 8
cmd LC_UUID
cmdsize 24
uuid 4BE48F6B-AE84-3D1B-9D86-06DFD5F369F4
Load command 9
cmd LC_VERSION_MIN_MACOSX
cmdsize 16
version 10.11
sdk 10.11
Load command 10
cmd LC_SOURCE_VERSION
cmdsize 16
version 191.0
Load command 11
cmd LC_MAIN
cmdsize 24
entryoff 60108
stacksize 0
Load command 12
cmd LC_LOAD_DYLIB
cmdsize 104
name /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (offset 24)
time stamp 2 Thu Jan 1 10:00:02 1970
current version 1216.1.0
compatibility version 150.0.0
Load command 13
cmd LC_LOAD_DYLIB
cmdsize 96
name /System/Library/Frameworks/Kerberos.framework/Versions/A/Kerberos (offset 24)
time stamp 2 Thu Jan 1 10:00:02 1970
current version 6.0.0
compatibility version 5.0.0
Load command 14
cmd LC_LOAD_DYLIB
cmdsize 104
name /System/Library/Frameworks/OpenDirectory.framework/Versions/A/OpenDirectory (offset 24)
time stamp 2 Thu Jan 1 10:00:02 1970
current version 1.0.0
compatibility version 1.0.0
Load command 15
cmd LC_LOAD_DYLIB
cmdsize 96
name /System/Library/Frameworks/Security.framework/Versions/A/Security (offset 24)
time stamp 2 Thu Jan 1 10:00:02 1970
current version 57236.0.0
compatibility version 1.0.0
Load command 16
cmd LC_LOAD_DYLIB
cmdsize 48
name /usr/lib/libbsm.0.dylib (offset 24)
time stamp 2 Thu Jan 1 10:00:02 1970
current version 1.0.0
compatibility version 1.0.0
Load command 17
cmd LC_LOAD_DYLIB
cmdsize 64
name /usr/lib/sshcrypto/libcrypto.dylib (offset 24)
time stamp 2 Thu Jan 1 10:00:02 1970
current version 1.0.0
compatibility version 1.0.0
Load command 18
cmd LC_LOAD_DYLIB
cmdsize 48
name /usr/lib/libpam.2.dylib (offset 24)
time stamp 2 Thu Jan 1 10:00:02 1970
current version 3.0.0
compatibility version 3.0.0
Load command 19
cmd LC_LOAD_DYLIB
cmdsize 48
name /usr/lib/libz.1.dylib (offset 24)
time stamp 2 Thu Jan 1 10:00:02 1970
current version 1.2.5
compatibility version 1.0.0
Load command 20
cmd LC_LOAD_DYLIB
cmdsize 56
name /usr/lib/libresolv.9.dylib (offset 24)
time stamp 2 Thu Jan 1 10:00:02 1970
current version 1.0.0
compatibility version 1.0.0
Load command 21
cmd LC_LOAD_DYLIB
cmdsize 56
name /usr/lib/libSystem.B.dylib (offset 24)
time stamp 2 Thu Jan 1 10:00:02 1970
current version 1222.0.0
compatibility version 1.0.0
Load command 22
cmd LC_FUNCTION_STARTS
cmdsize 16
dataoff 555792
datasize 1496
Load command 23
cmd LC_DATA_IN_CODE
cmdsize 16
dataoff 557288
datasize 0
Load command 24
cmd LC_CODE_SIGNATURE
cmdsize 16
dataoff 573120
datasize 12016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment