diff --git a/[refs] b/[refs] index edfc27ed7eca..1dbb31462472 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: bde66c3f45d777082a0df01e64870f47ba2a5055 +refs/heads/master: df2ccb69454d022ce99e3a3b7ee7f9fb4a4e9563 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;