Add '-d' flag for compatibility with the old strip.
This commit is contained in:
parent
7d144777a3
commit
28131ce85a
5
gnu/dist/binutils/objcopy.c
vendored
5
gnu/dist/binutils/objcopy.c
vendored
@ -292,7 +292,7 @@ strip_usage (stream, exit_status)
|
|||||||
int exit_status;
|
int exit_status;
|
||||||
{
|
{
|
||||||
fprintf (stream, "\
|
fprintf (stream, "\
|
||||||
Usage: %s [-vVsSpgxX] [-I bfdname] [-O bfdname] [-F bfdname] [-R section]\n\
|
Usage: %s [-vVsSpdgxX] [-I bfdname] [-O bfdname] [-F bfdname] [-R section]\n\
|
||||||
[--input-target=bfdname] [--output-target=bfdname] [--target=bfdname]\n\
|
[--input-target=bfdname] [--output-target=bfdname] [--target=bfdname]\n\
|
||||||
[--strip-all] [--strip-debug] [--strip-unneeded] [--discard-all]\n\
|
[--strip-all] [--strip-debug] [--strip-unneeded] [--discard-all]\n\
|
||||||
[--discard-locals] [--keep-symbol symbol] [-K symbol]\n\
|
[--discard-locals] [--keep-symbol symbol] [-K symbol]\n\
|
||||||
@ -1616,7 +1616,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)
|
||||||
@ -1640,6 +1640,7 @@ strip_main (argc, argv)
|
|||||||
break;
|
break;
|
||||||
case 'S':
|
case 'S':
|
||||||
case 'g':
|
case 'g':
|
||||||
|
case 'd':
|
||||||
strip_symbols = strip_debug;
|
strip_symbols = strip_debug;
|
||||||
break;
|
break;
|
||||||
case OPTION_STRIP_UNNEEDED:
|
case OPTION_STRIP_UNNEEDED:
|
||||||
|
2
gnu/dist/binutils/strip.1
vendored
2
gnu/dist/binutils/strip.1
vendored
@ -91,6 +91,8 @@ Remove all symbols.
|
|||||||
.TP
|
.TP
|
||||||
.B \-S
|
.B \-S
|
||||||
.TP
|
.TP
|
||||||
|
.B \-d
|
||||||
|
.TP
|
||||||
.B \-g
|
.B \-g
|
||||||
.TP
|
.TP
|
||||||
.B \-\-strip\-debug
|
.B \-\-strip\-debug
|
||||||
|
Loading…
Reference in New Issue
Block a user