summaryrefslogtreecommitdiff
path: root/packages/oprofile/oprofile-0.9/no_arm_mapping_syms.patch
blob: 4c07e5c735d2be5250cfc6136f7cf51072099881 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

#
# Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
#

Index: oprofile-0.9/libutil++/bfd_support.cpp
===================================================================
--- oprofile-0.9.orig/libutil++/bfd_support.cpp	2005-05-05 15:43:46.000000000 +0100
+++ oprofile-0.9/libutil++/bfd_support.cpp	2005-06-10 10:18:24.000000000 +0100
@@ -330,6 +330,11 @@
 	// returning true for fix up in op_bfd_symbol()
 	if (!sym->name || sym->name[0] == '\0')
 		return true;
+	/* ARM assembler internal mapping symbols aren't interesting */
+	if ((strcmp("$a", sym->name) == 0) ||
+	    (strcmp("$t", sym->name) == 0) ||
+	    (strcmp("$d", sym->name) == 0))
+		return false;
 
 	// C++ exception stuff
 	if (sym->name[0] == '.' && sym->name[1] == 'L')