summaryrefslogtreecommitdiff
path: root/usr/src/man/man3lib/libelf.3lib
blob: a2eac6109bcbe69fe62537a67304eeb597446e33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
'\" te
.\" Copyright (c) 2009, Sun Microsystems, Inc.  All Rights Reserved.
.\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License. You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.
.\"  See the License for the specific language governing permissions and limitations under the License. When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with
.\" the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
.TH LIBELF 3LIB "Jun 18, 2009"
.SH NAME
libelf \- ELF access library
.SH SYNOPSIS
.LP
.nf
cc [ \fIflag\fR... ] \fIfile\fR... \fB-lelf\fR [ \fIlibrary\fR... ]
#include <\fBlibelf.h\fR>
.fi

.SH DESCRIPTION
.sp
.LP
Functions in this library provide routines to manipulate \fBELF\fR (Executable
and Linking Format) object files, archive files, and archive members. The
header provides type and function declarations for all library services.
.SH INTERFACES
.sp
.LP
The shared object \fBlibelf.so.1\fR provides the public interfaces defined
below. See \fBIntro\fR(3) for additional information on shared object
interfaces.
.sp

.sp
.TS
l l
l l .
\fBelf32_checksum\fR	\fBelf32_fsize\fR
\fBelf32_getehdr\fR	\fBelf32_getphdr\fR
\fBelf32_getshdr\fR	\fBelf32_newehdr\fR
\fBelf32_newphdr\fR	\fBelf32_xlatetof\fR
\fBelf32_xlatetom\fR	\fBelf64_checksum\fR
\fBelf64_fsize\fR	\fBelf64_getehdr\fR
\fBelf64_getphdr\fR	\fBelf64_getshdr\fR
\fBelf64_newehdr\fR	\fBelf64_newphdr\fR
\fBelf64_xlatetof\fR	\fBelf64_xlatetom\fR
\fBelf_begin\fR	\fBelf_cntl\fR
\fBelf_end\fR	\fBelf_errmsg\fR
\fBelf_errno\fR	\fBelf_fill\fR
\fBelf_flagdata\fR	\fBelf_flagehdr\fR
\fBelf_flagelf\fR	\fBelf_flagphdr\fR
\fBelf_flagscn\fR	\fBelf_flagshdr\fR
\fBelf_getarhdr\fR	\fBelf_getarsym\fR
\fBelf_getbase\fR	\fBelf_getdata\fR
\fBelf_getident\fR	\fBelf_getphdrnum\fR
\fBelf_getphnum\fR	\fBelf_getscn\fR
\fBelf_getshdrnum\fR	\fBelf_getshdrstrndx\fR
\fBelf_getshnum\fR	\fBelf_getshstrndx\fR
\fBelf_hash\fR	\fBelf_kind\fR
\fBelf_memory\fR	\fBelf_ndxscn\fR
\fBelf_newdata\fR	\fBelf_newscn\fR
\fBelf_next\fR	\fBelf_nextscn\fR
\fBelf_rand\fR	\fBelf_rawdata\fR
\fBelf_rawfile\fR	\fBelf_strptr\fR
\fBelf_update\fR	\fBelf_version\fR
\fBgelf_checksum\fR	\fBgelf_fsize\fR
\fBgelf_getcap\fR	\fBgelf_getclass\fR
\fBgelf_getdyn\fR	\fBgelf_getehdr\fR
\fBgelf_getmove\fR	\fBgelf_getphdr\fR
\fBgelf_getrel\fR	\fBgelf_getrela\fR
\fBgelf_getshdr\fR	\fBgelf_getsym\fR
\fBgelf_getsyminfo\fR	\fBgelf_getsymshndx\fR
\fBgelf_newehdr\fR	\fBgelf_newphdr\fR
\fBgelf_update_cap\fR	\fBgelf_update_dyn\fR
\fBgelf_update_ehdr\fR	\fBgelf_update_move\fR
\fBgelf_update_phdr\fR	\fBgelf_update_rel\fR
\fBgelf_update_rela\fR	\fBgelf_update_shdr\fR
\fBgelf_update_sym\fR	\fBgelf_update_symshndx\fR
\fBgelf_update_syminfo\fR	\fBgelf_xlatetof\fR
\fBgelf_xlatetom\fR	\fBnlist\fR
.TE

.SH FILES
.sp
.ne 2
.na
\fB\fB/lib/libelf.so.1\fR\fR
.ad
.RS 23n
shared object
.RE

.sp
.ne 2
.na
\fB\fB/lib/64/libelf.so.1\fR\fR
.ad
.RS 23n
64-bit shared object
.RE

.SH ATTRIBUTES
.sp
.LP
See \fBattributes\fR(7) for descriptions of the following attributes:
.sp

.sp
.TS
box;
c | c
l | l .
ATTRIBUTE TYPE	ATTRIBUTE VALUE
_
MT-Level	Safe
.TE

.SH SEE ALSO
.sp
.LP
.BR pvs (1),
.BR Intro (3),
.BR elf (3ELF),
.BR gelf (3ELF),
.BR attributes (7)