summaryrefslogtreecommitdiff
path: root/src/objdump.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/objdump.c')
-rw-r--r--src/objdump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/objdump.c b/src/objdump.c
index af8abf78..1234c794 100644
--- a/src/objdump.c
+++ b/src/objdump.c
@@ -739,7 +739,7 @@ handle_elf (Elf *elf, const char *prefix, const char *fname,
/* Get the section header string table index. */
size_t shstrndx;
- if (elf_getshstrndx (ebl->elf, &shstrndx) < 0)
+ if (elf_getshdrstrndx (ebl->elf, &shstrndx) < 0)
error (EXIT_FAILURE, 0,
gettext ("cannot get section header string table index"));