[PATCH] D68009: [Driver] Always use -z separate-loadable-segments with lld on Fuchsia
Fangrui Song via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 24 23:31:28 PDT 2019
MaskRay created this revision.
MaskRay added reviewers: jakehehrlich, mcgrathr, phosek.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
The option was added to lld in D67481 <https://reviews.llvm.org/D67481>/372807.
Repository:
rC Clang
https://reviews.llvm.org/D68009
Files:
lib/Driver/ToolChains/Fuchsia.cpp
test/Driver/fuchsia.c
Index: test/Driver/fuchsia.c
===================================================================
--- test/Driver/fuchsia.c
+++ test/Driver/fuchsia.c
@@ -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"
Index: lib/Driver/ToolChains/Fuchsia.cpp
===================================================================
--- lib/Driver/ToolChains/Fuchsia.cpp
+++ lib/Driver/ToolChains/Fuchsia.cpp
@@ -52,7 +52,7 @@
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())
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D68009.221674.patch
Type: text/x-patch
Size: 918 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190925/0dcc607f/attachment.bin>
More information about the cfe-commits
mailing list