Skip to content

Instantly share code, notes, and snippets.

@zhuowei
Created June 5, 2018 03:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zhuowei/907ed33729d0bf7a30425f49f2dbec1e to your computer and use it in GitHub Desktop.
Save zhuowei/907ed33729d0bf7a30425f49f2dbec1e to your computer and use it in GitHub Desktop.
$ /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld -o why -iosmac_version_min 12.0 why.o
ld: warning: Auto-Linking library not found for -lswiftCore
ld: warning: Auto-Linking library not found for -lswiftSwiftOnoneSupport
$ /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/otool -l why
why:
Mach header
magic cputype cpusubtype caps filetype ncmds sizeofcmds flags
0xfeedfacf 16777223 3 0x00 2 14 920 0x00000085
Load command 0
cmd LC_SEGMENT_64
cmdsize 72
segname __PAGEZERO
vmaddr 0x0000000000000000
vmsize 0x0000000000001000
fileoff 0
filesize 0
maxprot 0x00000000
initprot 0x00000000
nsects 0
flags 0x0
Load command 1
cmd LC_SEGMENT_64
cmdsize 312
segname __TEXT
vmaddr 0x0000000000001000
vmsize 0x0000000000001000
fileoff 0
filesize 4096
maxprot 0x00000005
initprot 0x00000005
nsects 3
flags 0x0
Section
sectname __text
segname __TEXT
addr 0x0000000000001fd0
size 0x000000000000000f
offset 4048
align 2^4 (16)
reloff 0
nreloc 0
flags 0x80000400
reserved1 0
reserved2 0
Section
sectname __const
segname __TEXT
addr 0x0000000000001fe0
size 0x0000000000000002
offset 4064
align 2^1 (2)
reloff 0
nreloc 0
flags 0x00000000
reserved1 0
reserved2 0
Section
sectname __eh_frame
segname __TEXT
addr 0x0000000000001fe8
size 0x0000000000000018
offset 4072
align 2^3 (8)
reloff 0
nreloc 0
flags 0x00000000
reserved1 0
reserved2 0
Load command 2
cmd LC_SEGMENT_64
cmdsize 152
segname __DATA
vmaddr 0x0000000000002000
vmsize 0x0000000000001000
fileoff 4096
filesize 4096
maxprot 0x00000003
initprot 0x00000003
nsects 1
flags 0x0
Section
sectname __objc_imageinfo
segname __DATA
addr 0x0000000000002000
size 0x0000000000000008
offset 4096
align 2^2 (4)
reloff 0
nreloc 0
flags 0x00000000
reserved1 0
reserved2 0
Load command 3
cmd LC_SEGMENT_64
cmdsize 72
segname __LINKEDIT
vmaddr 0x0000000000003000
vmsize 0x0000000000001000
fileoff 8192
filesize 160
maxprot 0x00000001
initprot 0x00000001
nsects 0
flags 0x0
Load command 4
cmd LC_DYLD_INFO_ONLY
cmdsize 48
rebase_off 0
rebase_size 0
bind_off 0
bind_size 0
weak_bind_off 0
weak_bind_size 0
lazy_bind_off 0
lazy_bind_size 0
export_off 8192
export_size 48
Load command 5
cmd LC_SYMTAB
cmdsize 24
symoff 8248
nsyms 3
stroff 8296
strsize 56
Load command 6
cmd LC_DYSYMTAB
cmdsize 80
ilocalsym 0
nlocalsym 1
iextdefsym 1
nextdefsym 2
iundefsym 3
nundefsym 0
tocoff 0
ntoc 0
modtaboff 0
nmodtab 0
extrefsymoff 0
nextrefsyms 0
indirectsymoff 0
nindirectsyms 0
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 40368E78-DE25-342F-85F8-186A1460530A
Load command 9
cmd LC_BUILD_VERSION
cmdsize 32
platform iosmac
sdk n/a
minos 12.0
ntools 1
tool ld
version 408.1.1
Load command 10
cmd LC_SOURCE_VERSION
cmdsize 16
version 0.0
Load command 11
cmd LC_MAIN
cmdsize 24
entryoff 4048
stacksize 0
Load command 12
cmd LC_FUNCTION_STARTS
cmdsize 16
dataoff 8240
datasize 8
Load command 13
cmd LC_DATA_IN_CODE
cmdsize 16
dataoff 8248
datasize 0
$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment