This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH] PR 17671: objcopy: add "DU" to getopt_long
- From: Alexander Cherepanov <cherepan at mccme dot ru>
- To: binutils at sourceware dot org
- Date: Fri, 19 Dec 2014 13:59:14 +0300
- Subject: [PATCH] PR 17671: objcopy: add "DU" to getopt_long
- Authentication-results: sourceware.org; auth=none
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
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)