[llvm-objcopy] Change --only-keep to --only-section
authorJake Ehrlich <jakehehrlich@google.com>
Thu, 6 Dec 2018 02:03:53 +0000 (02:03 +0000)
committerJake Ehrlich <jakehehrlich@google.com>
Thu, 6 Dec 2018 02:03:53 +0000 (02:03 +0000)
commit85985ed363c9045a79866b82a80577481f2947a9
tree8496138e14f80b5a3b22d41fe0f4a8f1e37bf5c3
parent400afa02304370070ca3de46675cbc6e1ba98fd8
[llvm-objcopy] Change --only-keep to --only-section

I just hard core goofed when I wrote this and created a different name
for no good reason. I'm failry aware of most "fresh" users of llvm-objcopy
(that is, users which are not using it as a drop in replacement for GNU
objcopy) and can say that only "-j" is being used by such people so this
patch should strictly increase compatibility and not remove it.

Differential Revision: https://reviews.llvm.org/D52180

llvm-svn: 348446
12 files changed:
llvm/test/tools/llvm-objcopy/ELF/basic-only-section.test [moved from llvm/test/tools/llvm-objcopy/ELF/basic-only-keep.test with 91% similarity]
llvm/test/tools/llvm-objcopy/ELF/dump-section.test
llvm/test/tools/llvm-objcopy/ELF/explicit-only-section-remove.test [moved from llvm/test/tools/llvm-objcopy/ELF/explicit-only-keep-remove.test with 89% similarity]
llvm/test/tools/llvm-objcopy/ELF/keep-only-section.test [moved from llvm/test/tools/llvm-objcopy/ELF/keep-only-keep.test with 90% similarity]
llvm/test/tools/llvm-objcopy/ELF/only-section-many.test [moved from llvm/test/tools/llvm-objcopy/ELF/only-keep-many.test with 100% similarity]
llvm/test/tools/llvm-objcopy/ELF/only-section-remove-strtab.test [moved from llvm/test/tools/llvm-objcopy/ELF/only-keep-remove-strtab.test with 87% similarity]
llvm/test/tools/llvm-objcopy/ELF/only-section-strip-non-alloc.test [moved from llvm/test/tools/llvm-objcopy/ELF/only-keep-strip-non-alloc.test with 86% similarity]
llvm/test/tools/llvm-objcopy/ELF/strip-sections-only-section.test [moved from llvm/test/tools/llvm-objcopy/ELF/strip-sections-only-keep.test with 87% similarity]
llvm/tools/llvm-objcopy/CopyConfig.cpp
llvm/tools/llvm-objcopy/CopyConfig.h
llvm/tools/llvm-objcopy/ELF/ELFObjcopy.cpp
llvm/tools/llvm-objcopy/ObjcopyOpts.td