[llvm-objcopy][docs] Update --update-section description

I noticed that when --update-section was added to llvm-objcopy it was
not added to the command guide, see
25bcd94234530955c58c6530a9271c813827637c. This change adds it to the
docs and updates the help text.

Differential Revision: https://reviews.llvm.org/D122907
This commit is contained in:
gbreynoo 2022-04-04 16:18:17 +01:00
parent fbdcb3ce6b
commit 3ad6f53502
2 changed files with 7 additions and 1 deletions

View File

@ -217,6 +217,12 @@ multiple file formats.
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.

View File

@ -222,5 +222,5 @@ defm add_symbol
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">;