diff --git a/[refs] b/[refs] index f2829afc1377..d7d7529068c8 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 9f087e7612115b7a201d4f3392a95ac7408948ab +refs/heads/master: 8abd5724a7f1631ab2276954156c629d4d17149a diff --git a/trunk/scripts/recordmcount.h b/trunk/scripts/recordmcount.h index ac7b3303cb31..7f8d5c4c780f 100644 --- a/trunk/scripts/recordmcount.h +++ b/trunk/scripts/recordmcount.h @@ -360,6 +360,7 @@ __has_rel_mcount(Elf_Shdr const *const relhdr, /* is SHT_REL or SHT_RELA */ succeed_file(); } if (w(txthdr->sh_type) != SHT_PROGBITS || + !(w(txthdr->sh_flags) & SHF_EXECINSTR) || !is_mcounted_section_name(txtname)) return NULL; return txtname;