|
@@ -124,7 +124,7 @@ struct thread;
|
|
|
*/
|
|
|
#define __map__for_each_symbol_by_name(map, sym_name, pos, filter) \
|
|
|
for (pos = map__find_symbol_by_name(map, sym_name, filter); \
|
|
|
- pos && strcmp(pos->name, sym_name) == 0; \
|
|
|
+ pos && arch__compare_symbol_names(pos->name, sym_name) == 0; \
|
|
|
pos = symbol__next_by_name(pos))
|
|
|
|
|
|
#define map__for_each_symbol_by_name(map, sym_name, pos) \
|
|
@@ -132,6 +132,7 @@ struct thread;
|
|
|
|
|
|
typedef int (*symbol_filter_t)(struct map *map, struct symbol *sym);
|
|
|
|
|
|
+int arch__compare_symbol_names(const char *namea, const char *nameb);
|
|
|
void map__init(struct map *map, enum map_type type,
|
|
|
u64 start, u64 end, u64 pgoff, struct dso *dso);
|
|
|
struct map *map__new(struct machine *machine, u64 start, u64 len,
|