summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2018-07-27 14:43:15 +0200
committerMark Wielaard <mark@klomp.org>2018-07-27 14:43:19 +0200
commit7df3138246193c5d72b53fe789457114ecf071cb (patch)
tree43f745b42be6918e1e28bdc18dec8bc179e67c5e
parent9718c94bbce0dabe0ce048efa3a2a6d1ea08bce5 (diff)
libelf: Fix documentation of elf_getshdrstrndx and elf_getshstrndx.
Because of copy/paste error part of the documentation for elf_getshdrstrndx and elf_getshstrndx was actually for elf_getshdrnum and elf_getshnum. Fix it to refer to the proper ehdr field and deprecated function name. Signed-off-by: Mark Wielaard <mark@klomp.org>
-rw-r--r--libelf/ChangeLog5
-rw-r--r--libelf/libelf.h8
2 files changed, 9 insertions, 4 deletions
diff --git a/libelf/ChangeLog b/libelf/ChangeLog
index 91d9b472..744c5b4d 100644
--- a/libelf/ChangeLog
+++ b/libelf/ChangeLog
@@ -1,3 +1,8 @@
+2018-07-27 Mark Wielaard <mark@klomp.org>
+
+ * libelf.h (elf_getshdrstrndx): Fix documentation.
+ (elf_getshstrndx): Likewise.
+
2018-06-19 Mark Wielaard <mark@klomp.org>
* libelfP.h (__libelf_type_align): Remove !ALLOW_UNALIGNED guard.
diff --git a/libelf/libelf.h b/libelf/libelf.h
index 547c0f50..61f19231 100644
--- a/libelf/libelf.h
+++ b/libelf/libelf.h
@@ -310,13 +310,13 @@ extern int elf_getshnum (Elf *__elf, size_t *__dst)
/* Get the section index of the section header string table in the ELF
- file. If the index cannot be represented in the e_shnum field of
+ file. If the index cannot be represented in the e_shstrndx field of
the ELF header the information from the sh_link field in the zeroth
section header is used. */
extern int elf_getshdrstrndx (Elf *__elf, size_t *__dst);
-/* Sun messed up the implementation of 'elf_getshnum' in their implementation.
- It was agreed to make the same functionality available under a different
- name and obsolete the old name. */
+/* Sun messed up the implementation of 'elf_getshstrndx' in their
+ implementation. It was agreed to make the same functionality available
+ under a different name and obsolete the old name. */
extern int elf_getshstrndx (Elf *__elf, size_t *__dst)
__deprecated_attribute__;