From d72a8a4dd5baad1fd90f4e13fdb6b585afea4657 Mon Sep 17 00:00:00 2001 From: Seiya Nuta Date: Mon, 25 Nov 2019 12:29:58 +0900 Subject: [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 --- llvm/docs/CommandGuide/llvm-objcopy.rst | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) (limited to 'llvm/docs/CommandGuide/llvm-objcopy.rst') 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
= + + Dump the contents of section ``
`` into the file ````. Can be + specified multiple times to dump multiple sections to different files. + ```` 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, ``
`` must be formatted as + ``,
``. + .. 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
= - - Dump the contents of section ``
`` into the file ````. Can be - specified multiple times to dump multiple sections to different files. - ```` 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. -- cgit v1.2.3