public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] PR 17671: objcopy: add "DU" to getopt_long
@ 2014-12-19 10:59 Alexander Cherepanov
  0 siblings, 0 replies; only message in thread
From: Alexander Cherepanov @ 2014-12-19 10:59 UTC (permalink / raw)
  To: binutils

[-- Attachment #1: Type: text/plain, Size: 356 bytes --]

Hi!

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


[-- Attachment #2: fix-objcopy-getopt.patch --]
[-- Type: text/x-patch, Size: 809 bytes --]

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)


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-12-19 10:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-19 10:59 [PATCH] PR 17671: objcopy: add "DU" to getopt_long Alexander Cherepanov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).