Skip to content

Commit b821a1d

Browse files
committed
Disables ld.gold on binutils < 2.26, resolves #2984
1 parent d1f1358 commit b821a1d

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
@@ -126,8 +126,8 @@ if(ENABLE_GOLD_LINKER)
126126

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

0 commit comments

Comments
 (0)