Fix detection of GNU LD version in GCC's scripts
GCC's configure scripts are confused by YYYY.MM format of Linaro releases
and mistake YYYY for major version (currently 2) and MM for minor version
(currently 25). This, in turn, makes GCC think that GNU LD doesn't support
plugins, which disables -fuse-linker-plugin functionality used by LTO.
This problem was already fixed before, and there is a comment about avoiding
"." in the BFD_VERSION_STRING, but, for reasons I can't explain, the problem
occurred again. So fixing it ... again.
Change-Id: Ic255a09f384c22fa92cde620ad4567fb8715a331
#define BFD_VERSION_DATE 20150105
#define BFD_VERSION @bfd_version@
-#define BFD_VERSION_STRING @bfd_version_package@ @bfd_version_string@
+/* Various parts of GCC parse Binutils version string in different fragile ways,
+ and we need to be very careful to not break them. So far it seems that
+ appending Linaro-specific version at the end is fine so long as it doesn't
+ contain any dots ".". */
+#define BFD_VERSION_STRING @bfd_version_package@ @bfd_version_string@ " Linaro 2015_01-2"
#define REPORT_BUGS_TO @report_bugs_to@