@@ -78,10 +78,59 @@ multiple file formats.
7878 Enable deterministic mode when copying archives, i.e. use 0 for archive member
7979 header UIDs, GIDs and timestamp fields. On by default.
8080
81+ .. option :: --globalize-symbol <symbol >
82+
83+ Mark any defined symbols named ``<symbol> `` as global symbols in the output.
84+ Can be specified multiple times to mark multiple symbols.
85+
86+ This option is only supported for ELF and MachO.
87+
88+ .. option :: --globalize-symbols <filename >
89+
90+ Read a list of names from the file ``<filename> `` and mark defined symbols with
91+ those names as global in the output. In the file, each line represents a single
92+ symbol, with leading and trailing whitespace ignored, as is anything following
93+ a '#'. Can be specified multiple times to read names from multiple files.
94+
95+ This option is only supported for ELF and MachO.
96+
8197.. option :: --help , -h
8298
8399 Print a summary of command line options.
84100
101+ .. option :: --keep-global-symbol <symbol >, -G
102+
103+ Mark all symbols local in the output, except for symbols with the name
104+ ``<symbol> ``. Can be specified multiple times to ignore multiple symbols.
105+
106+ This option is only supported for ELF and MachO.
107+
108+ .. option :: --keep-global-symbols <filename >
109+
110+ Mark all symbols local in the output, except for symbols named in the file
111+ ``<filename> ``. In the file, each line represents a single symbol, with leading
112+ and trailing whitespace ignored, as is anything following a '#'. Can be
113+ specified multiple times to read names from multiple files.
114+
115+ This option is only supported for ELF and MachO.
116+
117+ .. option :: --localize-symbol <symbol >, -L
118+
119+ Mark any defined non-common symbol named ``<symbol> `` as a local symbol in the
120+ output. Can be specified multiple times to mark multiple symbols as local.
121+
122+ This option is only supported for ELF and MachO.
123+
124+ .. option :: --localize-symbols <filename >
125+
126+ Read a list of names from the file ``<filename> `` and mark defined non-common
127+ symbols with those names as local in the output. In the file, each line
128+ represents a single symbol, with leading and trailing whitespace ignored, as is
129+ anything following a '#'. Can be specified multiple times to read names from
130+ multiple files.
131+
132+ This option is only supported for ELF and MachO.
133+
85134.. option :: --only-keep-debug
86135
87136 Produce a debug file as the output that only preserves contents of sections
@@ -177,6 +226,23 @@ multiple file formats.
177226 flags.
178227 - `share ` = add the `IMAGE_SCN_MEM_SHARED ` and `IMAGE_SCN_MEM_READ ` flags.
179228
229+ .. option :: --skip-symbol <symbol >
230+
231+ Do not change the parameters of symbol ``<symbol> `` when executing other
232+ options that can change the symbol's name, binding or visibility.
233+
234+ This option is only supported for ELF and MachO.
235+
236+ .. option :: --skip-symbols <filename >
237+
238+ Do not change the parameters of symbols named in the file ``<filename> `` when
239+ executing other options that can change the symbol's name, binding or
240+ visibility. In the file, each line represents a single symbol, with leading
241+ and trailing whitespace ignored, as is anything following a '#'.
242+ Can be specified multiple times to read names from multiple files.
243+
244+ This option is only supported for ELF and MachO.
245+
180246.. option :: --strip-all-gnu
181247
182248 Remove all symbols, debug sections and relocations from the output. This option
@@ -355,18 +421,6 @@ them.
355421 For binary outputs, fill the gaps between sections with ``<value> `` instead
356422 of zero. The value must be an unsigned 8-bit integer.
357423
358- .. option :: --globalize-symbol <symbol >
359-
360- Mark any defined symbols named ``<symbol> `` as global symbols in the output.
361- Can be specified multiple times to mark multiple symbols.
362-
363- .. option :: --globalize-symbols <filename >
364-
365- Read a list of names from the file ``<filename> `` and mark defined symbols with
366- those names as global in the output. In the file, each line represents a single
367- symbol, with leading and trailing whitespace ignored, as is anything following
368- a '#'. Can be specified multiple times to read names from multiple files.
369-
370424.. option :: --input-target <format >, -I
371425
372426 Read the input as the specified format. See `SUPPORTED FORMATS `_ for a list of
@@ -377,18 +431,6 @@ them.
377431
378432 Keep symbols of type `STT_FILE `, even if they would otherwise be stripped.
379433
380- .. option :: --keep-global-symbol <symbol >, -G
381-
382- Mark all symbols local in the output, except for symbols with the name
383- ``<symbol> ``. Can be specified multiple times to ignore multiple symbols.
384-
385- .. option :: --keep-global-symbols <filename >
386-
387- Mark all symbols local in the output, except for symbols named in the file
388- ``<filename> ``. In the file, each line represents a single symbol, with leading
389- and trailing whitespace ignored, as is anything following a '#'. Can be
390- specified multiple times to read names from multiple files.
391-
392434.. option :: --keep-section <section >
393435
394436 When removing sections from the output, do not remove sections named
@@ -410,19 +452,6 @@ them.
410452
411453 Mark all symbols with hidden or internal visibility local in the output.
412454
413- .. option :: --localize-symbol <symbol >, -L
414-
415- Mark any defined non-common symbol named ``<symbol> `` as a local symbol in the
416- output. Can be specified multiple times to mark multiple symbols as local.
417-
418- .. option :: --localize-symbols <filename >
419-
420- Read a list of names from the file ``<filename> `` and mark defined non-common
421- symbols with those names as local in the output. In the file, each line
422- represents a single symbol, with leading and trailing whitespace ignored, as is
423- anything following a '#'. Can be specified multiple times to read names from
424- multiple files.
425-
426455.. option :: --new-symbol-visibility <visibility >
427456
428457 Specify the visibility of the symbols automatically created when using binary
@@ -489,19 +518,6 @@ them.
489518 Read a list of symbols from <filename> and change their visibility to the
490519 specified value. Visibility values: default, internal, hidden, protected.
491520
492- .. option :: --skip-symbol <symbol >
493-
494- Do not change the parameters of symbol ``<symbol> `` when executing other
495- options that can change the symbol's name, binding or visibility.
496-
497- .. option :: --skip-symbols <filename >
498-
499- Do not change the parameters of symbols named in the file ``<filename> `` when
500- executing other options that can change the symbol's name, binding or
501- visibility. In the file, each line represents a single symbol, with leading
502- and trailing whitespace ignored, as is anything following a '#'.
503- Can be specified multiple times to read names from multiple files.
504-
505521.. option :: --split-dwo <dwo-file >
506522
507523 Equivalent to running :program: `llvm-objcopy ` with :option: `--extract-dwo ` and
0 commit comments