aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/recordmcount.c
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/recordmcount.c')
-rw-r--r--scripts/recordmcount.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/recordmcount.c b/scripts/recordmcount.c
index 895c40e8679f..a50a2aa963ad 100644
--- a/scripts/recordmcount.c
+++ b/scripts/recordmcount.c
@@ -397,7 +397,7 @@ static uint32_t (*w2)(uint16_t);
397static int 397static int
398is_mcounted_section_name(char const *const txtname) 398is_mcounted_section_name(char const *const txtname)
399{ 399{
400 return strcmp(".text", txtname) == 0 || 400 return strncmp(".text", txtname, 5) == 0 ||
401 strcmp(".init.text", txtname) == 0 || 401 strcmp(".init.text", txtname) == 0 ||
402 strcmp(".ref.text", txtname) == 0 || 402 strcmp(".ref.text", txtname) == 0 ||
403 strcmp(".sched.text", txtname) == 0 || 403 strcmp(".sched.text", txtname) == 0 ||