table of contents
- trixie 0.192-4
- trixie-backports 0.193-3~bpo13+1
- testing 0.193-3
- unstable 0.193-3
| ELF32_OFFSCN(3) | Libelf Programmer's Manual | ELF32_OFFSCN(3) |
NAME¶
elf32_offscn - retrieve a section descriptor by file offset for a 32-bit ELF file
SYNOPSIS¶
#include <libelf.h>
Elf_Scn *elf32_offscn(Elf *elf, off_t offset);
DESCRIPTION¶
The elf32_offscn function retrieves the section descriptor for the non-empty section at the specified file offset in the ELF32 object referred to by elf.
PARAMETERS¶
RETURN VALUE¶
The elf32_offscn function returns a pointer to the Elf_Scn of the non-empty section with a sh_offset matching offset. 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).
| Interface | Attribute | Value |
| elf32_offscn () | Thread safety | MT-Safe |
SEE ALSO¶
REPORTING BUGS¶
Report bugs to <elfutils-devel@sourceware.org> or https://sourceware.org/bugzilla/.
HISTORY¶
elf32_offscn first appeared in elfutils 0.112. This elfutils libelf function may not be found in other libelf implementations.
| 2024-07-18 | Libelf |