diff options
author | Fangrui Song <maskray@google.com> | 2019-10-02 12:41:25 +0000 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2019-10-02 12:41:25 +0000 |
commit | 671fb3435862899db32ed20e680ded2ee665effd (patch) | |
tree | 1db97df558816674e0913eeba404b5083fce8aa3 /llvm/docs/CommandGuide | |
parent | ecbfb851a07348a16022289f18b96cfa94bd8125 (diff) | |
download | llvm-671fb3435862899db32ed20e680ded2ee665effd.zip llvm-671fb3435862899db32ed20e680ded2ee665effd.tar.gz llvm-671fb3435862899db32ed20e680ded2ee665effd.tar.bz2 |
[llvm-objcopy] Add --set-section-alignment
Fixes PR43181. This option was recently added to GNU objcopy (binutils
PR24942).
`llvm-objcopy -I binary -O elf64-x86-64 --set-section-alignment .data=8` can set the alignment of .data.
Reviewed By: grimar, jhenderson, rupprecht
Differential Revision: https://reviews.llvm.org/D67656
llvm-svn: 373461
Diffstat (limited to 'llvm/docs/CommandGuide')
-rw-r--r-- | llvm/docs/CommandGuide/llvm-objcopy.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/docs/CommandGuide/llvm-objcopy.rst b/llvm/docs/CommandGuide/llvm-objcopy.rst index 35e4d42..ccdcf13 100644 --- a/llvm/docs/CommandGuide/llvm-objcopy.rst +++ b/llvm/docs/CommandGuide/llvm-objcopy.rst @@ -82,6 +82,11 @@ multiple file formats. Remove the specified section from the output. Can be specified multiple times to remove multiple sections simultaneously. +.. option:: --set-section-alignment <section>=<align> + + Set the alignment of section ``<section>`` to `<align>``. Can be specified + multiple times to update multiple sections. + .. option:: --strip-all-gnu Remove all symbols, debug sections and relocations from the output. This option |