summaryrefslogtreecommitdiffstats
path: root/src/size.c
diff options
context:
space:
mode:
authorPetr Machata <pmachata@redhat.com>2009-06-16 15:22:04 +0200
committerPetr Machata <pmachata@redhat.com>2009-06-16 15:22:04 +0200
commit9e38b7374a0b9cb7aa77c2ad8afe5aac7182d337 (patch)
treeca307d5078971fdef16f324e8ffd32b25ddd0df1 /src/size.c
parent77abb31cb8d55980ef92260917a7ecdd228b1a44 (diff)
parent99d2372b25d1231d786b70278478c7a112f2b27c (diff)
Merge branch 'master' of ssh://pmachata@git.fedorahosted.org/git/elfutils into pmachata/reader_hooksupstream/pmachata/reader_hooks
Diffstat (limited to 'src/size.c')
-rw-r--r--src/size.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/size.c b/src/size.c
index 4698c350..d3dc1fe5 100644
--- a/src/size.c
+++ b/src/size.c
@@ -420,7 +420,7 @@ show_sysv (Elf *elf, const char *prefix, const char *fname,
/* Get the section header string table index. */
size_t shstrndx;
- if (unlikely (elf_getshstrndx (elf, &shstrndx) < 0))
+ if (unlikely (elf_getshdrstrndx (elf, &shstrndx) < 0))
error (EXIT_FAILURE, 0,
gettext ("cannot get section header string table index"));
@@ -494,7 +494,7 @@ show_sysv_one_line (Elf *elf)
{
/* Get the section header string table index. */
size_t shstrndx;
- if (unlikely (elf_getshstrndx (elf, &shstrndx) < 0))
+ if (unlikely (elf_getshdrstrndx (elf, &shstrndx) < 0))
error (EXIT_FAILURE, 0,
gettext ("cannot get section header string table index"));