From c60ce34ad5edb8c5a009d028a39e44b5381bafb2 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Thu, 17 Mar 2011 12:56:35 +0000 Subject: [PATCH] PR 12590 * ar.c (ranlib_main): Init arg_index properly. (usage): Describe --target. --- binutils/ChangeLog | 6 ++++++ binutils/ar.c | 5 +++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/binutils/ChangeLog b/binutils/ChangeLog index e83935ab9be..6c481c19e00 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,9 @@ +2011-03-17 Alan Modra + + PR 12590 + * ar.c (ranlib_main): Init arg_index properly. + (usage): Describe --target. + 2011-03-16 Jakub Jelinek * dwarf.c (dw_TAG_name): Handle DW_TAG_GNU_call_site_parameter. diff --git a/binutils/ar.c b/binutils/ar.c index d8f6678db3a..0866a54f2ae 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, _(" @ - read options from \n")); + fprintf (s, _(" --target=BFDNAME - specify the target object format as BFDNAME\n")); #if BFD_SUPPORTS_PLUGINS fprintf (s, _(" optional:\n")); fprintf (s, _(" --plugin

- 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) { -- 2.30.2