commit | 074f68fb8f57f93de3d94552a855b296b7a25906 | [log] [tgz] |
---|---|---|
author | Petr Machata <pmachata@redhat.com> | Sat Apr 07 01:01:02 2012 +0200 |
committer | Petr Machata <pmachata@redhat.com> | Thu Apr 19 01:38:02 2012 +0200 |
tree | 80a27e27050af986affc63f1261e4a4e6fcba607 | |
parent | 5bc4e7f76ee06920700ac77ec96a3686951e9ae3 [diff] [blame] |
Read from passed-in symbol table, not from .symtab
diff --git a/ltrace-elf.c b/ltrace-elf.c index c8da4b4..60d3851 100644 --- a/ltrace-elf.c +++ b/ltrace-elf.c
@@ -541,7 +541,7 @@ size_t i; for (i = 0; i < size; ++i) { GElf_Sym sym; - if (gelf_getsym(lte->symtab, i, &sym) == NULL) { + if (gelf_getsym(symtab, i, &sym) == NULL) { fail: error(0, errno, "couldn't get symbol #%zd from %s: %s", i, filename, elf_errmsg(-1));