ELF_GETSCN(3) | Libelf Programmer's Manual | ELF_GETSCN(3) |
elf_getscn - retrieve a descriptor for an ELF section at a specified index.
#include <libelf.h>
Elf_Scn *elf_getscn(Elf *elf, size_t index);
The elf_getscn function retrieves a section descriptor for the section at the specified index in the ELF object referred to by elf.
The elf_getscn function returns a pointer to the Elf_Scn for the section at the specified index. If an error occurs, it returns NULL and sets an appropriate libelf error code.
For an explanation of the terms used in this section, see attributes(7).
Interface | Attribute | Value |
elf_getscn () | Thread safety | MT-Safe |
elf_errno(3), libelf(3), elf(5)
Report bugs to <elfutils-devel@sourceware.org> or https://sourceware.org/bugzilla/.
2024-07-18 | Libelf |