summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2012-02-01 16:49:25 +0000
committerNick Clifton <nickc@redhat.com>2012-02-01 16:49:25 +0000
commit2da06f8f52081e6453f31a4856e820ae7411a67e (patch)
tree12d8ce8870e6c78033fadff597a8a4a8a856196d
parent1ce9fd68fda10f83d631217c27c4b6bbe22cc66a (diff)
downloadbinutils-redhat-2da06f8f52081e6453f31a4856e820ae7411a67e.tar.gz
PR binutils/13493
* ar.c (ranlib_main): Process --plugin option. * doc/binutils.texi: Document --plugin support for ranlib.
-rw-r--r--binutils/ChangeLog6
-rw-r--r--binutils/ar.c15
-rw-r--r--binutils/doc/binutils.texi7
3 files changed, 23 insertions, 5 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 87367ca2fb..8e2976d5ef 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,5 +1,11 @@
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>
+
PR binutils/13482
* readelf.c (process_corefile_note_segment): Fix off-by-one errors
verifying the contents of a note.
diff --git a/binutils/ar.c b/binutils/ar.c
index 0310b6f4b6..bb243a41a6 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, 2011
+ 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
Free Software Foundation, Inc.
This file is part of GNU Binutils.
@@ -613,7 +613,18 @@ ranlib_main (int argc, char **argv)
case 'V':
show_version = 1;
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)
diff --git a/binutils/doc/binutils.texi b/binutils/doc/binutils.texi
index 76998bc9b9..a9d9516365 100644
--- a/binutils/doc/binutils.texi
+++ b/binutils/doc/binutils.texi
@@ -10,8 +10,9 @@
@copying
@c man begin COPYRIGHT
-Copyright @copyright{} 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
-2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
+Copyright @copyright{} 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
+1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009,
+2010, 2011, 2012
Free Software Foundation, Inc.
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
@c man begin SYNOPSIS ranlib
-ranlib [@option{-DhHvVt}] @var{archive}
+ranlib [@option{--plugin} @var{name}] [@option{-DhHvVt}] @var{archive}
@c man end
@end smallexample