Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Unified Diff: binutils-2.20/binutils/ar.c

Issue 8713008: Add dlwrap.c to binutils to simulate dlopen/dlsym for gold plugin (Closed)
Patch Set: x Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « binutils-2.20/bfd/plugin.c ('k') | binutils-2.20/gold/Makefile.in » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: binutils-2.20/binutils/ar.c
===================================================================
--- a/binutils-2.20/binutils/ar.c
+++ b/binutils-2.20/binutils/ar.c
@@ -574,6 +574,19 @@
case 'V':
show_version = 1;
break;
+// @LOCALMOD-BEGIN
+// Fix for minor upstream bug: Handle --plugin properly in ranlib.
+// This code is copy & pasted from main().
+ 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
+// @LOCALMOD-END
+ break;
}
}
« no previous file with comments | « binutils-2.20/bfd/plugin.c ('k') | binutils-2.20/gold/Makefile.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698