summaryrefslogtreecommitdiff
path: root/binutils/ar.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2011-03-17 12:56:35 +0000
committerAlan Modra <amodra@bigpond.net.au>2011-03-17 12:56:35 +0000
commit4ae995f236dcd82f23b11d3b42be805229f69548 (patch)
tree596c9aad858e875e4e77877c5aa5170b3d09d052 /binutils/ar.c
parent85638a0313cec9f6e5b9e98b3b1ac7c630508117 (diff)
downloadbinutils-redhat-4ae995f236dcd82f23b11d3b42be805229f69548.tar.gz
PR 12590
* ar.c (ranlib_main): Init arg_index properly. (usage): Describe --target.
Diffstat (limited to 'binutils/ar.c')
-rw-r--r--binutils/ar.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/binutils/ar.c b/binutils/ar.c
index d8f6678db3..0866a54f2a 100644
--- a/binutils/ar.c
+++ b/binutils/ar.c
@@ -1,6 +1,6 @@
/* ar.c - Archive modify and extract.
Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
- 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
+ 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
Free Software Foundation, Inc.
This file is part of GNU Binutils.
@@ -290,6 +290,7 @@ usage (int help)
fprintf (s, _(" [v] - be verbose\n"));
fprintf (s, _(" [V] - display the version number\n"));
fprintf (s, _(" @<file> - read options from <file>\n"));
+ fprintf (s, _(" --target=BFDNAME - specify the target object format as BFDNAME\n"));
#if BFD_SUPPORTS_PLUGINS
fprintf (s, _(" optional:\n"));
fprintf (s, _(" --plugin <p> - load the specified plugin\n"));
@@ -585,7 +586,7 @@ ranlib_main (int argc, char **argv)
if (show_version)
print_version ("ranlib");
- arg_index = 1;
+ arg_index = optind;
while (arg_index < argc)
{