@@ -78,10 +78,47 @@ multiple file formats.
78
78
Enable deterministic mode when copying archives, i.e. use 0 for archive member
79
79
header UIDs, GIDs and timestamp fields. On by default.
80
80
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
+
81
93
.. option :: --help , -h
82
94
83
95
Print a summary of command line options.
84
96
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
+
85
122
.. option :: --only-keep-debug
86
123
87
124
Produce a debug file as the output that only preserves contents of sections
@@ -177,6 +214,19 @@ multiple file formats.
177
214
flags.
178
215
- `share ` = add the `IMAGE_SCN_MEM_SHARED ` and `IMAGE_SCN_MEM_READ ` flags.
179
216
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
+
180
230
.. option :: --strip-all-gnu
181
231
182
232
Remove all symbols, debug sections and relocations from the output. This option
@@ -355,18 +405,6 @@ them.
355
405
For binary outputs, fill the gaps between sections with ``<value> `` instead
356
406
of zero. The value must be an unsigned 8-bit integer.
357
407
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
-
370
408
.. option :: --input-target <format >, -I
371
409
372
410
Read the input as the specified format. See `SUPPORTED FORMATS `_ for a list of
@@ -377,18 +415,6 @@ them.
377
415
378
416
Keep symbols of type `STT_FILE `, even if they would otherwise be stripped.
379
417
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
-
392
418
.. option :: --keep-section <section >
393
419
394
420
When removing sections from the output, do not remove sections named
@@ -410,19 +436,6 @@ them.
410
436
411
437
Mark all symbols with hidden or internal visibility local in the output.
412
438
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
-
426
439
.. option :: --new-symbol-visibility <visibility >
427
440
428
441
Specify the visibility of the symbols automatically created when using binary
@@ -489,19 +502,6 @@ them.
489
502
Read a list of symbols from <filename> and change their visibility to the
490
503
specified value. Visibility values: default, internal, hidden, protected.
491
504
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
-
505
505
.. option :: --split-dwo <dwo-file >
506
506
507
507
Equivalent to running :program: `llvm-objcopy ` with :option: `--extract-dwo ` and
0 commit comments