Skip to content

Commit

Permalink
[Driver] Always use -z separate-loadable-segments with lld on Fuchsia
Browse files Browse the repository at this point in the history
The option was added to lld in D67481/372807.

Reviewed By: phosek

Differential Revision: https://reviews.llvm.org/D68009

llvm-svn: 372814
  • Loading branch information
MaskRay committed Sep 25, 2019
1 parent 2bc4788 commit 3cba180
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion clang/lib/Driver/ToolChains/Fuchsia.cpp
Expand Up @@ -52,7 +52,7 @@ void fuchsia::Linker::ConstructJob(Compilation &C, const JobAction &JA,
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())
Expand Down
2 changes: 1 addition & 1 deletion clang/test/Driver/fuchsia.c
Expand Up @@ -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"
Expand Down

0 comments on commit 3cba180

Please sign in to comment.