[PATCH] D122907: [llvm-objcopy][docs] Add --update-section to objcopy command guide
Owen Reynolds via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 1 09:16:19 PDT 2022
gbreynoo updated this revision to Diff 419782.
gbreynoo added a comment.
Herald added a reviewer: rupprecht.
Fixed the description after abrachet's comment and updated the help output to mirror the change.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D122907/new/
https://reviews.llvm.org/D122907
Files:
llvm/docs/CommandGuide/llvm-objcopy.rst
llvm/tools/llvm-objcopy/ObjcopyOpts.td
Index: llvm/tools/llvm-objcopy/ObjcopyOpts.td
===================================================================
--- llvm/tools/llvm-objcopy/ObjcopyOpts.td
+++ llvm/tools/llvm-objcopy/ObjcopyOpts.td
@@ -222,5 +222,5 @@
MetaVarName<"name=[section:]value[,flags]">;
defm update_section
- : Eq<"update-section", "Add section <name> with contents from a file <file>.">,
+ : Eq<"update-section", "Replace the contents of section <name> with contents from a file <file>.">,
MetaVarName<"name=file">;
Index: llvm/docs/CommandGuide/llvm-objcopy.rst
===================================================================
--- llvm/docs/CommandGuide/llvm-objcopy.rst
+++ llvm/docs/CommandGuide/llvm-objcopy.rst
@@ -217,6 +217,12 @@
Remove from the output all local or undefined symbols that are not required by
relocations. Also remove all debug sections.
+.. option:: --update-section <name>=<file>
+
+ Replace the contents of the section ``<name>`` with contents from the file
+ ``<file>``. If the section ``<name>`` is part of a segment, the new contents
+ cannot be larger than the existing section.
+
.. option:: --version, -V
Display the version of the :program:`llvm-objcopy` executable.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D122907.419782.patch
Type: text/x-patch
Size: 1216 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220401/047633b0/attachment.bin>
More information about the llvm-commits
mailing list