]> err.no Git - util-linux/commitdiff
also search for __stext in readprofile
authorMike Frysinger <vapier@gentoo.org>
Thu, 5 Jul 2007 16:15:50 +0000 (12:15 -0400)
committerKarel Zak <kzak@redhat.com>
Tue, 10 Jul 2007 12:12:44 +0000 (14:12 +0200)
Some architectures have a single underscore prefix in their ABI, so there will
be no "_stext" symbol, just "__stext".

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
sys-utils/readprofile.c

index 43991f2fc0a4d14b6e082dac2358f179ef8b6e4e..978e6c1d366c1eadd712f10cdb0495bea158f825 100644 (file)
@@ -306,7 +306,8 @@ main(int argc, char **argv) {
                                prgname, mapFile, maplineno);
                        exit(1);
                }
-               if (!strcmp(fn_name,"_stext")) /* only elf works like this */ {
+               /* only elf works like this */
+               if (!strcmp(fn_name,"_stext") || !strcmp(fn_name,"__stext")) {
                        add0 = fn_add;
                        break;
                }