forked from OSchip/llvm-project
[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 llvm-svn: 372814
This commit is contained in:
parent
2bc478844a
commit
3cba180cac
|
@ -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())
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue