logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

elf_ndxscn - retrieve the index of a descriptor for an ELF file section

Attributes

For an explanation of the terms used in this section, see attributes(7). ┌─────────────────────────────────────────────────────────────────────────────┬───────────────┬─────────┐ │ InterfaceAttributeValue │ ├─────────────────────────────────────────────────────────────────────────────┼───────────────┼─────────┤ │ elf_ndxscn() │ Thread safety │ MT-Safe │ └─────────────────────────────────────────────────────────────────────────────┴───────────────┴─────────┘

Description

The elf_ndxscn function retrieves the index of the section descriptor referred to by scn.

Name

elf_ndxscn - retrieve the index of a descriptor for an ELF file section

Parameters

scn An Elf_Scn pointer to the section descriptor whose index is to be retrieved.

Reporting Bugs

Report bugs to <elfutils-devel@sourceware.org> or https://sourceware.org/bugzilla/. Libelf 2024-07-18 ELF_NDXSCN(3)

Return Value

The elf_ndxscn function returns the index of the section descriptor. If scn is NULL, it returns SHN_UNDEF.SHN_UNDEF is zero.

See Also

libelf(3), elf(5)

Synopsis

#include<libelf.h>size_telf_ndxscn(Elf_Scn*scn);

See Also