Skip to content

Commit 3aae93a

Browse files
committed
fixup! [llvm-objcopy] Add support of symbol modification flags for MachO
1 parent 0139a83 commit 3aae93a

File tree

2 files changed

+4
-20
lines changed

2 files changed

+4
-20
lines changed

llvm/docs/CommandGuide/llvm-objcopy.rst

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -83,17 +83,13 @@ multiple file formats.
8383
Mark any defined symbols named ``<symbol>`` as global symbols in the output.
8484
Can be specified multiple times to mark multiple symbols.
8585

86-
This option is only supported for ELF and MachO.
87-
8886
.. option:: --globalize-symbols <filename>
8987

9088
Read a list of names from the file ``<filename>`` and mark defined symbols with
9189
those names as global in the output. In the file, each line represents a single
9290
symbol, with leading and trailing whitespace ignored, as is anything following
9391
a '#'. Can be specified multiple times to read names from multiple files.
9492

95-
This option is only supported for ELF and MachO.
96-
9793
.. option:: --help, -h
9894

9995
Print a summary of command line options.
@@ -103,24 +99,18 @@ multiple file formats.
10399
Mark all symbols local in the output, except for symbols with the name
104100
``<symbol>``. Can be specified multiple times to ignore multiple symbols.
105101

106-
This option is only supported for ELF and MachO.
107-
108102
.. option:: --keep-global-symbols <filename>
109103

110104
Mark all symbols local in the output, except for symbols named in the file
111105
``<filename>``. In the file, each line represents a single symbol, with leading
112106
and trailing whitespace ignored, as is anything following a '#'. Can be
113107
specified multiple times to read names from multiple files.
114108

115-
This option is only supported for ELF and MachO.
116-
117109
.. option:: --localize-symbol <symbol>, -L
118110

119111
Mark any defined non-common symbol named ``<symbol>`` as a local symbol in the
120112
output. Can be specified multiple times to mark multiple symbols as local.
121113

122-
This option is only supported for ELF and MachO.
123-
124114
.. option:: --localize-symbols <filename>
125115

126116
Read a list of names from the file ``<filename>`` and mark defined non-common
@@ -129,8 +119,6 @@ multiple file formats.
129119
anything following a '#'. Can be specified multiple times to read names from
130120
multiple files.
131121

132-
This option is only supported for ELF and MachO.
133-
134122
.. option:: --only-keep-debug
135123

136124
Produce a debug file as the output that only preserves contents of sections
@@ -231,8 +219,6 @@ multiple file formats.
231219
Do not change the parameters of symbol ``<symbol>`` when executing other
232220
options that can change the symbol's name, binding or visibility.
233221

234-
This option is only supported for ELF and MachO.
235-
236222
.. option:: --skip-symbols <filename>
237223

238224
Do not change the parameters of symbols named in the file ``<filename>`` when
@@ -241,8 +227,6 @@ multiple file formats.
241227
and trailing whitespace ignored, as is anything following a '#'.
242228
Can be specified multiple times to read names from multiple files.
243229

244-
This option is only supported for ELF and MachO.
245-
246230
.. option:: --strip-all-gnu
247231

248232
Remove all symbols, debug sections and relocations from the output. This option

llvm/docs/ReleaseNotes.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -350,16 +350,16 @@ Changes to the Debug Info
350350
Changes to the LLVM tools
351351
---------------------------------
352352

353-
* llvm-objcopy now supports the following options for MachO:
353+
* llvm-objcopy now supports the following options for Mach-O:
354354
`--globalize-symbol`, `--globalize-symbols`,
355-
`--keep-global-symbol`, `-G`, `--keep-global-symbols`,
356-
`--localize-symbol`, `-L`, `--localize-symbols`,
355+
`--keep-global-symbol`, `--keep-global-symbols`,
356+
`--localize-symbol`, `--localize-symbols`,
357357
`--skip-symbol`, `--skip-symbols`.
358358

359359
Changes to LLDB
360360
---------------------------------
361361

362-
* LLDB now supports inline diagnostics for the expression evaluator and command line parser.
362+
* LLDB now now supports inline diagnostics for the expression evaluator and command line parser.
363363

364364
Old:
365365
```

0 commit comments

Comments
 (0)