@@ -6,28 +6,25 @@ def B : JoinedOrSeparate<["-"], "B">,
6
6
Alias<binary_architecture>,
7
7
HelpText<"Alias for --binary-architecture">;
8
8
9
- defm target : Eq<"target", "Format of the input and output file ">,
9
+ defm target : Eq<"target", "Equivalent to -- input-target and -- output-target for the specified format ">,
10
10
Values<"binary">;
11
11
def F : JoinedOrSeparate<["-"], "F">,
12
12
Alias<target>,
13
13
HelpText<"Alias for --target">;
14
14
15
- defm input_target : Eq<"input-target", "Format of the input file">,
16
- Values<"binary">;
15
+ defm input_target : Eq<"input-target", "Read the input as the specified format">, MetaVarName<"format">;
17
16
def I : JoinedOrSeparate<["-"], "I">,
18
17
Alias<input_target>,
19
18
HelpText<"Alias for --input-target">;
20
19
21
- defm output_target : Eq<"output-target", "Format of the output file">,
22
- Values<"binary">;
20
+ defm output_target : Eq<"output-target", "Write the output as the specified format">, MetaVarName<"format">;
23
21
def O : JoinedOrSeparate<["-"], "O">,
24
22
Alias<output_target>,
25
23
HelpText<"Alias for --output-target">;
26
24
27
- defm new_symbol_visibility : Eq<"new-symbol-visibility", "Visibility of "
28
- "symbols generated for binary input or added"
29
- " with --add-symbol unless otherwise"
30
- " specified. The default value is 'default'">;
25
+ defm new_symbol_visibility
26
+ : Eq<"new-symbol-visibility", "Specify the visibility of symbols automatically "
27
+ "created when using binary input or --add-symbol. The default is 'default'">;
31
28
32
29
def compress_debug_sections
33
30
: Joined<["--"], "compress-debug-sections=">,
@@ -39,8 +36,8 @@ def : Flag<["--"], "compress-debug-sections">, Alias<compress_debug_sections>,
39
36
def decompress_debug_sections : Flag<["--"], "decompress-debug-sections">,
40
37
HelpText<"Decompress DWARF debug sections">;
41
38
defm split_dwo
42
- : Eq<"split-dwo", "Equivalent to extract-dwo on the input file to "
43
- "<dwo-file>, then strip-dwo on the input file">,
39
+ : Eq<"split-dwo", "Equivalent to -- extract-dwo and <dwo-file> as the output file and no other options, "
40
+ "and then -- strip-dwo on the input file">,
44
41
MetaVarName<"dwo-file">;
45
42
46
43
defm add_gnu_debuglink
@@ -49,17 +46,15 @@ defm add_gnu_debuglink
49
46
50
47
defm rename_section
51
48
: Eq<"rename-section",
52
- "Renames a section from old to new, optionally with specified flags. "
53
- "Flags supported for GNU compatibility: alloc, load, noload, "
54
- "readonly, exclude, debug, code, data, rom, share, contents, merge, "
55
- "strings, large">,
49
+ "Rename sections called <old> to <new>, and apply any specified <flag> values. "
50
+ "See --set-section-flags for a list of supported flags">,
56
51
MetaVarName<"old=new[,flag1,...]">;
57
52
defm redefine_symbol
58
53
: Eq<"redefine-sym", "Change the name of a symbol old to new">,
59
54
MetaVarName<"old=new">;
60
55
defm redefine_symbols
61
56
: Eq<"redefine-syms",
62
- "Reads a list of symbol pairs from <filename> and runs as if "
57
+ "Read a list of symbol pairs from <filename> and run as if "
63
58
"--redefine-sym=<old>=<new> is set for each one. <filename> "
64
59
"contains two symbols per line separated with whitespace and may "
65
60
"contain comments beginning with '#'. Leading and trailing "
@@ -74,7 +69,7 @@ def j : JoinedOrSeparate<["-"], "j">,
74
69
HelpText<"Alias for --only-section">;
75
70
defm add_section
76
71
: Eq<"add-section",
77
- "Make a section named <section> with the contents of <file>">,
72
+ "Add a section named <section> with the contents of <file>">,
78
73
MetaVarName<"section=file">;
79
74
80
75
defm set_section_alignment
@@ -83,8 +78,8 @@ defm set_section_alignment
83
78
84
79
defm set_section_flags
85
80
: Eq<"set-section-flags",
86
- "Set section flags for a given section. Flags supported for GNU "
87
- "compatibility: alloc, load, noload, readonly, exclude, debug, code, "
81
+ "Set section properties based on the specified <flags>. Supported flag names are: "
82
+ "alloc, load, noload, readonly, exclude, debug, code, "
88
83
"data, rom, share, contents, merge, strings, large">,
89
84
MetaVarName<"section=flag1[,flag2,...]">;
90
85
@@ -97,24 +92,25 @@ def S : Flag<["-"], "S">,
97
92
Alias<strip_all>,
98
93
HelpText<"Alias for --strip-all">;
99
94
def strip_dwo : Flag<["--"], "strip-dwo">,
100
- HelpText<"Remove all DWARF .dwo sections from file ">;
95
+ HelpText<"Remove all DWARF .dwo sections">;
101
96
def strip_non_alloc
102
97
: Flag<["--"], "strip-non-alloc">,
103
- HelpText<"Remove all non-allocated sections outside segments">;
98
+ HelpText<"Remove all non-allocated sections that are not within segments">;
104
99
defm strip_unneeded_symbol
105
100
: Eq<"strip-unneeded-symbol",
106
- "Remove symbol <symbol> if it is not needed by relocations">,
101
+ "Remove all symbols named <symbol> that are local or undefined and "
102
+ "are not required by any relocation">,
107
103
MetaVarName<"symbol">;
108
104
defm strip_unneeded_symbols
109
105
: Eq<"strip-unneeded-symbols",
110
- "Reads a list of symbols from <filename> and removes them "
111
- "if they are not needed by relocations ">,
106
+ "Remove all symbols whose names appear in the file <file>, if they "
107
+ "are local or undefined and are not required by any relocation ">,
112
108
MetaVarName<"filename">;
113
109
114
110
defm subsystem
115
111
: Eq<"subsystem",
116
- "Set PE subsystem and version">,
117
- MetaVarName<"name[:version]">;
112
+ "Set the PE subsystem, and optionally subsystem version">,
113
+ MetaVarName<"name[:version]">, Group<grp_coff> ;
118
114
119
115
def extract_dwo
120
116
: Flag<["--"], "extract-dwo">,
@@ -132,11 +128,13 @@ def localize_hidden
132
128
: Flag<["--"], "localize-hidden">,
133
129
HelpText<
134
130
"Mark all symbols that have hidden or internal visibility as local">;
135
- defm localize_symbol : Eq<"localize-symbol", "Mark <symbol> as local">,
136
- MetaVarName<"symbol">;
131
+ defm localize_symbol
132
+ : Eq<"localize-symbol", "Mark any defined non-common symbol named <symbol> as local">,
133
+ MetaVarName<"symbol">;
137
134
defm localize_symbols
138
135
: Eq<"localize-symbols",
139
- "Reads a list of symbols from <filename> and marks them local">,
136
+ "Read a list of names from <filename> and mark any defined non-common "
137
+ "symbols with those names as local">,
140
138
MetaVarName<"filename">;
141
139
142
140
def L : JoinedOrSeparate<["-"], "L">,
@@ -148,48 +146,49 @@ defm globalize_symbol : Eq<"globalize-symbol", "Mark <symbol> as global">,
148
146
149
147
defm globalize_symbols
150
148
: Eq<"globalize-symbols",
151
- "Reads a list of symbols from <filename> and marks them global">,
149
+ "Read a list of symbols from <filename> and mark defined symbols"
150
+ " with those names as global">,
152
151
MetaVarName<"filename">;
153
152
154
153
defm keep_global_symbol
155
154
: Eq<"keep-global-symbol",
156
- "Convert all symbols except <symbol> to local. May be repeated to "
157
- "convert all except a set of symbols to local ">,
155
+ "Mark all symbols local, except for symbols with the name <symbol>. "
156
+ "Can be specified multiple times to ignore multiple symbols ">,
158
157
MetaVarName<"symbol">;
159
158
def G : JoinedOrSeparate<["-"], "G">,
160
159
Alias<keep_global_symbol>,
161
160
HelpText<"Alias for --keep-global-symbol">;
162
161
163
162
defm keep_global_symbols
164
163
: Eq<"keep-global-symbols",
165
- "Reads a list of symbols from <filename> and runs as if "
164
+ "Read a list of symbols from <filename> and run as if "
166
165
"--keep-global-symbol=<symbol> is set for each one. <filename> "
167
166
"contains one symbol per line and may contain comments beginning with "
168
167
"'#'. Leading and trailing whitespace is stripped from each line. May "
169
168
"be repeated to read symbols from many files">,
170
169
MetaVarName<"filename">;
171
170
172
- defm weaken_symbol : Eq<"weaken-symbol", "Mark <symbol> as weak">,
171
+ defm weaken_symbol : Eq<"weaken-symbol", "Mark global symbols named <symbol> as weak">,
173
172
MetaVarName<"symbol">;
174
173
defm weaken_symbols
175
174
: Eq<"weaken-symbols",
176
- "Reads a list of symbols from <filename> and marks them weak">,
175
+ "Read a list of symbols from <filename> and mark global symbols with those names as weak">,
177
176
MetaVarName<"filename">;
178
177
179
178
def W : JoinedOrSeparate<["-"], "W">,
180
179
Alias<weaken_symbol>,
181
180
HelpText<"Alias for --weaken-symbol">;
182
181
def weaken : Flag<["--"], "weaken">,
183
- HelpText<"Mark all global symbols as weak">;
182
+ HelpText<"Mark all defined global symbols as weak">;
184
183
185
184
defm strip_symbols
186
185
: Eq<"strip-symbols",
187
- "Reads a list of symbols from <filename> and removes them ">,
186
+ "Remove all symbols whose names appear in the file <filename> ">,
188
187
MetaVarName<"filename">;
189
188
190
189
defm keep_symbols
191
190
: Eq<"keep-symbols",
192
- "Reads a list of symbols from <filename> and runs as if "
191
+ "Read a list of symbols from <filename> and run as if "
193
192
"--keep-symbol=<symbol> is set for each one. <filename> "
194
193
"contains one symbol per line and may contain comments beginning with "
195
194
"'#'. Leading and trailing whitespace is stripped from each line. May "
0 commit comments