@@ -1644,9 +1644,9 @@ static void readConfigs(Ctx &ctx, opt::InputArgList &args) {
1644
1644
auto reports = {
1645
1645
std::make_pair (" bti-report" , &ctx.arg .zBtiReport ),
1646
1646
std::make_pair (" cet-report" , &ctx.arg .zCetReport ),
1647
+ std::make_pair (" execute-only-report" , &ctx.arg .zExecuteOnlyReport ),
1647
1648
std::make_pair (" gcs-report" , &ctx.arg .zGcsReport ),
1648
- std::make_pair (" pauth-report" , &ctx.arg .zPauthReport ),
1649
- std::make_pair (" execute-only-report" , &ctx.arg .zExecuteOnlyReport )};
1649
+ std::make_pair (" pauth-report" , &ctx.arg .zPauthReport )};
1650
1650
for (opt::Arg *arg : args.filtered (OPT_z)) {
1651
1651
std::pair<StringRef, StringRef> option =
1652
1652
StringRef (arg->getValue ()).split (' =' );
@@ -2945,15 +2945,15 @@ static void checkExecuteOnly(Ctx &ctx) {
2945
2945
};
2946
2946
2947
2947
for (ELFFileBase *file : ctx.objectFiles ) {
2948
- for (InputSectionBase *section : file->getSections ()) {
2949
- if (!(section && section ->flags & SHF_EXECINSTR))
2948
+ for (InputSectionBase *sec : file->getSections ()) {
2949
+ if (!(sec && sec ->flags & SHF_EXECINSTR))
2950
2950
continue ;
2951
2951
2952
- OutputSection *outputSection = section ->getOutputSection ();
2953
- if (outputSection && outputSection ->name == " .text" ) {
2952
+ OutputSection *osec = sec ->getOutputSection ();
2953
+ if (osec && osec ->name == " .text" ) {
2954
2954
reportUnless (ctx.arg .zExecuteOnlyReport ,
2955
- section ->flags & SHF_AARCH64_PURECODE)
2956
- << file << " : -z execute-only-report: section " << section-> name
2955
+ sec ->flags & SHF_AARCH64_PURECODE)
2956
+ << " -z execute-only-report: " << sec
2957
2957
<< " does not have SHF_AARCH64_PURECODE flag set" ;
2958
2958
}
2959
2959
}
0 commit comments