diff options
| author | Seiya Nuta <nuta@seiya.me> | 2019-11-25 12:29:58 +0900 |
|---|---|---|
| committer | Seiya Nuta <nuta@seiya.me> | 2019-11-25 12:30:37 +0900 |
| commit | d72a8a4dd5baad1fd90f4e13fdb6b585afea4657 (patch) | |
| tree | 99cd5f80699dc850ca3dd1ec06f58691e8ccd761 /llvm/docs/CommandGuide/llvm-objcopy.rst | |
| parent | e8a4e5892bd83a21451b74ebd0f41129be9f3267 (diff) | |
| download | bcm5719-llvm-d72a8a4dd5baad1fd90f4e13fdb6b585afea4657.tar.gz bcm5719-llvm-d72a8a4dd5baad1fd90f4e13fdb6b585afea4657.zip | |
[llvm-objcopy][MachO] Implement --dump-section
Reviewers: alexshap, rupprecht, jhenderson
Reviewed By: alexshap, rupprecht, jhenderson
Subscribers: MaskRay, jakehehrlich, abrachet, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D66408
Diffstat (limited to 'llvm/docs/CommandGuide/llvm-objcopy.rst')
| -rw-r--r-- | llvm/docs/CommandGuide/llvm-objcopy.rst | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/llvm/docs/CommandGuide/llvm-objcopy.rst b/llvm/docs/CommandGuide/llvm-objcopy.rst index 689ebb7549f..0574a5e55f2 100644 --- a/llvm/docs/CommandGuide/llvm-objcopy.rst +++ b/llvm/docs/CommandGuide/llvm-objcopy.rst @@ -58,6 +58,18 @@ multiple file formats. this to a subset of the local symbols. For example, file and section symbols in ELF objects will not be discarded. +.. option:: --dump-section <section>=<file> + + Dump the contents of section ``<section>`` into the file ``<file>``. Can be + specified multiple times to dump multiple sections to different files. + ``<file>`` is unrelated to the input and output files provided to + :program:`llvm-objcopy` and as such the normal copying and editing + operations will still be performed. No operations are performed on the sections + prior to dumping them. + + For MachO objects, ``<section>`` must be formatted as + ``<segment name>,<section name>``. + .. option:: --enable-deterministic-archives, -D Enable deterministic mode when copying archives, i.e. use 0 for archive member @@ -274,15 +286,6 @@ them. Remove local symbols starting with ".L" from the output. -.. option:: --dump-section <section>=<file> - - Dump the contents of section ``<section>`` into the file ``<file>``. Can be - specified multiple times to dump multiple sections to different files. - ``<file>`` is unrelated to the input and output files provided to - :program:`llvm-objcopy` and as such the normal copying and editing - operations will still be performed. No operations are performed on the sections - prior to dumping them. - .. option:: --extract-dwo Remove all sections that are not DWARF .dwo sections from the output. |

