diff options
Diffstat (limited to 'binutils226-swift-driver.patch')
-rw-r--r-- | binutils226-swift-driver.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/binutils226-swift-driver.patch b/binutils226-swift-driver.patch new file mode 100644 index 000000000000..994781908d4a --- /dev/null +++ b/binutils226-swift-driver.patch @@ -0,0 +1,14 @@ +diff --git a/lib/Driver/ToolChains.cpp b/lib/Driver/ToolChains.cpp +index 5e20ac3..eb4b846 100644 +--- a/lib/Driver/ToolChains.cpp ++++ b/lib/Driver/ToolChains.cpp +@@ -1268,6 +1268,9 @@ toolchains::GenericUnix::constructInvocation(const LinkJobAction &job, + Arguments.push_back(context.Args.MakeArgString("--target=" + getTriple().str())); + } + ++ Arguments.push_back("-Wl,-z,nocopyreloc"); ++ Arguments.push_back("-Wl,-z,noextern-protected-data"); ++ + // Add the runtime library link path, which is platform-specific and found + // relative to the compiler. + llvm::SmallString<128> RuntimeLibPath; |