[PATCH] D39713: [llvm-objcopy] Change -O binary to respect section removal and behave like GNU objcopy
Jake Ehrlich via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 6 20:12:23 PST 2017
jakehehrlich created this revision.
The original -O binary implementation just copied segment data from the object and dumped it into a file. This doesn't take into account any operations performed on objects such as section removal. GNU objcopy has some specific behavior that we'd also like to respect. For instance using -O binary and -j <some_section> will dump <some_section> to a file. This change implements GNU objcopy style -O binary to as close of an approximation as I can determine.
Repository:
rL LLVM
https://reviews.llvm.org/D39713
Files:
test/tools/llvm-objcopy/binary-remove-all-but-one.test
test/tools/llvm-objcopy/binary-remove-end.test
test/tools/llvm-objcopy/binary-remove-middle.test
test/tools/llvm-objcopy/two-seg-remove-end.test
test/tools/llvm-objcopy/two-seg-remove-third-sec.test
tools/llvm-objcopy/Object.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39713.121836.patch
Type: text/x-patch
Size: 17179 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171107/f5d80059/attachment-0001.bin>
More information about the llvm-commits
mailing list