Skip to content

Commit a795ac7

Browse files
committed
review: add option docs
1 parent 6d92ea4 commit a795ac7

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

llvm/docs/CommandGuide/llvm-objcopy.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,18 @@ multiple file formats.
7979
Enable deterministic mode when copying archives, i.e. use 0 for archive member
8080
header UIDs, GIDs and timestamp fields. On by default.
8181

82+
.. option:: --extract-section <section>=<file>
83+
84+
Extract the specified section ``<section>`` into the file ``<file>`` as a
85+
seperate object. Can be specified multiple times to extract multiple sections.
86+
``<file>`` is unrelated to the input and output files provided to
87+
:program:`llvm-objcopy` and as such the normal copying and editing
88+
operations will still be performed. No operations are performed on the sections
89+
prior to dumping them.
90+
91+
For MachO objects, ``<section>`` must be formatted as
92+
``<segment name>,<section name>``.
93+
8294
.. option:: --globalize-symbol <symbol>
8395

8496
Mark any defined symbols named ``<symbol>`` as global symbols in the output.

0 commit comments

Comments
 (0)