Index: contrib/elftoolchain/elfcopy/main.c =================================================================== --- contrib/elftoolchain/elfcopy/main.c +++ contrib/elftoolchain/elfcopy/main.c @@ -1168,7 +1168,7 @@ ((ecp->flags & DISCARD_LLABEL) == 0) && lookup_symop_list(ecp, NULL, SYMOP_STRIP) == NULL) ecp->strip = STRIP_ALL; - if (argc == 0) + if (argc == 0 || (outfile != NULL && argc > 1)) strip_usage(); for (i = 0; i < argc; i++) Index: contrib/elftoolchain/elfcopy/strip.1 =================================================================== --- contrib/elftoolchain/elfcopy/strip.1 +++ contrib/elftoolchain/elfcopy/strip.1 @@ -23,7 +23,7 @@ .\" .\" $Id: strip.1 3642 2018-10-14 14:24:28Z jkoshy $ .\" -.Dd September 17, 2011 +.Dd July 23, 2019 .Dt STRIP 1 .Os .Sh NAME @@ -67,6 +67,7 @@ Write the stripped object to file .Ar outputfile . The default behaviour is to modify objects in place. +When this argument is used, only one input file may be specified. .It Fl p | Fl -preserve-dates Preserve the object's access and modification times. .It Fl s | Fl -strip-all