Index: test/tools/llvm-objcopy/objcopy-version.test =================================================================== --- test/tools/llvm-objcopy/objcopy-version.test +++ test/tools/llvm-objcopy/objcopy-version.test @@ -1,4 +1,5 @@ # RUN: llvm-objcopy -version | FileCheck %s # RUN: llvm-objcopy --version | FileCheck %s +# RUN: llvm-objcopy -V | FileCheck %s # CHECK: {{ version }} Index: test/tools/llvm-objcopy/strip-version.test =================================================================== --- test/tools/llvm-objcopy/strip-version.test +++ test/tools/llvm-objcopy/strip-version.test @@ -1,4 +1,5 @@ # RUN: llvm-strip -version | FileCheck %s # RUN: llvm-strip --version | FileCheck %s +# RUN: llvm-strip -V | FileCheck %s -# CHECK: {{ version }} +# CHECK: GNU strip Index: tools/llvm-objcopy/CopyConfig.cpp =================================================================== --- tools/llvm-objcopy/CopyConfig.cpp +++ tools/llvm-objcopy/CopyConfig.cpp @@ -383,6 +383,7 @@ } if (InputArgs.hasArg(STRIP_version)) { + outs() << "llvm-strip, compatible with GNU strip\n"; cl::PrintVersionMessage(); exit(0); } Index: tools/llvm-objcopy/ObjcopyOpts.td =================================================================== --- tools/llvm-objcopy/ObjcopyOpts.td +++ tools/llvm-objcopy/ObjcopyOpts.td @@ -165,3 +165,4 @@ def version : Flag<["-", "--"], "version">, HelpText<"Print the version and exit.">; +def V : Flag<["-"], "V">, Alias; Index: tools/llvm-objcopy/StripOpts.td =================================================================== --- tools/llvm-objcopy/StripOpts.td +++ tools/llvm-objcopy/StripOpts.td @@ -64,3 +64,4 @@ def version : Flag<["-", "--"], "version">, HelpText<"Print the version and exit.">; +def V : Flag<["-"], "V">, Alias;