summaryrefslogtreecommitdiffstats
path: root/src/nm.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 /src/nm.c
parent77abb31cb8d55980ef92260917a7ecdd228b1a44 (diff)
parent99d2372b25d1231d786b70278478c7a112f2b27c (diff)
Merge branch 'master' of ssh://[email protected]/git/elfutils into pmachata/reader_hooksupstream/pmachata/reader_hooks
Diffstat (limited to 'src/nm.c')
-rw-r--r--src/nm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nm.c b/src/nm.c
index 8833948a..01519a5a 100644
--- a/src/nm.c
+++ b/src/nm.c
@@ -724,7 +724,7 @@ show_symbols_sysv (Ebl *ebl, GElf_Word strndx,
int longest_where)
{
size_t shnum;
- if (elf_getshnum (ebl->elf, &shnum) < 0)
+ if (elf_getshdrnum (ebl->elf, &shnum) < 0)
INTERNAL_ERROR (fullname);
bool scnnames_malloced = shnum * sizeof (const char *) > 128 * 1024;
@@ -735,7 +735,7 @@ show_symbols_sysv (Ebl *ebl, GElf_Word strndx,
scnnames = (const char **) alloca (sizeof (const char *) * shnum);
/* 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"));
@@ -997,7 +997,7 @@ show_symbols (Ebl *ebl, GElf_Ehdr *ehdr, Elf_Scn *scn, Elf_Scn *xndxscn,
{
/* 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"));