From b6de3534c3b521cf77c86d16b604bb9bf5cc7155 Mon Sep 17 00:00:00 2001 From: Steven Rostedt Date: Wed, 13 Apr 2011 13:31:08 -0400 Subject: [PATCH] --- yaml --- r: 245499 b: refs/heads/master c: 8abd5724a7f1631ab2276954156c629d4d17149a h: refs/heads/master i: 245497: 4a0229c233d1edf1fcaa8389574e3cfaa28f84bf 245495: 294ca2e2195363996f70c49b1f9fe2e49c94d27c v: v3 --- [refs] | 2 +- trunk/scripts/recordmcount.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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;