diff options
author | Nick Clifton <nickc@redhat.com> | 2000-08-14 19:47:01 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2000-08-14 19:47:01 +0000 |
commit | db4f6831161cdf3627169e82344b82b1c6813ef1 (patch) | |
tree | 7210ead4973c006523a71d949b8481c69567d578 /binutils/objcopy.c | |
parent | d1d8ba228492a19ff8f737ca1287e770bddb8eac (diff) | |
download | gdb-db4f6831161cdf3627169e82344b82b1c6813ef1.zip gdb-db4f6831161cdf3627169e82344b82b1c6813ef1.tar.gz gdb-db4f6831161cdf3627169e82344b82b1c6813ef1.tar.bz2 |
Silently accept -d as an alias for -g for compatability with old BSD systems.
Diffstat (limited to 'binutils/objcopy.c')
-rw-r--r-- | binutils/objcopy.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/binutils/objcopy.c b/binutils/objcopy.c index b8a49c8..9147e2a 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: |