Submitted By: Miklos Karacsony <mkaracsony81 at gmail dot com>
Date: 2014-05-01
Initial Package Version: 2.24
Upstream Status: Applied
Origin: Upstream
Description: Load gcc LTO plugin by default
diff --git a/binutils/ar.c b/binutils/ar.c
index a11ed15c86bc..f0feaef5b233 100644
|
a
|
b
|
static int show_version = 0;
|
| 138 | 138 | |
| 139 | 139 | static int show_help = 0; |
| 140 | 140 | |
| | 141 | #if BFD_SUPPORTS_PLUGINS |
| | 142 | static const char *plugin_target = "plugin"; |
| | 143 | #else |
| 141 | 144 | static const char *plugin_target = NULL; |
| | 145 | #endif |
| 142 | 146 | |
| 143 | 147 | static const char *target = NULL; |
| 144 | 148 | |
| … |
… |
decode_options (int argc, char **argv)
|
| 571 | 575 | break; |
| 572 | 576 | case OPTION_PLUGIN: |
| 573 | 577 | #if BFD_SUPPORTS_PLUGINS |
| 574 | | plugin_target = "plugin"; |
| 575 | 578 | bfd_plugin_set_plugin (optarg); |
| 576 | 579 | #else |
| 577 | 580 | fprintf (stderr, _("sorry - this program has been built without plugin support\n")); |
| … |
… |
ranlib_main (int argc, char **argv)
|
| 632 | 635 | /* PR binutils/13493: Support plugins. */ |
| 633 | 636 | case OPTION_PLUGIN: |
| 634 | 637 | #if BFD_SUPPORTS_PLUGINS |
| 635 | | plugin_target = "plugin"; |
| 636 | 638 | bfd_plugin_set_plugin (optarg); |
| 637 | 639 | #else |
| 638 | 640 | fprintf (stderr, _("sorry - this program has been built without plugin support\n")); |
diff --git a/binutils/nm.c b/binutils/nm.c
index 156194f21de7..876bbed7a407 100644
|
a
|
b
|
static char other_format[] = "%02x";
|
| 177 | 177 | static char desc_format[] = "%04x"; |
| 178 | 178 | |
| 179 | 179 | static char *target = NULL; |
| 180 | | static char *plugin_target = NULL; |
| | 180 | #if BFD_SUPPORTS_PLUGINS |
| | 181 | static const char *plugin_target = "plugin"; |
| | 182 | #else |
| | 183 | static const char *plugin_target = NULL; |
| | 184 | #endif |
| 181 | 185 | |
| 182 | 186 | /* Used to cache the line numbers for a BFD. */ |
| 183 | 187 | static bfd *lineno_cache_bfd; |
| … |
… |
main (int argc, char **argv)
|
| 1648 | 1652 | |
| 1649 | 1653 | case OPTION_PLUGIN: /* --plugin */ |
| 1650 | 1654 | #if BFD_SUPPORTS_PLUGINS |
| 1651 | | plugin_target = "plugin"; |
| 1652 | 1655 | bfd_plugin_set_plugin (optarg); |
| 1653 | 1656 | #else |
| 1654 | 1657 | fatal (_("sorry - this program has been built without plugin support\n")); |