This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: query about a possible bug in strip command
- From: Alan Modra <amodra at gmail dot com>
- To: Syed Imtiaz Hussain <sihussain2 at gmail dot com>
- Cc: binutils at sourceware dot org
- Date: Sun, 18 Nov 2018 21:13:03 +1030
- Subject: Re: query about a possible bug in strip command
- References: <CAN+MTZcjcw2T5gWhLfiA_7V9Ppg4H7G_e+V06nNch=VGzCt71w@mail.gmail.com>
On Fri, Nov 16, 2018 at 12:08:05PM -0500, Syed Imtiaz Hussain wrote:
> 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