From 5b04d961aae2c05eb0fe7b1d228c320eb554ebd9 Mon Sep 17 00:00:00 2001 From: Maxim Kuvyrkov Date: Wed, 4 Nov 2015 14:52:34 +0100 Subject: [PATCH] Unify LD versions for Tizen repositories by adding " Linaro 2015_01-2" 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 --- bfd/version.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) mode change 100644 => 100755 bfd/version.h diff --git a/bfd/version.h b/bfd/version.h old mode 100644 new mode 100755 index 049a77e..077967e --- a/bfd/version.h +++ b/bfd/version.h @@ -1,4 +1,8 @@ #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@ -- 2.7.4