The
elf_version()
function is used to query the current operating version of the ELF
library, and to inform the ELF library about the application's desired
operating version.
If the argument
version
is
EV_NONE,
the
elf_version()
function returns the currently configured operating version for the
ELF library.
If the argument
version
is not
EV_NONE,
and if argument
version
is supported by the ELF library, function
elf_version()
sets the library's operating version to
version,
and returns the previous value of the operating version.
If argument
version
cannot be supported, then the
elf_version()
function returns
EV_NONE.