PR binutils/13493

* ar.c (ranlib_main): Process --plugin option.
	* doc/binutils.texi: Document --plugin support for ranlib.
This commit is contained in:
Nick Clifton
2012-02-01 16:49:26 +00:00
parent 72018481db
commit 36e32b27f6
3 changed files with 23 additions and 5 deletions

View File

@ -1,3 +1,9 @@
2012-02-01 Nick Clifton <nickc@redhat.com>
PR binutils/13493
* ar.c (ranlib_main): Process --plugin option.
* doc/binutils.texi: Document --plugin support for ranlib.
2012-02-01 Nick Clifton <nickc@redhat.com> 2012-02-01 Nick Clifton <nickc@redhat.com>
PR binutils/13482 PR binutils/13482

View File

@ -1,6 +1,6 @@
/* ar.c - Archive modify and extract. /* ar.c - Archive modify and extract.
Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
Free Software Foundation, Inc. Free Software Foundation, Inc.
This file is part of GNU Binutils. This file is part of GNU Binutils.
@ -613,7 +613,18 @@ ranlib_main (int argc, char **argv)
case 'V': case 'V':
show_version = 1; show_version = 1;
break; break;
}
/* PR binutils/13493: Support plugins. */
case OPTION_PLUGIN:
#if BFD_SUPPORTS_PLUGINS
plugin_target = "plugin";
bfd_plugin_set_plugin (optarg);
#else
fprintf (stderr, _("sorry - this program has been built without plugin support\n"));
xexit (1);
#endif
break;
}
} }
if (argc < 2) if (argc < 2)

View File

@ -10,8 +10,9 @@
@copying @copying
@c man begin COPYRIGHT @c man begin COPYRIGHT
Copyright @copyright{} 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, Copyright @copyright{} 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009,
2010, 2011, 2012
Free Software Foundation, Inc. Free Software Foundation, Inc.
Permission is granted to copy, distribute and/or modify this document Permission is granted to copy, distribute and/or modify this document
@ -2364,7 +2365,7 @@ nm(1), readelf(1), and the Info entries for @file{binutils}.
@smallexample @smallexample
@c man begin SYNOPSIS ranlib @c man begin SYNOPSIS ranlib
ranlib [@option{-DhHvVt}] @var{archive} ranlib [@option{--plugin} @var{name}] [@option{-DhHvVt}] @var{archive}
@c man end @c man end
@end smallexample @end smallexample