This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Bug (a small one) in binutils/objcopy.c


The problem is that strip doesn't accept the -o flag.
The reason is it has been forgotten in the parameters 
for the getopt_long call.
The patch to solve this problem is very simple:

--- objcopy.c-orig	Fri Jun 22 03:34:55 2001
+++ objcopy.c	Fri Jun 22 03:30:56 2001
@@ -240,6 +240,7 @@
   {"keep-symbol", required_argument, 0, 'K'},
   {"output-format", required_argument, 0, 'O'},	/* Obsolete */
   {"output-target", required_argument, 0, 'O'},
+  {"output-file", required_argument, 0, 'o'},
   {"preserve-dates", no_argument, 0, 'p'},
   {"remove-section", required_argument, 0, 'R'},
   {"strip-all", no_argument, 0, 's'},
@@ -1835,7 +1836,7 @@
   struct section_list *p;
   char *output_file = NULL;
 
-  while ((c = getopt_long (argc, argv,
"b:i:I:j:K:N:s:O:d:F:L:G:R:SpgxXVvW:",
+  while ((c = getopt_long (argc, argv,
"b:i:o:I:j:K:N:s:O:d:F:L:G:R:SpgxXVvW:",
 			   strip_options, (int *) 0)) != EOF)
     {
       switch (c)


Now, all seems OK for me.

Regards.

Jocelyn Mayer.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]