X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage0%2Fpatches%2Fcommon%2Fbinutils-2.24-load_gcc_lto_plugin_by_default-1.patch;fp=stage0%2Fpatches%2Fcommon%2Fbinutils-2.24-load_gcc_lto_plugin_by_default-1.patch;h=86d42a2261939ba2dd6b06c7f35f11c374e7e68c;hb=b0001c1123b681abfb148c0bc9144e3f6517d546;hp=0000000000000000000000000000000000000000;hpb=25444ab74e068ffdba5d00817d7eb0daff096839;p=hvlinux.git diff --git a/stage0/patches/common/binutils-2.24-load_gcc_lto_plugin_by_default-1.patch b/stage0/patches/common/binutils-2.24-load_gcc_lto_plugin_by_default-1.patch new file mode 100644 index 0000000..86d42a2 --- /dev/null +++ b/stage0/patches/common/binutils-2.24-load_gcc_lto_plugin_by_default-1.patch @@ -0,0 +1,64 @@ +Submitted By: Miklos Karacsony +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/binutils/ar.c ++++ b/binutils/ar.c +@@ -138,7 +138,11 @@ static int show_version = 0; + + static int show_help = 0; + ++#if BFD_SUPPORTS_PLUGINS ++static const char *plugin_target = "plugin"; ++#else + static const char *plugin_target = NULL; ++#endif + + static const char *target = NULL; + +@@ -571,7 +575,6 @@ decode_options (int argc, char **argv) + break; + 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")); +@@ -632,7 +635,6 @@ ranlib_main (int argc, char **argv) + /* 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")); +diff --git a/binutils/nm.c b/binutils/nm.c +index 156194f21de7..876bbed7a407 100644 +--- a/binutils/nm.c ++++ b/binutils/nm.c +@@ -177,7 +177,11 @@ static char other_format[] = "%02x"; + static char desc_format[] = "%04x"; + + static char *target = NULL; +-static char *plugin_target = NULL; ++#if BFD_SUPPORTS_PLUGINS ++static const char *plugin_target = "plugin"; ++#else ++static const char *plugin_target = NULL; ++#endif + + /* Used to cache the line numbers for a BFD. */ + static bfd *lineno_cache_bfd; +@@ -1648,7 +1652,6 @@ main (int argc, char **argv) + + case OPTION_PLUGIN: /* --plugin */ + #if BFD_SUPPORTS_PLUGINS +- plugin_target = "plugin"; + bfd_plugin_set_plugin (optarg); + #else + fatal (_("sorry - this program has been built without plugin support\n"));