@@ -78,10 +78,47 @@ 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+ .. option :: --globalize-symbols <filename >
87+
88+ Read a list of names from the file ``<filename> `` and mark defined symbols with
89+ those names as global in the output. In the file, each line represents a single
90+ symbol, with leading and trailing whitespace ignored, as is anything following
91+ a '#'. Can be specified multiple times to read names from multiple files.
92+
8193.. option :: --help , -h
8294
8395 Print a summary of command line options.
8496
97+ .. option :: --keep-global-symbol <symbol >, -G
98+
99+ Mark all symbols local in the output, except for symbols with the name
100+ ``<symbol> ``. Can be specified multiple times to ignore multiple symbols.
101+
102+ .. option :: --keep-global-symbols <filename >
103+
104+ Mark all symbols local in the output, except for symbols named in the file
105+ ``<filename> ``. In the file, each line represents a single symbol, with leading
106+ and trailing whitespace ignored, as is anything following a '#'. Can be
107+ specified multiple times to read names from multiple files.
108+
109+ .. option :: --localize-symbol <symbol >, -L
110+
111+ Mark any defined non-common symbol named ``<symbol> `` as a local symbol in the
112+ output. Can be specified multiple times to mark multiple symbols as local.
113+
114+ .. option :: --localize-symbols <filename >
115+
116+ Read a list of names from the file ``<filename> `` and mark defined non-common
117+ symbols with those names as local in the output. In the file, each line
118+ represents a single symbol, with leading and trailing whitespace ignored, as is
119+ anything following a '#'. Can be specified multiple times to read names from
120+ multiple files.
121+
85122.. option :: --only-keep-debug
86123
87124 Produce a debug file as the output that only preserves contents of sections
@@ -177,6 +214,19 @@ multiple file formats.
177214 flags.
178215 - `share ` = add the `IMAGE_SCN_MEM_SHARED ` and `IMAGE_SCN_MEM_READ ` flags.
179216
217+ .. option :: --skip-symbol <symbol >
218+
219+ Do not change the parameters of symbol ``<symbol> `` when executing other
220+ options that can change the symbol's name, binding or visibility.
221+
222+ .. option :: --skip-symbols <filename >
223+
224+ Do not change the parameters of symbols named in the file ``<filename> `` when
225+ executing other options that can change the symbol's name, binding or
226+ visibility. In the file, each line represents a single symbol, with leading
227+ and trailing whitespace ignored, as is anything following a '#'.
228+ Can be specified multiple times to read names from multiple files.
229+
180230.. option :: --strip-all-gnu
181231
182232 Remove all symbols, debug sections and relocations from the output. This option
@@ -355,18 +405,6 @@ them.
355405 For binary outputs, fill the gaps between sections with ``<value> `` instead
356406 of zero. The value must be an unsigned 8-bit integer.
357407
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-
370408.. option :: --input-target <format >, -I
371409
372410 Read the input as the specified format. See `SUPPORTED FORMATS `_ for a list of
@@ -377,18 +415,6 @@ them.
377415
378416 Keep symbols of type `STT_FILE `, even if they would otherwise be stripped.
379417
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-
392418.. option :: --keep-section <section >
393419
394420 When removing sections from the output, do not remove sections named
@@ -410,19 +436,6 @@ them.
410436
411437 Mark all symbols with hidden or internal visibility local in the output.
412438
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-
426439.. option :: --new-symbol-visibility <visibility >
427440
428441 Specify the visibility of the symbols automatically created when using binary
@@ -489,19 +502,6 @@ them.
489502 Read a list of symbols from <filename> and change their visibility to the
490503 specified value. Visibility values: default, internal, hidden, protected.
491504
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-
505505.. option :: --split-dwo <dwo-file >
506506
507507 Equivalent to running :program: `llvm-objcopy ` with :option: `--extract-dwo ` and
0 commit comments