diff options
Diffstat (limited to 'tools/perf/util')
-rw-r--r-- | tools/perf/util/symbol.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/perf/util/symbol.c b/tools/perf/util/symbol.c index 01b62fa03996..9c659ef6aec2 100644 --- a/tools/perf/util/symbol.c +++ b/tools/perf/util/symbol.c | |||
@@ -535,6 +535,10 @@ static int dso__load_sym(struct dso *self, int fd, const char *name, | |||
535 | gelf_getshdr(sec, &shdr); | 535 | gelf_getshdr(sec, &shdr); |
536 | obj_start = sym.st_value; | 536 | obj_start = sym.st_value; |
537 | 537 | ||
538 | if (verbose >= 2) | ||
539 | printf("adjusting symbol: st_value: %Lx sh_addr: %Lx sh_offset: %Lx\n", | ||
540 | (u64)sym.st_value, (u64)shdr.sh_addr, (u64)shdr.sh_offset); | ||
541 | |||
538 | sym.st_value -= shdr.sh_addr - shdr.sh_offset; | 542 | sym.st_value -= shdr.sh_addr - shdr.sh_offset; |
539 | 543 | ||
540 | f = symbol__new(sym.st_value, sym.st_size, | 544 | f = symbol__new(sym.st_value, sym.st_size, |