From db4f6831161cdf3627169e82344b82b1c6813ef1 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Mon, 14 Aug 2000 19:47:01 +0000 Subject: [PATCH] Silently accept -d as an alias for -g for compatability with old BSD systems. --- binutils/ChangeLog | 5 +++++ binutils/objcopy.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/binutils/ChangeLog b/binutils/ChangeLog index e4868fc62a1..f257f8debe6 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +2000-08-14 Todd Vierling + + * objcopy.c (strip_main): Silently accept -d as an alias for -g + for compatability with old BSD systems. + 2000-08-14 Jason Eckhardt * NEWS: Mention i860 support. diff --git a/binutils/objcopy.c b/binutils/objcopy.c index b8a49c8a344..9147e2a6d44 100644 --- a/binutils/objcopy.c +++ b/binutils/objcopy.c @@ -1668,7 +1668,7 @@ strip_main (argc, argv) struct section_list *p; char *output_file = NULL; - while ((c = getopt_long (argc, argv, "I:O:F:K:N:R:o:sSpgxXVv", + while ((c = getopt_long (argc, argv, "I:O:F:K:N:R:o:sSpdgxXVv", strip_options, (int *) 0)) != EOF) { switch (c) @@ -1692,6 +1692,7 @@ strip_main (argc, argv) break; case 'S': case 'g': + case 'd': /* Historic BSD alias for -g. Used by early NetBSD. */ strip_symbols = STRIP_DEBUG; break; case OPTION_STRIP_UNNEEDED: -- 2.30.2