summaryrefslogtreecommitdiffstats
path: root/libdwfl/derelocate.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdwfl/derelocate.c')
-rw-r--r--libdwfl/derelocate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdwfl/derelocate.c b/libdwfl/derelocate.c
index c300f84b..56ba25af 100644
--- a/libdwfl/derelocate.c
+++ b/libdwfl/derelocate.c
@@ -94,7 +94,7 @@ cache_sections (Dwfl_Module *mod)
size_t nrefs = 0;
size_t shstrndx;
- if (unlikely (elf_getshstrndx (mod->main.elf, &shstrndx) < 0))
+ if (unlikely (elf_getshdrstrndx (mod->main.elf, &shstrndx) < 0))
{
elf_error:
__libdwfl_seterrno (DWFL_E_LIBELF);