diff options
Diffstat (limited to 'scripts/recordmcount.c')
-rw-r--r-- | scripts/recordmcount.c | 2 |
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); | |||
397 | static int | 397 | static int |
398 | is_mcounted_section_name(char const *const txtname) | 398 | is_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 || |