gelf_getshdr3
Retrieve a section header into a class-independent structure
Usage
#include <gelf.h> GElf_Shdr *gelf_getshdr(Elf_Scn *scn, GElf_Shdr *dst);
Overview
gelf_getshdr() retrieves the section header associated with the section descriptor scn, translating it into the class-independent GElf_Shdr representation. The header is copied into the structure referenced by dst.
Parameters
scn
|
Pointer to a section descriptor of type |
|---|---|
dst
|
Pointer to a caller-provided |
Return value
On success, gelf_getshdr() stores the section header in dst and returns dst. On failure, NULL is returned and elf_errno is set. If scn is NULL then NULL is returned without setting elf_errno.
Attributes
| Interface | Attribute | Value |
| gelf_getshdr() | Thread safety | MT-Safe |