This is the mail archive of the mailing list for the binutils project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] PR 17671: objcopy: add "DU" to getopt_long


Perhaps it should be posted here instead of bugzilla...

-D/-U, short counterparts for the --{enable,disable}-deterministic-archives options, are not understood by objcopy/strip.

Patch attached. I don't see any order in the list of options in getopt_long so I added "DU" to the end.

It would be nice to get it in 2.25.

Alexander Cherepanov

diff --git a/binutils/objcopy.c b/binutils/objcopy.c
index 07794cb..512b926 100644
--- a/binutils/objcopy.c
+++ b/binutils/objcopy.c
@@ -3254,7 +3254,7 @@ strip_main (int argc, char *argv[])
   int i;
   char *output_file = NULL;
-  while ((c = getopt_long (argc, argv, "I:O:F:K:N:R:o:sSpdgxXHhVvw",
+  while ((c = getopt_long (argc, argv, "I:O:F:K:N:R:o:sSpdgxXHhVvwDU",
 			   strip_options, (int *) 0)) != EOF)
       switch (c)
@@ -3545,7 +3545,7 @@ copy_main (int argc, char *argv[])
   struct stat statbuf;
   const bfd_arch_info_type *input_arch = NULL;
-  while ((c = getopt_long (argc, argv, "b:B:i:I:j:K:N:s:O:d:F:L:G:R:SpgxXHhVvW:w",
+  while ((c = getopt_long (argc, argv, "b:B:i:I:j:K:N:s:O:d:F:L:G:R:SpgxXHhVvW:wDU",
 			   copy_options, (int *) 0)) != EOF)
       switch (c)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]