Skip to content

Instantly share code, notes, and snippets.

@koshov
Created February 9, 2014 18:02
Show Gist options
  • Save koshov/8903199 to your computer and use it in GitHub Desktop.
Save koshov/8903199 to your computer and use it in GitHub Desktop.
libamd.dylib:
Load command 0
cmd LC_SEGMENT_64
cmdsize 632
segname __TEXT
vmaddr 0x0000000000000000
vmsize 0x0000000000007000
fileoff 0
filesize 28672
maxprot 0x00000007
initprot 0x00000005
nsects 7
flags 0x0
Section
sectname __text
segname __TEXT
addr 0x0000000000001560
size 0x0000000000004a01
offset 5472
align 2^4 (16)
reloff 0
nreloc 0
flags 0x80000400
reserved1 0
reserved2 0
Section
sectname __stubs
segname __TEXT
addr 0x0000000000005f62
size 0x000000000000001e
offset 24418
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 0x0000000000005f80
size 0x0000000000000042
offset 24448
align 2^2 (4)
reloff 0
nreloc 0
flags 0x80000400
reserved1 0
reserved2 0
Section
sectname __const
segname __TEXT
addr 0x0000000000005fd0
size 0x0000000000000120
offset 24528
align 2^4 (16)
reloff 0
nreloc 0
flags 0x00000000
reserved1 0
reserved2 0
Section
sectname __cstring
segname __TEXT
addr 0x00000000000060f0
size 0x000000000000077a
offset 24816
align 2^0 (1)
reloff 0
nreloc 0
flags 0x00000002
reserved1 0
reserved2 0
Section
sectname __unwind_info
segname __TEXT
addr 0x000000000000686a
size 0x00000000000000a8
offset 26730
align 2^0 (1)
reloff 0
nreloc 0
flags 0x00000000
reserved1 0
reserved2 0
Section
sectname __eh_frame
segname __TEXT
addr 0x0000000000006918
size 0x00000000000006e0
offset 26904
align 2^3 (8)
reloff 0
nreloc 0
flags 0x00000000
reserved1 0
reserved2 0
Load command 1
cmd LC_SEGMENT_64
cmdsize 312
segname __DATA
vmaddr 0x0000000000007000
vmsize 0x0000000000001000
fileoff 28672
filesize 4096
maxprot 0x00000007
initprot 0x00000003
nsects 3
flags 0x0
Section
sectname __nl_symbol_ptr
segname __DATA
addr 0x0000000000007000
size 0x0000000000000010
offset 28672
align 2^3 (8)
reloff 0
nreloc 0
flags 0x00000006
reserved1 5 (index into indirect symbol table)
reserved2 0
Section
sectname __la_symbol_ptr
segname __DATA
addr 0x0000000000007010
size 0x0000000000000028
offset 28688
align 2^3 (8)
reloff 0
nreloc 0
flags 0x00000007
reserved1 7 (index into indirect symbol table)
reserved2 0
Section
sectname __data
segname __DATA
addr 0x0000000000007038
size 0x0000000000000028
offset 28728
align 2^3 (8)
reloff 0
nreloc 0
flags 0x00000000
reserved1 0
reserved2 0
Load command 2
cmd LC_SEGMENT_64
cmdsize 72
segname __LINKEDIT
vmaddr 0x0000000000008000
vmsize 0x0000000000001000
fileoff 32768
filesize 2056
maxprot 0x00000007
initprot 0x00000001
nsects 0
flags 0x0
Load command 3
cmd LC_ID_DYLIB
cmdsize 72
name /private/tmp/julia-F0xI/usr/lib/libamd.dylib (offset 24)
time stamp 1 Thu Jan 1 01:00:01 1970
current version 0.0.0
compatibility version 0.0.0
Load command 4
cmd LC_DYLD_INFO_ONLY
cmdsize 48
rebase_off 32768
rebase_size 8
bind_off 32776
bind_size 120
weak_bind_off 0
weak_bind_size 0
lazy_bind_off 32896
lazy_bind_size 96
export_off 32992
export_size 424
Load command 5
cmd LC_SYMTAB
cmdsize 24
symoff 33464
nsyms 46
stroff 34248
strsize 576
Load command 6
cmd LC_DYSYMTAB
cmdsize 80
ilocalsym 0
nlocalsym 8
iextdefsym 8
nextdefsym 27
iundefsym 35
nundefsym 11
tocoff 0
ntoc 0
modtaboff 0
nmodtab 0
extrefsymoff 0
nextrefsyms 0
indirectsymoff 34200
nindirectsyms 12
extreloff 0
nextrel 0
locreloff 0
nlocrel 0
Load command 7
cmd LC_UUID
cmdsize 24
uuid 3B55AE12-9572-39B0-AA3C-04103BAC277B
Load command 8
cmd LC_VERSION_MIN_MACOSX
cmdsize 16
version 10.7
sdk 10.9
Load command 9
cmd LC_LOAD_DYLIB
cmdsize 56
name /usr/lib/libSystem.B.dylib (offset 24)
time stamp 2 Thu Jan 1 01:00:02 1970
current version 1197.1.1
compatibility version 1.0.0
Load command 10
cmd LC_FUNCTION_STARTS
cmdsize 16
dataoff 33416
datasize 48
Load command 11
cmd LC_DATA_IN_CODE
cmdsize 16
dataoff 33464
datasize 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment