elf_version - set the ELF version for libelf.
Contents
Description
The elf_version function sets libelf's ELF version to the specified value. This function must be called
before any other libelf functions are used.
Name
elf_version - set the ELF version for libelf.
Parameters
version
An unsignedint value specifying the desired ELF version for the library. This is should be set
to EV_CURRENT to indicate the current ELF version. At this time the only supported ELF version is
EV_CURRENT.
Reporting Bugs
Report bugs to <elfutils-devel@sourceware.org> or https://sourceware.org/bugzilla/.
Libelf 2024-06-26 ELF_VERSION(3)
Return Value
The elf_version function returns EV_CURRENT if version is supported and sets the library's ELF version to
this value. If the given version is EV_NONE, then this function returns EV_CURRENT and does not set the
library's ELF version. If the specified version is not supported, this function returns EV_NONE.
Synopsis
#include<libelf.h>unsignedintelf_version(unsignedintversion);
