Discussion:
query about a possible bug in strip command
(too old to reply)
Syed Imtiaz Hussain
2018-11-16 17:08:05 UTC
Permalink
Hi,
The strip command offers a -D option which doesnt seem to work. I checked
the source code, and the getopt_long in the *objcopy.c* doesnt seem to be
picking -D or -U option.

*while ((c = getopt_long (argc, argv, "I:O:F:K:N:R:o:sSpdgxXHhVvw",*


*am i missing something. or is it a bug*
--
Best Regards
Syed Imtiaz
Alan Modra
2018-11-18 10:43:03 UTC
Permalink
Post by Syed Imtiaz Hussain
Hi,
The strip command offers a -D option which doesnt seem to work. I checked
the source code, and the getopt_long in the *objcopy.c* doesnt seem to be
picking -D or -U option.
*while ((c = getopt_long (argc, argv, "I:O:F:K:N:R:o:sSpdgxXHhVvw",*
*am i missing something. or is it a bug*
You must be looking at old sources. Current strip_main has

while ((c = getopt_long (argc, argv, "I:O:F:K:MN:R:o:sSpdgxXHhVvwDU",
strip_options, (int *) 0)) != EOF)
--
Alan Modra
Australia Development Lab, IBM
Loading...