[PATCH] D39021: [llvm-objcopy] Add support for --only-keep and the special way it interacts with -O binary

Jake Ehrlich via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 17 15:51:44 PDT 2017


jakehehrlich created this revision.

This change adds support for the --only-keep option and the -j alias as well. The one strange thing that I've also done is added a special case for the -O binary and -j option being used together. A common use case for these being used together is to dump a specific section's data. I can't find a consistent way of handling multiple -j's and -O binary together so I've opted to just not support it for now. Nevertheless the combination of using -O binary and -j together to dump a section seems common enough to demand support from llvm-objcopy.


Repository:
  rL LLVM

https://reviews.llvm.org/D39021

Files:
  test/tools/llvm-objcopy/basic-only-keep.test
  test/tools/llvm-objcopy/binary-only-keep-error.test
  test/tools/llvm-objcopy/dump-section.test
  test/tools/llvm-objcopy/only-keep-many.test
  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: D39021.119393.patch
Type: text/x-patch
Size: 9658 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171017/64992f98/attachment.bin>


More information about the llvm-commits mailing list