elf_end(3E)

elf_end - Finish using an object file

As shipped in IRIX 6.5.7. Last changed in IRIX 6.5.5.

NAME
     elf_end - Finish using an object file

SYNOPSIS
     cc [flag ...] file ...  -lelf [library ...]

     #include <libelf.h>

     int elf_end(Elf *elf);

IMPLEMENTATION
     IRIX systems

DESCRIPTION
     elf_end terminates an ELF descriptor, elf, in a program and
     deallocates data associated with the descriptor.  Until the program
     terminates a descriptor, the data remains allocated.  elf should be a
     value previously returned by elf_begin; a null pointer is allowed as
     an argument, to simplify error handling.  If the program is to write
     data associated with the ELF descriptor to the file, specify
     elf_update before calling elf_end.

     A descriptor can have more than one activation (see the elf_begin(3E)
     man page).  Calling elf_end removes one activation and returns the
     remaining activation count.  The library does not terminate the
     descriptor until the activation count reaches zero.  Consequently, a
     zero return value indicates that the ELF descriptor is no longer
     valid.

SEE ALSO
     elf(3E), elf_begin(3E), elf_update(3E)

     This man page is available only online.