| Main index | Section 3 | Options |
#include <libelf.h>
#include <gelf.h>
Function elf32_getchdr() retrieves a pointer to an Elf32_Chdr structure. Section descriptor scn must be associated with an ELF descriptor of class ELFCLASS32.
Function elf64_getchdr() retrieves a pointer to an Elf64_Chdr structure. Section descriptor scn must be associated with an ELF descriptor of class ELFCLASS64.
Function gelf_getchdr() copies the values in the compression header associated with argument scn to the structure pointed to be argument dst. The GElf_Chdr data structure is described in gelf(3).
Function gelf_getchdr() returns argument dst if successful, or NULL if an error was encountered.
| [ELF_E_INVALID_SECTION_FLAGS] | |
| Arguments scn has invalid flags. | |
| [ELF_E_INVALID_SECTION_TYPE] | |
| Argument scn has invalid type. | |
| [ELF_E_NOT_COMPRESSED] | |
| Argument scn is not compressed. | |
| GELF_GETCHDR (3) | October 23, 2020 |
| Main index | Section 3 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
| “ | Ken Thompson has an automobile which he helped design. Unlike most automobiles, it has neither speedometer, nor gas gauge, nor any of the other numerous idiot lights which plague the modern driver. Rather, if the driver makes a mistake, a giant “?” lights up in the center of the dashboard. “The experienced driver,” says Thompson, “will usually know what's wrong.” | ” |