From ea8fae9fe75706235ac49c507f1c5e039f4b4e1e Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Thu, 5 Oct 2017 13:48:32 +0100 Subject: [PATCH] Fix strip so that is accepts -M as an abbreviation for --merge-notes. PR 22260 * objcopy.c (strip_main): Add 'M' character to short options list when calling getopt_long. --- binutils/ChangeLog | 6 ++++++ binutils/objcopy.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 8af4719be26..4daa60e37e1 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,9 @@ +2017-10-05 Nick Clifton + + PR 22260 + * objcopy.c (strip_main): Add 'M' character to short options list + when calling getopt_long. + 2017-10-05 Nick Clifton PR 22262 diff --git a/binutils/objcopy.c b/binutils/objcopy.c index 23a949d1ad6..e5df1a91956 100644 --- a/binutils/objcopy.c +++ b/binutils/objcopy.c @@ -4131,7 +4131,7 @@ strip_main (int argc, char *argv[]) merge_notes = TRUE; - while ((c = getopt_long (argc, argv, "I:O:F:K:N:R:o:sSpdgxXHhVvwDU", + while ((c = getopt_long (argc, argv, "I:O:F:K:MN:R:o:sSpdgxXHhVvwDU", strip_options, (int *) 0)) != EOF) { switch (c) -- 2.30.2