summaryrefslogtreecommitdiffstats
path: root/libdwfl/dwfl_module_getdwarf.c
diff options
context:
space:
mode:
authorPetr Machata <[email protected]>2009-06-16 15:22:04 +0200
committerPetr Machata <[email protected]>2009-06-16 15:22:04 +0200
commit9e38b7374a0b9cb7aa77c2ad8afe5aac7182d337 (patch)
treeca307d5078971fdef16f324e8ffd32b25ddd0df1 /libdwfl/dwfl_module_getdwarf.c
parent77abb31cb8d55980ef92260917a7ecdd228b1a44 (diff)
parent99d2372b25d1231d786b70278478c7a112f2b27c (diff)
Merge branch 'master' of ssh://[email protected]/git/elfutils into pmachata/reader_hooksupstream/pmachata/reader_hooks
Diffstat (limited to 'libdwfl/dwfl_module_getdwarf.c')
-rw-r--r--libdwfl/dwfl_module_getdwarf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdwfl/dwfl_module_getdwarf.c b/libdwfl/dwfl_module_getdwarf.c
index 06cb4917..f48fabe7 100644
--- a/libdwfl/dwfl_module_getdwarf.c
+++ b/libdwfl/dwfl_module_getdwarf.c
@@ -148,7 +148,7 @@ static const char *
find_debuglink (Elf *elf, GElf_Word *crc)
{
size_t shstrndx;
- if (elf_getshstrndx (elf, &shstrndx) < 0)
+ if (elf_getshdrstrndx (elf, &shstrndx) < 0)
return NULL;
Elf_Scn *scn = NULL;