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