Silently accept -d as an alias for -g for compatability with old BSD systems.

This commit is contained in:
Nick Clifton
2000-08-14 19:47:01 +00:00
parent d1d8ba2284
commit db4f683116
2 changed files with 7 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
2000-08-14 Todd Vierling <tv@wasabisystems.com>
* objcopy.c (strip_main): Silently accept -d as an alias for -g
for compatability with old BSD systems.
2000-08-14 Jason Eckhardt <jle@cygnus.com> 2000-08-14 Jason Eckhardt <jle@cygnus.com>
* NEWS: Mention i860 support. * NEWS: Mention i860 support.

View File

@@ -1668,7 +1668,7 @@ strip_main (argc, argv)
struct section_list *p; struct section_list *p;
char *output_file = NULL; 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) strip_options, (int *) 0)) != EOF)
{ {
switch (c) switch (c)
@@ -1692,6 +1692,7 @@ strip_main (argc, argv)
break; break;
case 'S': case 'S':
case 'g': case 'g':
case 'd': /* Historic BSD alias for -g. Used by early NetBSD. */
strip_symbols = STRIP_DEBUG; strip_symbols = STRIP_DEBUG;
break; break;
case OPTION_STRIP_UNNEEDED: case OPTION_STRIP_UNNEEDED: