1elf32_checksum(3ELF)         ELF Library Functions        elf32_checksum(3ELF)
2
3
4

NAME

6       elf32_checksum, elf64_checksum - return checksum of elf image
7

SYNOPSIS

9       cc [ flag ... ] file ... -lelf [ library ... ]
10       #include <libelf.h>
11
12       long elf32_checksum(Elf *elf);
13
14
15       long elf64_checksum(Elf *elf);
16
17

DESCRIPTION

19       The  elf32_checksum()  function  returns  a simple checksum of selected
20       sections of the image identified by elf. The value is typically used as
21       the  .dynamic  tag  DT_CHECKSUM,  recorded  in  dynamic executables and
22       shared objects.
23
24
25       Selected sections of the image are used to calcluate  the  checksum  in
26       order that its value is not affected by utilities such as strip(1).
27
28
29       For the 64−bit class, replace 32 with 64 as appropriate.
30

ATTRIBUTES

32       See attributes(5) for descriptions of the following attributes:
33
34
35
36
37       ┌─────────────────────────────┬─────────────────────────────┐
38       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
39       ├─────────────────────────────┼─────────────────────────────┤
40       │Interface Stability          │Stable                       │
41       ├─────────────────────────────┼─────────────────────────────┤
42       │MT-Level                     │MT-Safe                      │
43       └─────────────────────────────┴─────────────────────────────┘
44

SEE ALSO

46       elf(3ELF), elf_version(3ELF), gelf(3ELF), libelf(3LIB), attributes(5)
47
48
49
50SunOS 5.11                        11 Jul 2001             elf32_checksum(3ELF)
Impressum