Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 323709
b: refs/heads/master
c: f47b58b
h: refs/heads/master
i:
  323707: d889645
v: v3
  • Loading branch information
David Ahern authored and Arnaldo Carvalho de Melo committed Aug 20, 2012
1 parent cc0cc46 commit b1abda6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1c09bf4a79e808c13c02d4ca8221fb2957bf3ccb
refs/heads/master: f47b58b75f5e2a424834eb15f7565a7458a12f44
1 change: 1 addition & 0 deletions trunk/tools/perf/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,7 @@ PYRF_OBJS += $(OUTPUT)util/xyarray.o
ifdef NO_LIBELF
NO_DWARF := 1
NO_DEMANGLE := 1
NO_LIBUNWIND := 1
else
FLAGS_LIBELF=$(ALL_CFLAGS) $(ALL_LDFLAGS) $(EXTLIBS)
ifneq ($(call try-cc,$(SOURCE_LIBELF),$(FLAGS_LIBELF)),y)
Expand Down
3 changes: 3 additions & 0 deletions trunk/tools/perf/util/symbol-elf.c
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,9 @@ int dso__synthesize_plt_symbols(struct dso *dso, struct symsrc *ss, struct map *
Elf *elf;
int nr = 0, symidx, err = 0;

if (!ss->dynsym)
return 0;

elf = ss->elf;
ehdr = ss->ehdr;

Expand Down
2 changes: 1 addition & 1 deletion trunk/tools/perf/util/symbol.c
Original file line number Diff line number Diff line change
Expand Up @@ -1125,7 +1125,7 @@ int dso__load(struct dso *dso, struct map *map, symbol_filter_t filter)
else
ret = -1;

if (ret > 0 && runtime_ss->dynsym) {
if (ret > 0) {
int nr_plt;

nr_plt = dso__synthesize_plt_symbols(dso, runtime_ss, map, filter);
Expand Down

0 comments on commit b1abda6

Please sign in to comment.