set lto_available_saved 0
            return 0
        }
+       # This test will hide LTO bugs in ld.  Since GCC 4.9 adds
+       # -ffat-lto-objects, we always run LTO tests on Linux with
+       # GCC 4.9 or newer.
+       if { [istarget "*-*-linux*"] && [at_least_gcc_version 4 9] } {
+           set lto_available_saved 1
+           return 1
+       }
        # Check if gcc supports -flto -fuse-linker-plugin
        set flags ""
        if [board_info [target_info name] exists cflags] {
            set lto_fat_available_saved 0
            return 0
        }
+       # This test will hide LTO bugs in ld.  Since GCC 4.9 adds
+       # -ffat-lto-objects, we always run LTO tests on Linux with
+       # GCC 4.9 or newer.
+       if { [istarget "*-*-linux*"] && [at_least_gcc_version 4 9] } {
+           set lto_fat_available_saved 1
+           return 1
+       }
        # Check if gcc supports -flto -fuse-linker-plugin
        set flags ""
        if [board_info [target_info name] exists cflags] {
            set lto_shared_available_saved 0
            return 0
        }
+       # This test will hide LTO bugs in ld.  Since GCC 4.9 adds
+       # -ffat-lto-objects, we always run LTO tests on Linux with
+       # GCC 4.9 or newer.
+       if { [istarget "*-*-linux*"] && [at_least_gcc_version 4 9] } {
+           set lto_shared_available_saved 1
+           return 1
+       }
        # Check if gcc supports -flto -fuse-linker-plugin -shared
        set flags ""
        if [board_info [target_info name] exists cflags] {