plaintext · 2978 bytes Raw Blame History
1 Usage: afs-ld [options] <inputs...>
2
3 Options:
4 -o <path> Write output to <path>
5 -dylib Emit a dylib instead of an executable
6 -e <symbol> Set the entry symbol
7 -arch arm64 Select the arm64 target
8 -map <path> Emit text link map
9 -why_live <symbol> Print a reachability chain for <symbol>
10 -l<name> / -l <name> Search for library
11 -L <dir> Add library search path
12 -framework <name> Link framework
13 -weak_framework <name> Link weak framework
14 -ObjC Objective-C archive loading mode (currently a no-op warning)
15 -syslibroot <path> Prefix SDK search roots
16 -platform_version macos <min> <sdk>
17 Set LC_BUILD_VERSION payload
18 -r Relocatable output (deferred; errors)
19 -bundle Bundle output (deferred; errors)
20 -undefined <error|warning|suppress|dynamic_lookup>
21 Control unresolved-symbol treatment
22 -rpath <path> Add LC_RPATH
23 -install_name <path> Override dylib install name
24 -current_version <v> Override dylib current version
25 -compatibility_version <v> Override dylib compatibility version
26 -exported_symbols_list <file> Export only symbols matching file patterns
27 -unexported_symbols_list <file> Hide symbols matching file patterns
28 -exported_symbol <sym> Export one symbol/pattern
29 -unexported_symbol <sym> Hide one symbol/pattern
30 -x Strip local symbols
31 -S Strip debug symbols (currently a no-op warning)
32 -no_uuid Omit LC_UUID
33 -no_loh Accepted for compatibility (currently warns; no effect)
34 -thunks=<none|safe|all> Configure branch thunks
35 -dead_strip Dead-strip unreferenced code/data
36 -icf=safe | -icf=none | -icf=all
37 Configure identical code folding (`all` currently errors)
38 -fixup_chains | -no_fixup_chains
39 Select chained fixups vs classic dyld info
40 -all_load Force-load every archive member
41 -force_load <archive> Force-load one archive
42 -j <jobs> Limit parallel worker jobs (`1` disables parallelism)
43 -Wl,<arg,arg,...> Normalize comma-separated driver flags
44 --dump <path> Dump a Mach-O file summary
45 --dump-archive <path> Dump an archive summary
46 --dump-dylib <path> Dump a dylib summary
47 --dump-tbd <path> Dump a TBD summary
48 -t, -trace Print input paths as they are loaded
49 -h, --help Show this help
50 -v, --version Show afs-ld version