summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2007-07-05 12:15:50 -0400
committerKarel Zak <kzak@redhat.com>2007-07-10 14:12:44 +0200
commitdb94975b5972a691d32fe34ed82d5f76713f9895 (patch)
tree75b14a935ed506786f8ee63b37673a753b58cc1e
parentd33279c2e3bdaff7a3c9c7f6df60da75d7969ad4 (diff)
downloadutil-linux-old-db94975b5972a691d32fe34ed82d5f76713f9895.tar.gz
also search for __stext in readprofile
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>
-rw-r--r--sys-utils/readprofile.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys-utils/readprofile.c b/sys-utils/readprofile.c
index 43991f2f..978e6c1d 100644
--- a/sys-utils/readprofile.c
+++ b/sys-utils/readprofile.c
@@ -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;
}