aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorNicolas Pitre <nicolas.pitre@linaro.org>2011-10-11 16:31:39 -0400
committerNicolas Pitre <nicolas.pitre@linaro.org>2011-10-11 16:31:39 -0400
commit051c523bc96d0c6d301fa5258f10d7a564ad43a2 (patch)
tree052219ade730f2985f8b5cb7591300acee315cb8 /tools
parent78ba6223a14eac73a1fbfc35bd456348171bffc6 (diff)
parent65c867f20173adf7f0f39cb0cdcaaf01ddc63260 (diff)
Merge commit 'v3.0.5' into linaro-3.0
Diffstat (limited to 'tools')
-rw-r--r--tools/perf/util/symbol.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/util/symbol.c b/tools/perf/util/symbol.c
index eec196329fd..40fd1c7c38a 100644
--- a/tools/perf/util/symbol.c
+++ b/tools/perf/util/symbol.c
@@ -1111,6 +1111,8 @@ static int dso__load_sym(struct dso *dso, struct map *map, const char *name,
}
opdsec = elf_section_by_name(elf, &ehdr, &opdshdr, ".opd", &opdidx);
+ if (opdshdr.sh_type != SHT_PROGBITS)
+ opdsec = NULL;
if (opdsec)
opddata = elf_rawdata(opdsec, NULL);