Skip to content

Commit 5d894c7

Browse files
committed
Resolve merge conflicts after rebase
1 parent d12bc14 commit 5d894c7

File tree

1 file changed

+2
-21
lines changed

1 file changed

+2
-21
lines changed

lld/ELF/Driver.cpp

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,8 @@ static void checkOptions(Ctx &ctx) {
404404
ErrAlways(ctx) << "-z gcs-report only supported on AArch64";
405405
if (ctx.arg.zGcs != GcsPolicy::Implicit)
406406
ErrAlways(ctx) << "-z gcs only supported on AArch64";
407+
if (ctx.arg.zExecuteOnlyReport != "none")
408+
ErrAlways(ctx) << "-z execute-only-report only supported on AArch64";
407409
}
408410

409411
if (ctx.arg.emachine != EM_PPC64) {
@@ -461,27 +463,6 @@ static void checkOptions(Ctx &ctx) {
461463

462464
if (ctx.arg.zRetpolineplt && ctx.arg.zForceIbt)
463465
ErrAlways(ctx) << "-z force-ibt may not be used with -z retpolineplt";
464-
465-
if (ctx.arg.emachine != EM_AARCH64) {
466-
if (ctx.arg.zPacPlt)
467-
ErrAlways(ctx) << "-z pac-plt only supported on AArch64";
468-
if (ctx.arg.zForceBti)
469-
ErrAlways(ctx) << "-z force-bti only supported on AArch64";
470-
if (ctx.arg.zBtiReport != "none")
471-
ErrAlways(ctx) << "-z bti-report only supported on AArch64";
472-
if (ctx.arg.zPauthReport != "none")
473-
ErrAlways(ctx) << "-z pauth-report only supported on AArch64";
474-
if (ctx.arg.zGcsReport != "none")
475-
ErrAlways(ctx) << "-z gcs-report only supported on AArch64";
476-
if (ctx.arg.zGcs != GcsPolicy::Implicit)
477-
ErrAlways(ctx) << "-z gcs only supported on AArch64";
478-
if (ctx.arg.zExecuteOnlyReport != "none")
479-
ErrAlways(ctx) << "-z execute-only-report only supported on AArch64";
480-
}
481-
482-
if (ctx.arg.emachine != EM_386 && ctx.arg.emachine != EM_X86_64 &&
483-
ctx.arg.zCetReport != "none")
484-
ErrAlways(ctx) << "-z cet-report only supported on X86 and X86_64";
485466
}
486467

487468
static const char *getReproduceOption(opt::InputArgList &args) {

0 commit comments

Comments
 (0)