GELF_GETSHDR(3) | Library Functions Manual | GELF_GETSHDR(3) |
elf32_getshdr
, elf64_getshdr
,
gelf_getshdr
—
#include <libelf.h>
Elf32_Shdr *
elf32_getshdr
(Elf_Scn
*scn);
Elf64_Shdr *
elf64_getshdr
(Elf_Scn
*scn);
#include
<gelf.h>
GElf_Shdr *
gelf_getshdr
(Elf_Scn
*scn, GElf_Shdr
*shdr);
Function elf32_getshdr
() retrieves a
pointer to an Elf32_Shdr structure. Section descriptor
scn must be associated with an ELF descriptor of class
ELFCLASS32
.
Function elf64_getshdr
() retrieves a
pointer to an Elf64_Shdr structure. Section descriptor
scn must be associated with an ELF descriptor of class
ELFCLASS64
.
Function gelf_getshdr
() copies the values
in the section header associated with argument scn to
the structure pointed to be argument dst. The
GElf_Shdr data structure is described in
gelf(3).
elf32_getshdr
() and
elf64_getshdr
() return a valid pointer to the
appropriate section header on success or NULL if an error was encountered.
Function gelf_getshdr
() returns argument
dst if successful, or NULL if an error was
encountered.
ELF_E_ARGUMENT
]ELF_E_ARGUMENT
]ELF_E_CLASS
]August 27, 2006 | NetBSD 9.2 |