From 7a093a782000c0d0f1a50d6a74ee786695f52c86 Mon Sep 17 00:00:00 2001 From: Alexander Cherepanov Date: Wed, 24 Dec 2014 14:50:53 +0000 Subject: [PATCH] This patch fixes a snafu where the -D and -U short versions of the --enable-deterministic-archives and --disable-deteministic-archive options were not being accepted. PR binutils/17671 * objcopy.c (copy_main, strip_main): Add D and U to the list of accepted short versions of long options. --- binutils/ChangeLog | 6 ++++++ binutils/objcopy.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 3427f0d1828..6eae51655b3 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,9 @@ +2014-12-24 Alexander Cherepanov + + PR binutils/17671 + * objcopy.c (copy_main, strip_main): Add D and U to the list of + accepted short versions of long options. + 2014-12-24 Nick Clifton * dwarf.c (read_cie): Revert check for unused augmentation data - diff --git a/binutils/objcopy.c b/binutils/objcopy.c index 2e1cb54ec82..cac40891c38 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) -- 2.30.2