summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys-utils/readprofile.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys-utils/readprofile.c b/sys-utils/readprofile.c
index 91ff32951..174f9aa0d 100644
--- a/sys-utils/readprofile.c
+++ b/sys-utils/readprofile.c
@@ -323,8 +323,10 @@ main(int argc, char **argv) {
done = 1;
else {
/* ignore any LEADING (before a '[tT]' symbol is found)
- Absolute symbols */
- if ((*mode == 'A' || *mode == '?') && total == 0)
+ Absolute symbols and __init_end because some
+ architectures place it before .text section */
+ if ((*mode == 'A' || *mode == '?')
+ && (total == 0 || !strcmp(next_name, "__init_end")))
continue;
if (*mode != 'T' && *mode != 't' &&
*mode != 'W' && *mode != 'w')