elf_getshdr(3E)elf_getshdr(3E)NAME
elf32_getshdr, elf64_getshdr - retrieve class-dependent section header
for elf32 and elf64 files, respectively
SYNOPSIS
[flag... ] file... [library] ...
DESCRIPTION
For a 32-bit class file, returns a pointer to a section header for the
section descriptor scn. Otherwise, the file is not a 32-bit class
file, scn was null, or an error occurred; then returns NULL. The
header includes the following members.
For a 64-bit class file, returns a pointer to a section header for the
section descriptor scn. Otherwise, the file is not a 64-bit class
file, scn was null, or an error occurred; then returns NULL. The
header includes the following members.
If the program is building a new file, it is responsible for creating
the file's ELF header before creating sections.
SEE ALSOelf(3E), elf_flag(3E), elf_getscn(3E), elf_strptr(3E).
elf_getshdr(3E)