diff options
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. |

