initial import
[patches.git] / util-linux-readprofile-stext.patch
1 diff --git a/sys-utils/readprofile.c b/sys-utils/readprofile.c
2 index 43991f2..978e6c1 100644
3 --- a/sys-utils/readprofile.c
4 +++ b/sys-utils/readprofile.c
5 @@ -306,7 +306,8 @@ main(int argc, char **argv) {
6 prgname, mapFile, maplineno);
7 exit(1);
8 }
9 - if (!strcmp(fn_name,"_stext")) /* only elf works like this */ {
10 + /* only elf works like this */
11 + if (!strcmp(fn_name,"_stext") || !strcmp(fn_name,"__stext")) {
12 add0 = fn_add;
13 break;
14 }