Man page - elf_getscn(3)
Packages contains this manual
- elf64_getphdr(3)
- elf_begin(3)
- elf32_newphdr(3)
- elf64_getshdr(3)
- elf_clone(3)
- elf32_xlatetom(3)
- elf32_getehdr(3)
- libelf(3)
- elf32_getshdr(3)
- elf_errno(3)
- elf32_fsize(3)
- elf_version(3)
- elf_update(3)
- elf_getdata(3)
- elf64_xlatetom(3)
- elf64_fsize(3)
- elf64_checksum(3)
- elf64_newphdr(3)
- elf32_getphdr(3)
- elf64_newehdr(3)
- elf_ndxscn(3)
- elf64_getchdr(3)
- elf32_xlatetof(3)
- elf32_newehdr(3)
- elf32_offscn(3)
- elf64_xlatetof(3)
- elf_errmsg(3)
- elf_getscn(3)
- elf32_getchdr(3)
- elf64_getehdr(3)
- elf64_offscn(3)
- elf32_checksum(3)
apt-get install libelf-dev
Manual
ELF_GETSCN
NAMESYNOPSIS
DESCRIPTION
PARAMETERS
RETURN VALUE
ATTRIBUTES
SEE ALSO
REPORTING BUGS
NAME
elf_getscn - retrieve a descriptor for an ELF section at a specified index.
SYNOPSIS
#include <libelf.h>
Elf_Scn *elf_getscn(Elf * elf , size_t index );
DESCRIPTION
The elf_getscn function retrieves a section descriptor for the section at the specified index in the ELF object referred to by elf.
PARAMETERS
|
elf |
An Elf pointer to the ELF object from which the section descriptor is to be retrieved. |
||
|
index |
A size_t value representing the index of the section whose descriptor is to be retrieved. Section indices start at 0. The section at index 0 is always SHT_NULL and does not contain any data. |
RETURN VALUE
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.
ATTRIBUTES
For an explanation of the terms used in this section, see attributes (7).
SEE ALSO
elf_errno (3), libelf (3), elf (5)
REPORTING BUGS
Report bugs to <elfutils-devel@sourceware.org> or https://sourceware.org/bugzilla/.