r372814 - [Driver] Always use -z separate-loadable-segments with lld on Fuchsia
Fangrui Song via cfe-commits
cfe-commits at lists.llvm.org
Wed Sep 25 00:06:50 PDT 2019
Author: maskray
Date: Wed Sep 25 00:06:50 2019
New Revision: 372814
URL: http://llvm.org/viewvc/llvm-project?rev=372814&view=rev
Log:
[Driver] Always use -z separate-loadable-segments with lld on Fuchsia
The option was added to lld in D67481/372807.
Reviewed By: phosek
Differential Revision: https://reviews.llvm.org/D68009
Modified:
cfe/trunk/lib/Driver/ToolChains/Fuchsia.cpp
cfe/trunk/test/Driver/fuchsia.c
Modified: cfe/trunk/lib/Driver/ToolChains/Fuchsia.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/ToolChains/Fuchsia.cpp?rev=372814&r1=372813&r2=372814&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/ToolChains/Fuchsia.cpp (original)
+++ cfe/trunk/lib/Driver/ToolChains/Fuchsia.cpp Wed Sep 25 00:06:50 2019
@@ -52,7 +52,7 @@ void fuchsia::Linker::ConstructJob(Compi
CmdArgs.push_back("-z");
CmdArgs.push_back("rodynamic");
CmdArgs.push_back("-z");
- CmdArgs.push_back("separate-code");
+ CmdArgs.push_back("separate-loadable-segments");
}
if (!D.SysRoot.empty())
Modified: cfe/trunk/test/Driver/fuchsia.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/fuchsia.c?rev=372814&r1=372813&r2=372814&view=diff
==============================================================================
--- cfe/trunk/test/Driver/fuchsia.c (original)
+++ cfe/trunk/test/Driver/fuchsia.c Wed Sep 25 00:06:50 2019
@@ -16,7 +16,7 @@
// CHECK: "-fsanitize=safe-stack"
// CHECK: "-stack-protector" "2"
// CHECK: "-fno-common"
-// CHECK: {{.*}}ld.lld{{.*}}" "-z" "rodynamic" "-z" "separate-code"
+// CHECK: {{.*}}ld.lld{{.*}}" "-z" "rodynamic" "-z" "separate-loadable-segments"
// CHECK: "--sysroot=[[SYSROOT]]"
// CHECK: "-pie"
// CHECK: "--build-id"
More information about the cfe-commits
mailing list