5 NAME
6 elf32_checksum, elf64_checksum - return checksum of elf image
7
8 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
18 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
31 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
45 SEE ALSO
|
5 NAME
6 elf32_checksum, elf64_checksum - return checksum of elf image
7
8 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
18 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 calculate 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
31 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
45 SEE ALSO
|