[PATCH] D53667: [llvm-objcopy] Handle -O <format> flag.
Jordan Rupprecht via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 24 13:14:06 PDT 2018
rupprecht created this revision.
rupprecht added reviewers: jakehehrlich, jhenderson, alexshap.
Herald added a subscriber: llvm-commits.
The -O flag is currently being mostly ignored; it's only checked whether or not the output format is "binary". This adds support for a few formats (e.g. elf64-x86-64), so that when specified, the output can change between 32/64 bit and sizes/alignments are updated accordingly.
As a side effect, this also fixes a bad alignment in symbol table when the input format is "binary".
This fixes PR39135
Repository:
rL LLVM
https://reviews.llvm.org/D53667
Files:
test/tools/llvm-objcopy/binary-input.test
test/tools/llvm-objcopy/cross-arch-bad-output-format.test
test/tools/llvm-objcopy/cross-arch-headers.test
test/tools/llvm-objcopy/cross-arch-sections-symbols.test
tools/llvm-objcopy/CopyConfig.cpp
tools/llvm-objcopy/CopyConfig.h
tools/llvm-objcopy/Object.cpp
tools/llvm-objcopy/Object.h
tools/llvm-objcopy/llvm-objcopy.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D53667.170961.patch
Type: text/x-patch
Size: 18263 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181024/b64704cb/attachment.bin>
More information about the llvm-commits
mailing list