aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Cherepanov <cherepan@mccme.ru>2014-12-24 14:50:53 +0000
committerNick Clifton <nickc@redhat.com>2014-12-24 14:50:53 +0000
commit7a093a782000c0d0f1a50d6a74ee786695f52c86 (patch)
treeb985c2342758252a53f81fd18d409294a49d92cd
parented4fd7b7f30020dfdcd79cfd1e36672395f905d7 (diff)
downloadgdb-7a093a782000c0d0f1a50d6a74ee786695f52c86.zip
gdb-7a093a782000c0d0f1a50d6a74ee786695f52c86.tar.gz
gdb-7a093a782000c0d0f1a50d6a74ee786695f52c86.tar.bz2
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.
-rw-r--r--binutils/ChangeLog6
-rw-r--r--binutils/objcopy.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 3427f0d..6eae516 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,9 @@
+2014-12-24 Alexander Cherepanov <cherepan@mccme.ru>
+
+ 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 <nickc@redhat.com>
* dwarf.c (read_cie): Revert check for unused augmentation data -
diff --git a/binutils/objcopy.c b/binutils/objcopy.c
index 2e1cb54..cac4089 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)