Skip to content

Commit 621e302

Browse files
committed
Disables ld.gold on binutils < 2.26, resolves #2984
1 parent 1db794b commit 621e302

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,8 @@ if(ENABLE_GOLD_LINKER)
127127

128128
# Issue 2785: check gold binutils version and don't use gc-sections for versions prior 2.25
129129
string(REGEX REPLACE ".*\\(GNU Binutils[^\\)0-9]+([0-9]+\\.[0-9]+)[^\\)]*\\).*" "\\1" GOLD_BINUTILS_VERSION "${LD_VERSION}")
130-
if ("${GOLD_BINUTILS_VERSION}" VERSION_LESS "2.25")
131-
message(STATUS "Disabling gc-sections on gold binutils < 2.25, see: https://sourceware.org/bugzilla/show_bug.cgi?id=17639")
130+
if ("${GOLD_BINUTILS_VERSION}" VERSION_LESS "2.26")
131+
message(STATUS "Disabling gc-sections on gold binutils < 2.26, see: https://sourceware.org/bugzilla/show_bug.cgi?id=17639")
132132
set(LD_AVOID_GC_SECTIONS TRUE)
133133
endif()
134134
else()

0 commit comments

Comments
 (0)