]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Fix detection of GNU LD version in GCC's scripts
authorMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
Wed, 4 Nov 2015 13:52:34 +0000 (14:52 +0100)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Thu, 24 Aug 2017 12:46:26 +0000 (09:46 -0300)
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.

bfd/version.h

index 2d0da9b48548d4bb8fb1b76277af74d396cb6833..de5245179c8eed7a5ff211703bc87abb98cb1532 100644 (file)
@@ -4,5 +4,5 @@
    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.10"
+#define BFD_VERSION_STRING  @bfd_version_package@ @bfd_version_string@ " Linaro 2015_10"
 #define REPORT_BUGS_TO @report_bugs_to@