[PATCH] D54477: [llvm-objcopy] Rename --keep to --keep-section.

Jordan Rupprecht via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 13 08:22:47 PST 2018


rupprecht created this revision.
rupprecht added reviewers: jakehehrlich, jhenderson, alexshap, MaskRay.
Herald added subscribers: llvm-commits, arichardson, emaste.
Herald added a reviewer: espindola.

llvm-objcopy/strip support `--keep` (for sections) and `--keep-symbols` (for symbols). For consistency and clarity, rename `--keep` to `--keep-section`.
In fact, for GNU compatability, -K is --keep-symbol, so it's weird that the alias `-K` is not the same as the short-ish `--keep`.


Repository:
  rL LLVM

https://reviews.llvm.org/D54477

Files:
  test/tools/llvm-objcopy/basic-keep.test
  test/tools/llvm-objcopy/explicit-keep-remove.test
  test/tools/llvm-objcopy/keep-many.test
  test/tools/llvm-objcopy/keep-only-keep.test
  test/tools/llvm-objcopy/strip-sections-keep.test
  tools/llvm-objcopy/CopyConfig.cpp
  tools/llvm-objcopy/CopyConfig.h
  tools/llvm-objcopy/ELF/ELFObjcopy.cpp
  tools/llvm-objcopy/ObjcopyOpts.td
  tools/llvm-objcopy/StripOpts.td

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D54477.173860.patch
Type: text/x-patch
Size: 6045 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181113/0f3f6a17/attachment.bin>


More information about the llvm-commits mailing list