[patch] also search for __stext in readprofile

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
diff --git a/sys-utils/readprofile.c b/sys-utils/readprofile.c
index 43991f2..978e6c1 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;
 		}
-
To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux