ELF Library Functions elf32_checksum(3ELF)
NAME
elf32_checksum, elf64_checksum - return checksum of elf
imageSYNOPSIS
cc [ flag ... ] file ... -lelf [ library ... ]
#include
long elf32_checksum(Elf *elf);
long elf64_checksum(Elf *elf);
DESCRIPTION
The elf32_checksum() function returns a simple checksum of
selected sections of the image identified by elf. The valueis typically used as the .dynamic tag DT_CHECKSUM, recorded
in dynamic executables and shared objects. Selected sections of the image are used to calcluate thechecksum in order that its value is not affected by utili-
ties such as strip(1).For the 64-bit class, replace 32 with 64 as appropriate.
ATTRIBUTES
See attributes(5) for descriptions of the following attri-
butes:____________________________________________________________
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|_____________________________|_____________________________|
| Interface Stability | Committed ||_____________________________|_____________________________|
| MT-Level | MT-Safe |
|_____________________________|_____________________________|
SEE ALSO
elf(3ELF), elf_version(3ELF), gelf(3ELF), libelf(3LIB),
attributes(5)SunOS 5.11 Last change: 11 Jul 2001 1