Skip to content

Commit 4cc1af3

Browse files
committed
Remove nostart-stop-gc with lld
Fixed by swiftlang/swift#67476
1 parent d01fb4c commit 4cc1af3

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

Sources/SwiftDriver/Jobs/GenericUnixToolchain+LinkerSupport.swift

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -88,17 +88,6 @@ extension GenericUnixToolchain {
8888
#else
8989
commandLine.appendFlag("-fuse-ld=\(linker)")
9090
#endif
91-
// Starting with lld 13, Swift stopped working with the lld
92-
// --gc-sections implementation for ELF, unless -z nostart-stop-gc is
93-
// also passed to lld:
94-
//
95-
// https://reviews.llvm.org/D96914
96-
if linker == "lld" || linker.hasSuffix("ld.lld") {
97-
commandLine.appendFlag(.Xlinker)
98-
commandLine.appendFlag("-z")
99-
commandLine.appendFlag(.Xlinker)
100-
commandLine.appendFlag("nostart-stop-gc")
101-
}
10291
}
10392

10493
// Configure the toolchain.

0 commit comments

Comments
 (0)