Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
futurejones authored Mar 2, 2024
1 parent 2494e99 commit e51c3ab
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions test-patches/amazonlinux-lld-swift-driver-all.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
diff --git a/Sources/SwiftDriver/Jobs/GenericUnixToolchain+LinkerSupport.swift b/Sources/SwiftDriver/Jobs/GenericUnixToolchain+LinkerSupport.swift
index 1fcf6f36..1b25ef15 100644
--- a/Sources/SwiftDriver/Jobs/GenericUnixToolchain+LinkerSupport.swift
+++ b/Sources/SwiftDriver/Jobs/GenericUnixToolchain+LinkerSupport.swift
@@ -28,10 +28,10 @@ extension GenericUnixToolchain {
// section on these targets, it also generates COPY relocations for
// final executables, as such, unless specified, we default to gold
// linker.
- return "gold"
+ return "lld"
case .x86, .x86_64, .ppc64, .ppc64le, .systemz:
// BFD linker has issues wrt relocations against protected symbols.
- return "gold"
+ return "lld"
default:
// Otherwise, use the default BFD linker.
return ""

0 comments on commit e51c3ab

Please sign in to comment.