diff options
author | Sergey Dmitriev <serguei.n.dmitriev@intel.com> | 2019-07-26 17:06:41 +0000 |
---|---|---|
committer | Sergey Dmitriev <serguei.n.dmitriev@intel.com> | 2019-07-26 17:06:41 +0000 |
commit | cdeaac5dce2688367bcf2517fe9394c8a1e91cc8 (patch) | |
tree | e653540b48d5ab365fc0df114681c01987b3cb00 /llvm/docs/CommandGuide/llvm-objcopy.rst | |
parent | 81dab368bffd1dac1748db878e57b4e4d4221670 (diff) | |
download | bcm5719-llvm-cdeaac5dce2688367bcf2517fe9394c8a1e91cc8.tar.gz bcm5719-llvm-cdeaac5dce2688367bcf2517fe9394c8a1e91cc8.zip |
[llvm-objcopy] Add support for --add-section for COFF
This patch enables support for --add-section=... option for COFF objects.
Differential Revision: https://reviews.llvm.org/D65040
llvm-svn: 367130
Diffstat (limited to 'llvm/docs/CommandGuide/llvm-objcopy.rst')
-rw-r--r-- | llvm/docs/CommandGuide/llvm-objcopy.rst | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/llvm/docs/CommandGuide/llvm-objcopy.rst b/llvm/docs/CommandGuide/llvm-objcopy.rst index e113a82b6ee..64ba094c9ee 100644 --- a/llvm/docs/CommandGuide/llvm-objcopy.rst +++ b/llvm/docs/CommandGuide/llvm-objcopy.rst @@ -36,6 +36,13 @@ multiple file formats. Add a .gnu_debuglink section for ``<debug-file>`` to the output. +.. option:: --add-section <section=file> + + Add a section named ``<section>`` with the contents of ``<file>`` to the + output. For ELF objects the section will be of type `SHT_NOTE`, if the name + starts with ".note". Otherwise, it will have type `SHT_PROGBITS`. Can be + specified multiple times to add multiple sections. + .. option:: --disable-deterministic-archives, -U Use real values for UIDs, GIDs and timestamps when updating archive member @@ -141,13 +148,6 @@ The following options are implemented only for ELF objects. If used with other objects, :program:`llvm-objcopy` will either emit an error or silently ignore them. -.. option:: --add-section <section=file> - - Add a section named ``<section>`` with the contents of ``<file>`` to the - output. The section will be of type `SHT_NOTE`, if the name starts with - ".note". Otherwise, it will have type `SHT_PROGBITS`. Can be specified multiple - times to add multiple sections. - .. option:: --add-symbol <name>=[<section>:]<value>[,<flags>] Add a new symbol called ``<name>`` to the output symbol table, in the section |