@@ -404,6 +404,8 @@ static void checkOptions(Ctx &ctx) {
404
404
ErrAlways (ctx) << " -z gcs-report only supported on AArch64" ;
405
405
if (ctx.arg .zGcs != GcsPolicy::Implicit)
406
406
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" ;
407
409
}
408
410
409
411
if (ctx.arg .emachine != EM_PPC64) {
@@ -461,27 +463,6 @@ static void checkOptions(Ctx &ctx) {
461
463
462
464
if (ctx.arg .zRetpolineplt && ctx.arg .zForceIbt )
463
465
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" ;
485
466
}
486
467
487
468
static const char *getReproduceOption (opt::InputArgList &args) {
0 commit comments