| Main index | Section 3 | Options |
#include <libelf.h>
#include <gelf.h>
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).
Function gelf_getshdr() returns argument dst if successful, or NULL if an error was encountered.
| [ELF_E_ARGUMENT] | |
| Arguments scn or shdr were NULL. | |
| [ELF_E_ARGUMENT] | |
| Argument scn was not associated a descriptor for an ELF object. | |
| [ELF_E_CLASS] | The ELF class associated with the section descriptor scn did not match the class expected by the API. |
| GELF_GETSHDR (3) | August 27, 2006 |
| Main index | Section 3 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
| “ | The most horrifying thing about Unix is that, no matter how many times you hit yourself over the head with it, you never quite manage to lose consciousness. It just goes on and on. | ” |
| — Patrick Sobalvarro | ||