These functions return a pointer to the ELF Section Header data structure associated with section descriptor
scn.
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).