From e3fbbeb9b65739705417f11a808ee9f1d28a537d Mon Sep 17 00:00:00 2001 From: Steven Rostedt Date: Wed, 13 Apr 2011 13:31:08 -0400 Subject: [PATCH] --- yaml --- r: 257043 b: refs/heads/master c: df2ccb69454d022ce99e3a3b7ee7f9fb4a4e9563 h: refs/heads/master i: 257041: faa553a928edff0fc941d151760a26ffdf9fb8ea 257039: 6cd62c063e89682506f2aa148f73b4384a9c0e7f v: v3 --- [refs] | 2 +- trunk/scripts/recordmcount.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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;