xref: /titanic_50/usr/src/cmd/sgs/liblddbg/common/llib-llddbg (revision e127a3e717f822eb855235fa3bd08235b2cf533d)
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
12 *
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21/* LINTLIBRARY */
22/* PROTOLIB1 */
23
24/*
25 * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
26 * Use is subject to license terms.
27 */
28
29#pragma ident	"%Z%%M%	%I%	%E% SMI"
30
31#include <sys/types.h>
32#include <sys/auxv.h>
33#include <debug.h>
34
35uintptr_t
36	Dbg_setup(const char *, Dbg_desc *);
37const char *
38	Dbg_demangle_name(const char *);
39
40void	Dbg_args_files(Lm_list *, int, char *);
41void	Dbg_args_flags(Lm_list *, int, int);
42void	Dbg_audit_interface(Lm_list *, const char *, const char *);
43void	Dbg_audit_lib(Lm_list *, const char *);
44void	Dbg_audit_object(Lm_list *, const char *, const char *);
45void	Dbg_audit_symval(Lm_list *, const char *, const char *, const char *,
46	    Addr, Addr);
47void	Dbg_audit_skip(Lm_list *, const char *, const char *);
48void	Dbg_audit_version(Lm_list *, const char *, ulong_t);
49
50void	Dbg_tls_modactivity(Lm_list *, void *, uint_t);
51void	Dbg_tls_static_block(Lm_list *, void *, ulong_t, ulong_t);
52void	Dbg_tls_static_resv(Rt_map *, ulong_t, ulong_t);
53
54void	Dbg32_bind_global(Rt_map *, Elf32_Addr, Elf32_Off, Elf32_Word,
55	    Pltbindtype, Rt_map *, Elf32_Addr, Elf32_Off, const char *, uint_t);
56void	Dbg64_bind_global(Rt_map *, Elf64_Addr, Elf64_Off, Elf64_Xword,
57	    Pltbindtype, Rt_map *, Elf64_Addr, Elf64_Off, const char *, uint_t);
58void	Dbg64_bind_pltpad_to(Rt_map *, Addr, const char *, const char *);
59void	Dbg64_bind_pltpad_from(Rt_map *, Addr, const char *);
60void	Dbg32_bind_weak(Rt_map *, Elf32_Addr, Elf32_Addr, const char *);
61void	Dbg64_bind_weak(Rt_map *, Elf64_Addr, Elf64_Addr, const char *);
62
63void	Dbg32_cap_hw_candidate(Lm_list *, const char *);
64void	Dbg64_cap_hw_candidate(Lm_list *, const char *);
65void	Dbg32_cap_hw_filter(Lm_list *, const char *, Rt_map *);
66void	Dbg64_cap_hw_filter(Lm_list *, const char *, Rt_map *);
67void	Dbg32_cap_mapfile(Lm_list *, Elf32_Word, Elf32_Word, Elf32_Half);
68void	Dbg64_cap_mapfile(Lm_list *, Elf64_Xword, Elf64_Xword, Elf64_Half);
69void	Dbg32_cap_sec_entry(Lm_list *, uint_t, Elf32_Word, Elf32_Word,
70	    Elf32_Half);
71void	Dbg64_cap_sec_entry(Lm_list *, uint_t, Elf64_Xword, Elf64_Xword,
72	    Elf64_Half);
73void	Dbg32_cap_sec_title(Ofl_desc *);
74void	Dbg64_cap_sec_title(Ofl_desc *);
75void	Dbg32_cap_val_hw1(Lm_list *, Elf32_Word, Elf32_Half);
76void	Dbg64_cap_val_hw1(Lm_list *, Elf64_Xword, Elf64_Half);
77
78void	Dbg32_ent_print(Lm_list *, Elf32_Half, List *, Boolean);
79void	Dbg64_ent_print(Lm_list *, Elf64_Half, List *, Boolean);
80
81void	Dbg32_file_analyze(Rt_map *);
82void	Dbg64_file_analyze64(Rt_map *);
83void	Dbg32_file_aout(Lm_list *, const char *, ulong_t, ulong_t, ulong_t,
84	    const char *, Aliste);
85void	Dbg64_file_aout(Lm_list *, const char *, ulong_t, ulong_t, ulong_t,
86	    const char *, Aliste);
87void	Dbg32_file_archive(Lm_list *, const char *, int);
88void	Dbg64_file_archive(Lm_list *, const char *, int);
89void	Dbg32_file_bind_entry(Lm_list *, Bnd_desc *);
90void	Dbg64_file_bind_entry(Lm_list *, Bnd_desc *);
91void	Dbg32_file_bindings(Rt_map *, int);
92void	Dbg64_file_bindings(Rt_map *, int);
93void	Dbg32_file_config_dis(Lm_list *, const char *, int);
94void	Dbg64_file_config_dis(Lm_list *, const char *, int);
95void	Dbg32_file_config_obj(Lm_list *, const char *, const char *,
96	    const char *);
97void	Dbg64_file_config_obj(Lm_list *, const char *, const char *,
98	    const char *);
99void	Dbg32_file_cntl(Lm_list *, Aliste, Aliste);
100void	Dbg64_file_cntl(Lm_list *, Aliste, Aliste);
101void	Dbg32_file_cleanup(Lm_list *, const char *, Aliste);
102void	Dbg64_file_cleanup(Lm_list *, const char *, Aliste);
103void	Dbg32_file_del_rescan(Lm_list *);
104void	Dbg64_file_del_rescan(Lm_list *);
105void	Dbg32_file_delete(Rt_map *);
106void	Dbg64_file_delete(Rt_map *);
107void	Dbg32_file_dlclose(Lm_list *, const char *, int);
108void	Dbg64_file_dlclose(Lm_list *, const char *, int);
109void	Dbg32_file_dldump(Rt_map *, const char *, int);
110void	Dbg64_file_dldump(Rt_map *, const char *, int);
111void	Dbg32_file_dlopen(Rt_map *, const char *, int);
112void	Dbg64_file_dlopen(Rt_map *, const char *, int);
113void	Dbg32_file_elf(Lm_list *, const char *, ulong_t, ulong_t, ulong_t,
114	    ulong_t, const char *, Aliste);
115void	Dbg64_file_elf(Lm_list *, const char *, ulong_t, ulong_t, ulong_t,
116	    ulong_t, const char *, Aliste);
117void	Dbg32_file_filtee(Lm_list *, const char *, const char *, int);
118void	Dbg64_file_filtee(Lm_list *, const char *, const char *, int);
119void	Dbg32_file_filter(Lm_list *, const char *, const char *, int);
120void	Dbg64_file_filter(Lm_list *, const char *, const char *, int);
121void	Dbg64_file_fixname(Lm_list *, const char *, const char *);
122void	Dbg32_file_fixname(Lm_list *, const char *, const char *);
123void	Dbg32_file_hdl_action(Grp_hdl *, Rt_map *, int, uint_t);
124void	Dbg64_file_hdl_action(Grp_hdl *, Rt_map *, int, uint_t);
125void	Dbg32_file_hdl_collect(Grp_hdl *, const char *);
126void	Dbg64_file_hdl_collect(Grp_hdl *, const char *);
127void	Dbg32_file_hdl_title(int);
128void	Dbg64_file_hdl_title(int);
129void	Dbg64_file_lazyload(Rt_map *, const char *, const char *);
130void	Dbg32_file_lazyload(Rt_map *, const char *, const char *);
131void	Dbg32_file_ldso(Rt_map *, char **, auxv_t *, const char *, Aliste);
132void	Dbg64_file_ldso(Rt_map *, char **, auxv_t *, const char *, Aliste);
133void	Dbg32_file_mode_promote(Rt_map *, int);
134void	Dbg64_file_mode_promote(Rt_map *, int);
135void	Dbg32_file_modified(Lm_list *, const char *, const char *, const char *,
136	    int, int, Elf *, Elf *);
137void	Dbg64_file_modified(Lm_list *, const char *, const char *, const char *,
138	    int, int, Elf *, Elf *);
139void	Dbg32_file_needed(Rt_map *, const char *);
140void	Dbg64_file_needed(Rt_map *, const char *);
141void	Dbg32_file_output(Ofl_desc *);
142void	Dbg64_file_output64(Ofl_desc *);
143void	Dbg32_file_preload(Lm_list *, const char *);
144void	Dbg64_file_preload(Lm_list *, const char *);
145void	Dbg32_file_prot(Rt_map *, int);
146void	Dbg64_file_prot(Rt_map *, int);
147void	Dbg32_file_rejected(Lm_list *, Rej_desc *);
148void	Dbg64_file_rejected(Lm_list *, Rej_desc *);
149void	Dbg32_file_reuse(Lm_list *, const char *, const char *);
150void	Dbg64_file_reuse(Lm_list *, const char *, const char *);
151void	Dbg32_file_skip(Lm_list *, const char *, const char *);
152void	Dbg64_file_skip(Lm_list *, const char *, const char *);
153
154void	Dbg32_got_display(Ofl_desc *, Elf32_Off, int);
155void	Dbg64_got_display(Ofl_desc *, Elf64_Off, int);
156
157void	Dbg32_libs_audit(Lm_list *, const char *, const char *);
158void	Dbg64_libs_audit(Lm_list *, const char *, const char *);
159void	Dbg32_libs_find(Lm_list *, const char *);
160void	Dbg64_libs_find(Lm_list *, const char *);
161void	Dbg32_libs_found(Lm_list *, const char *, int);
162void	Dbg64_libs_found(Lm_list *, const char *, int);
163void	Dbg32_libs_ignore(Lm_list *, const char *);
164void	Dbg64_libs_ignore(Lm_list *, const char *);
165void	Dbg32_libs_init(Lm_list *, List *, List *);
166void	Dbg64_libs_init(Lm_list *, List *, List *);
167void	Dbg32_libs_l(Lm_list *, const char *, const char *);
168void	Dbg64_libs_l(Lm_list *, const char *, const char *);
169void	Dbg32_libs_path(Lm_list *, const char *, Half, const char *);
170void	Dbg64_libs_path(Lm_list *, const char *, Half, const char *);
171void	Dbg32_libs_req(Lm_list *, const char *, const char *, const char *);
172void	Dbg64_libs_req(Lm_list *, const char *, const char *, const char *);
173void	Dbg32_libs_update(Lm_list *, List *, List *);
174void	Dbg64_libs_update(Lm_list *, List *, List *);
175void	Dbg32_libs_yp(Lm_list *, const char *);
176void	Dbg64_libs_yp(Lm_list *, const char *);
177void	Dbg32_libs_ylu(Lm_list *, const char *, const char *, int);
178void	Dbg64_libs_ylu(Lm_list *, const char *, const char *, int);
179
180void	Dbg32_map_dash(Lm_list *, const char *, Sdf_desc *);
181void	Dbg64_map_dash(Lm_list *, const char *, Sdf_desc *);
182void	Dbg32_map_ent(Lm_list *, Boolean, Ent_desc *, Ofl_desc *);
183void	Dbg64_map_ent(Lm_list *, Boolean, Ent_desc *, Ofl_desc *);
184void	Dbg32_map_parse(Lm_list *, const char *);
185void	Dbg64_map_parse(Lm_list *, const char *);
186void	Dbg32_map_pipe(Lm_list *, Sg_desc *, const char *, Elf32_Word);
187void	Dbg64_map_pipe(Lm_list *, Sg_desc *, const char *, Elf64_Word);
188void	Dbg32_map_set_atsign(Boolean);
189void	Dbg64_map_set_atsign(Boolean);
190void	Dbg32_map_seg(Ofl_desc *, int, Sg_desc *);
191void	Dbg64_map_seg(Ofl_desc *, int, Sg_desc *);
192void	Dbg32_map_set_equal(Boolean);
193void	Dbg64_map_set_equal(Boolean);
194void	Dbg32_map_size_new(Lm_list *, const char *);
195void	Dbg64_map_size_new(Lm_list *, const char *);
196void	Dbg32_map_size_old(Ofl_desc *, Sym_desc *);
197void	Dbg64_map_size_old(Ofl_desc *, Sym_desc *);
198void	Dbg32_map_sort_fini(Lm_list *, Sg_desc *);
199void	Dbg64_map_sort_fini(Lm_list *, Sg_desc *);
200void	Dbg32_map_sort_orig(Lm_list *, Sg_desc *);
201void	Dbg64_map_sort_orig(Lm_list *, Sg_desc *);
202void	Dbg32_map_symbol(Ofl_desc *, Sym_desc *);
203void	Dbg64_map_symbol(Ofl_desc *, Sym_desc *);
204void	Dbg32_map_version(Lm_list *, const char *, const char *, int);
205void	Dbg64_map_version(Lm_list *, const char *, const char *, int);
206
207void	Dbg32_move_adjexpandreloc(Lm_list *, Elf32_Word, const char *);
208void	Dbg64_move_adjexpandreloc(Lm_list *, Elf64_Xword, const char *);
209void	Dbg32_move_adjmovereloc(Lm_list *, Elf32_Word, Elf32_Word,
210	    const char *);
211void	Dbg64_move_adjmovereloc(Lm_list *, Elf64_Xword, Elf64_Xword,
212	    const char *);
213void	Dbg32_move_data(Rt_map *);
214void	Dbg64_move_data(Rt_map *);
215void	Dbg32_move_entry1(Lm_list *, int, Move *, Sym_desc *);
216void	Dbg64_move_entry1(Lm_list *, int, Move *, Sym_desc *);
217void	Dbg32_move_entry2(Lm_list *, Elf32_Move *, Elf32_Word, const char *);
218void	Dbg64_move_entry2(Lm_list *, Elf64_Move *, Elf64_Word, const char *);
219void	Dbg32_move_expand(Lm_list *, Elf32_Move *, Elf32_Addr);
220void	Dbg64_move_expand(Lm_list *, Elf64_Move *, Elf64_Addr);
221void	Dbg32_move_input(Lm_list *, const char *);
222void	Dbg64_move_input(Lm_list *, const char *);
223void	Dbg32_move_outmove(Lm_list *, const char *);
224void	Dbg64_move_outmove(Lm_list *, const char *);
225void	Dbg32_move_outsctadj(Lm_list *, Sym_desc *);
226void	Dbg64_move_outsctadj(Lm_list *, Sym_desc *);
227void	Dbg32_move_parexpn(Lm_list *, const char *, const char *);
228void	Dbg64_move_parexpn(Lm_list *, const char *, const char *);
229
230void	Dbg32_reloc_apply_reg(Lm_list *, int, Elf32_Half, Elf32_Word,
231	    Elf32_Word);
232void	Dbg64_reloc_apply_reg(Lm_list *, int, Elf64_Half, Elf64_Xword,
233	    Elf64_Xword);
234void	Dbg32_reloc_apply_val(Lm_list *, int, Elf32_Word, Elf32_Word);
235void	Dbg64_reloc_apply_val(Lm_list *, int, Elf64_Xword, Elf64_Xword);
236void	Dbg32_reloc_ars_entry(Lm_list *, int, Elf32_Word, Elf32_Half, Rel_desc *);
237void	Dbg64_reloc_ars_entry(Lm_list *, int, Elf64_Word, Elf64_Half, Rel_desc *);
238void	Dbg32_reloc_copy(Rt_map *, Rt_map *, const char *, int);
239void	Dbg64_reloc_copy(Rt_map *, Rt_map *, const char *, int);
240void	Dbg32_reloc_discard(Lm_list *, Elf32_Half, Rel_desc *);
241void	Dbg64_reloc_discard(Lm_list *, Elf64_Half, Rel_desc *);
242void	Dbg32_reloc_doact(Lm_list *, int, Elf32_Half, Elf32_Word, Elf32_Word,
243	    Elf32_Word, Elf32_Word, const char *, Os_desc *);
244void	Dbg64_reloc_doact(Lm_list *, int, Elf64_Half, Elf64_Word, Elf64_Word,
245	    Elf64_Xword, Elf64_Xword, const char *, Os_desc *);
246void	Dbg32_reloc_doact_title(Lm_list *);
247void	Dbg64_reloc_doact_title(Lm_list *);
248void	Dbg32_reloc_dooutrel(Lm_list *, Elf32_Word);
249void	Dbg64_reloc_dooutrel(Lm_list *, Elf64_Word);
250void	Dbg32_reloc_entry(Lm_list *, const char *, Elf32_Half, Elf32_Word,
251	    void *, const char *, const char *, const char *);
252void	Dbg64_reloc_entry(Lm_list *, const char *, Elf64_Half, Elf64_Word,
253	    void *, const char *, const char *, const char *);
254void	Dbg32_reloc_error(Lm_list *, int, Elf32_Half, Elf32_Word, void *,
255	    const char *);
256void	Dbg64_reloc_error(Lm_list *, int, Elf64_Half, Elf64_Word, void *,
257	    const char *);
258void	Dbg32_reloc_generate(Lm_list *, Os_desc *, Elf32_Word);
259void	Dbg64_reloc_generate(Lm_list *, Os_desc *, Elf64_Word);
260void	Dbg32_reloc_in(Lm_list *, int, Elf32_Half, Elf32_Word, void *,
261	    const char *, const char *);
262void	Dbg64_reloc_in(Lm_list *, int, Elf64_Half, Elf64_Word, void *,
263	    const char *, const char *);
264void	Dbg32_reloc_ors_entry(Lm_list *, int, Elf32_Word, Elf32_Half, Rel_desc *);
265void	Dbg64_reloc_ors_entry(Lm_list *, int, Elf64_Word, Elf64_Half, Rel_desc *);
266void	Dbg32_reloc_out(Ofl_desc *, int, Elf32_Word, void *, const char *,
267	    const char *);
268void	Dbg64_reloc_out(Ofl_desc *, int, Elf64_Word, void *, const char *,
269	    const char *);
270void	Dbg32_reloc_proc(Lm_list *, Os_desc *, Is_desc *, Is_desc *);
271void	Dbg64_reloc_proc(Lm_list *, Os_desc *, Is_desc *, Is_desc *);
272void	Dbg32_reloc_run(Rt_map *, uint_t, int, int);
273void	Dbg64_reloc_run(Rt_map *, uint_t, int, int);
274void	Dbg32_reloc_transition(Lm_list *, Elf32_Half, Elf32_Word, Rel_desc *);
275void	Dbg64_reloc_transition(Lm_list *, Elf64_Half, Elf64_Word, Rel_desc *);
276
277void	Dbg32_sec_added(Lm_list *, Os_desc *, Sg_desc *);
278void	Dbg64_sec_added(Lm_list *, Os_desc *, Sg_desc *);
279void	Dbg32_sec_created(Lm_list *, Os_desc *, Sg_desc *);
280void	Dbg64_sec_created(Lm_list *, Os_desc *, Sg_desc *);
281void	Dbg32_sec_discarded(Lm_list *, Is_desc *, Is_desc *);
282void	Dbg64_sec_discarded(Lm_list *, Is_desc *, Is_desc *);
283void	Dbg32_sec_group(Lm_list *, Is_desc *, Group_desc *);
284void	Dbg64_sec_group(Lm_list *, Is_desc *, Group_desc *);
285void	Dbg32_sec_in(Lm_list *, Is_desc *);
286void	Dbg64_sec_in(Lm_list *, Is_desc *);
287void	Dbg32_sec_order_error(Lm_list *, Ifl_desc *, Elf32_Word, int);
288void	Dbg64_sec_order_error(Lm_list *, Ifl_desc *, Elf64_Word, int);
289void	Dbg32_sec_order_list(Ofl_desc *, int);
290void	Dbg64_sec_order_list(Ofl_desc *, int);
291void	Dbg32_sec_strtab(Lm_list *, Os_desc *, Str_tbl *);
292void	Dbg64_sec_strtab(Lm_list *, Os_desc *, Str_tbl *);
293
294void	Dbg32_seg_desc_entry(Lm_list *, Elf32_Half, int, Sg_desc *);
295void	Dbg64_seg_desc_entry(Lm_list *, Elf64_Half, int, Sg_desc *);
296void	Dbg32_seg_entry(Ofl_desc *, int, Sg_desc *);
297void	Dbg64_seg_entry(Ofl_desc *, int, Sg_desc *);
298void	Dbg32_seg_list(Lm_list *, Elf32_Half, List *);
299void	Dbg64_seg_list(Lm_list *, Elf64_Half, List *);
300void	Dbg32_seg_os(Ofl_desc *, Os_desc *, int);
301void	Dbg64_seg_os(Ofl_desc *, Os_desc *, int);
302void    Dbg32_seg_title(Lm_list *);
303void    Dbg64_seg_title(Lm_list *);
304
305void	Dbg32_shdr_modified(Lm_list *, const char *, Half, Shdr *, Shdr *,
306	    const char *);
307void	Dbg64_shdr_modified(Lm_list *, const char *, Half, Shdr *, Shdr *,
308	    const char *);
309
310void	Dbg32_statistics_ar(Ofl_desc *);
311void	Dbg64_statistics_ar(Ofl_desc *);
312void	Dbg32_statistics_ld(Ofl_desc *);
313void	Dbg64_statistics_ld(Ofl_desc *);
314
315void	Dbg32_support_action(Lm_list *, const char *, const char *, Support_ndx,
316	    const char *);
317void	Dbg64_support_action(Lm_list *, const char *, const char *, Support_ndx,
318	    const char *);
319void	Dbg32_support_load(Lm_list *, const char *, const char *);
320void	Dbg64_support_load(Lm_list *, const char *, const char *);
321void	Dbg32_support_req(Lm_list *, const char *, int);
322void	Dbg64_support_req(Lm_list *, const char *, int);
323
324void	Dbg32_syminfo_entry(Lm_list *, Elf32_Word, Syminfo *, Sym *, const char *,
325	    Dyn *);
326void	Dbg64_syminfo_entry(Lm_list *, Elf64_Word, Syminfo *, Sym *, const char *,
327	    Dyn *);
328void	Dbg32_syminfo_title(Lm_list *);
329void	Dbg64_syminfo_title(Lm_list *);
330
331void	Dbg32_syms_ar_checking(Lm_list *, Xword, Elf_Arsym *, const char *);
332void	Dbg64_syms_ar_checking(Lm_list *, Xword, Elf_Arsym *, const char *);
333void	Dbg32_syms_ar_entry(Lm_list *, Xword, Elf_Arsym *);
334void	Dbg64_syms_ar_entry(Lm_list *, Xword, Elf_Arsym *);
335void	Dbg32_syms_ar_resolve(Lm_list *, Xword, Elf_Arsym *, const char *, int);
336void	Dbg64_syms_ar_resolve(Lm_list *, Xword, Elf_Arsym *, const char *, int);
337void	Dbg32_syms_ar_title(Lm_list *, const char *, int);
338void	Dbg64_syms_ar_title(Lm_list *, const char *, int);
339void	Dbg32_syms_created(Lm_list *, const char *);
340void	Dbg64_syms_created(Lm_list *, const char *);
341void	Dbg32_syms_discarded(Lm_list *, Sym_desc *, Is_desc *);
342void	Dbg64_syms_discarded(Lm_list *, Sym_desc *, Is_desc *);
343void	Dbg32_syms_dlsym(Rt_map *, const char *, const char *, int);
344void	Dbg64_syms_dlsym(Rt_map *, const char *, const char *, int);
345void	Dbg32_syms_entered(Ofl_desc *, Sym *, Sym_desc *);
346void	Dbg64_syms_entered(Ofl_desc *, Sym *, Sym_desc *);
347void	Dbg32_syms_entry(Lm_list *, Elf32_Word, Sym_desc *);
348void	Dbg64_syms_entry(Lm_list *, Elf64_Word, Sym_desc *);
349void	Dbg32_syms_global(Lm_list *, Elf32_Word, const char *);
350void	Dbg64_syms_global(Lm_list *, Elf64_Word, const char *);
351void	Dbg32_syms_ignore(Ofl_desc *, Sym_desc *);
352void	Dbg64_syms_ignore(Ofl_desc *, Sym_desc *);
353void	Dbg32_syms_lazy_rescan(Lm_list *, const char *);
354void	Dbg64_syms_lazy_rescan(Lm_list *, const char *);
355void	Dbg32_syms_lookup(Rt_map *, const char *, const char *);
356void	Dbg64_syms_lookup(Rt_map *, const char *, const char *);
357void	Dbg32_syms_lookup_aout(Lm_list *, const char *);
358void	Dbg32_syms_new(Ofl_desc *, Sym *, Sym_desc *);
359void	Dbg64_syms_new(Ofl_desc *, Sym *, Sym_desc *);
360void	Dbg32_syms_old(Ofl_desc *, Sym_desc *);
361void	Dbg64_syms_old(Ofl_desc *, Sym_desc *);
362void	Dbg32_syms_process(Lm_list *, Ifl_desc *);
363void	Dbg64_syms_process(Lm_list *, Ifl_desc *);
364void	Dbg32_syms_reduce(Ofl_desc *, int, Sym_desc *, int, const char *);
365void	Dbg64_syms_reduce(Ofl_desc *, int, Sym_desc *, int, const char *);
366void	Dbg32_syms_reloc(Ofl_desc *, Sym_desc *);
367void	Dbg64_syms_reloc(Ofl_desc *, Sym_desc *);
368void	Dbg32_syms_resolved(Ofl_desc *, Sym_desc *);
369void	Dbg64_syms_resolved(Ofl_desc *, Sym_desc *);
370void	Dbg32_syms_resolving(Ofl_desc *, Elf32_Word, const char *, int, int,
371	    Sym *, Sym *, Sym_desc *, Ifl_desc *);
372void	Dbg64_syms_resolving(Ofl_desc *, Elf64_Word, const char *, int, int,
373	    Sym *, Sym *, Sym_desc *, Ifl_desc *);
374void	Dbg32_syms_sec_entry(Lm_list *, Elf32_Word, Sg_desc *, Os_desc *);
375void	Dbg64_syms_sec_entry(Lm_list *, Elf64_Word, Sg_desc *, Os_desc *);
376void	Dbg32_syms_sec_title(Lm_list *);
377void	Dbg64_syms_sec_title(Lm_list *);
378void	Dbg32_syms_spec_title(Lm_list *);
379void	Dbg64_syms_spec_title(Lm_list *);
380void	Dbg32_syms_updated(Ofl_desc *, Sym_desc *, const char *);
381void	Dbg64_syms_updated(Ofl_desc *, Sym_desc *, const char *);
382void	Dbg32_syms_up_title(Lm_list *);
383void	Dbg64_syms_up_title(Lm_list *);
384
385void	Dbg32_util_broadcast(Rt_map *);
386void	Dbg64_util_broadcast(Rt_map *);
387void	Dbg32_util_call_array(Rt_map *, void *, int, Elf32_Word);
388void	Dbg64_util_call_array(Rt_map *, void *, int, Elf64_Word);
389void	Dbg32_util_call_fini(Rt_map *);
390void	Dbg64_util_call_fini(Rt_map *);
391void	Dbg32_util_call_init(Rt_map *, int);
392void	Dbg64_util_call_init(Rt_map *, int);
393void	Dbg32_util_call_main(Rt_map *);
394void	Dbg64_util_call_main(Rt_map *);
395void	Dbg32_util_collect(Rt_map *, int, int);
396void	Dbg64_util_collect(Rt_map *, int, int);
397void	Dbg32_util_dbnotify(Lm_list *, rd_event_e, r_state_e);
398void	Dbg64_util_dbnotify(Lm_list *, rd_event_e, r_state_e);
399void	Dbg32_util_edge_in(Lm_list *, Rt_map *, uint_t, Rt_map *, int, int);
400void	Dbg64_util_edge_in(Lm_list *, Rt_map *, uint_t, Rt_map *, int, int);
401void	Dbg32_util_edge_out(Rt_map *, Rt_map *);
402void	Dbg64_util_edge_out(Rt_map *, Rt_map *);
403void	Dbg32_util_intoolate(Rt_map *);
404void	Dbg64_util_intoolate(Rt_map *);
405void    Dbg32_util_lcinterface(Rt_map *, int, char *);
406void    Dbg64_util_lcinterface(Rt_map *, int, char *);
407void	Dbg32_util_nl(Lm_list *, int);
408void	Dbg64_util_nl(Lm_list *, int);
409void	Dbg32_util_no_init(Rt_map *);
410void	Dbg64_util_no_init(Rt_map *);
411void	Dbg32_util_scc_entry(Rt_map *, uint_t);
412void	Dbg64_util_scc_entry(Rt_map *, uint_t);
413void	Dbg32_util_scc_title(Lm_list *, int);
414void	Dbg64_util_scc_title(Lm_list *, int);
415void	Dbg32_util_str(Lm_list *, const char  *);
416void	Dbg64_util_str(Lm_list *, const char  *);
417void	Dbg32_util_wait(Rt_map *, Rt_map *, int);
418void	Dbg64_util_wait(Rt_map *, Rt_map *, int);
419
420void	Dbg32_unused_file(Lm_list *, const char *, int, uint_t);
421void	Dbg64_unused_file(Lm_list *, const char *, int, uint_t);
422void    Dbg32_unused_lcinterface(Rt_map *, Rt_map *, int);
423void    Dbg64_unused_lcinterface(Rt_map *, Rt_map *, int);
424void	Dbg32_unused_sec(Lm_list *, Is_desc *);
425void	Dbg64_unused_sec(Lm_list *, Is_desc *);
426void	Dbg32_unused_unref(Rt_map *, const char *);
427void	Dbg64_unused_unref(Rt_map *, const char *);
428
429void	Dbg32_ver_need_entry(Lm_list *, Half, const char *, const char *);
430void	Dbg64_ver_need_entry(Lm_list *, Half, const char *, const char *);
431void	Dbg32_ver_need_title(Lm_list *, const char *);
432void	Dbg64_ver_need_title(Lm_list *, const char *);
433
434const char *Elf_demangle_name(const char *);
435
436void Elf_syminfo_entry(Lm_list *, Word, Syminfo *, const char *, const char *);
437void Elf_syminfo_title(Lm_list *);
438void Elf_ver_def_title(Lm_list *);
439void Elf_ver_need_title(Lm_list *);
440void Elf_ver_line_1(Lm_list *, const char *, const char *, const char *,
441    const char *);
442void Elf_ver_line_2(Lm_list *, const char *, const char *);
443void Elf_ver_line_3(Lm_list *, const char *, const char *, const char *);
444void Elf_ver_line_4(Lm_list *, const char *);
445void Elf_ver_line_5(Lm_list *, const char *, const char *);
446
447void Elf64_cap_entry(Lm_list *, Elf64_Cap *, int ndx, Elf64_Half);
448void Elf32_cap_entry(Lm_list *, Elf32_Cap *, int ndx, Elf32_Half);
449void Elf64_cap_title(Lm_list *);
450void Elf32_cap_title(Lm_list *);
451
452void Elf64_dyn_entry(Lm_list *, Elf64_Dyn *, int, const char *, Elf64_Half);
453void Elf32_dyn_entry(Lm_list *, Elf32_Dyn *, int, const char *, Elf32_Half);
454void Elf64_dyn_title(Lm_list *);
455void Elf32_dyn_title(Lm_list *);
456
457void Elf64_ehdr(Lm_list *, Elf64_Ehdr *, Elf64_Shdr *);
458void Elf32_ehdr(Lm_list *, Elf32_Ehdr *, Elf32_Shdr *);
459
460void Elf64_got_entry(Lm_list *, Elf64_Sword, Elf64_Addr, Elf64_Xword,
461    Elf64_Half, Elf64_Word, void *, const char *);
462void Elf32_got_entry(Lm_list *, Elf32_Sword, Elf32_Addr, Elf32_Word,
463    Elf32_Half, Elf32_Word, void *, const char *);
464void Elf64_got_title(Lm_list *);
465void Elf32_got_title(Lm_list *);
466
467void Elf64_phdr(Lm_list *, Elf64_Half, Elf64_Phdr *);
468void Elf32_phdr(Lm_list *, Elf32_Half, Elf32_Phdr *);
469
470void Elf64_reloc_apply_reg(Lm_list *, int, Elf64_Half, Elf64_Xword,
471    Elf64_Xword);
472void Elf32_reloc_apply_reg(Lm_list *, int, Elf32_Half, Elf32_Word,
473    Elf32_Word);
474void Elf64_reloc_apply_val(Lm_list *, int, Elf64_Xword, Elf64_Xword);
475void Elf32_reloc_apply_val(Lm_list *, int, Elf32_Word, Elf32_Word);
476void Elf64_reloc_entry_1(Lm_list *, int, const char *, Elf64_Half, Word, void *,
477    const char *, const char *, const char *);
478void Elf32_reloc_entry_1(Lm_list *, int, const char *, Elf32_Half, Word, void *,
479    const char *, const char *, const char *);
480void Elf64_reloc_entry_2(Lm_list *, int, const char *, Word, const char *,
481    Elf64_Addr, Elf64_Sxword, const char *, const char *, const char *);
482void Elf32_reloc_entry_2(Lm_list *, int, const char *, Word, const char *,
483    Elf32_Addr, Elf32_Sword, const char *, const char *, const char *);
484void Elf64_reloc_title(Lm_list *, int, Word);
485void Elf32_reloc_title(Lm_list *, int, Word);
486
487void Elf64_shdr(Lm_list *, Elf64_Half, Elf64_Shdr *);
488void Elf32_shdr(Lm_list *, Elf32_Half, Elf32_Shdr *);
489
490void Elf64_syms_table_entry(Lm_list *, int, const char *, Elf64_Half,
491    Elf64_Sym *, Elf64_Word, const char *, const char *);
492void Elf32_syms_table_entry(Lm_list *, int, const char *, Elf32_Half,
493    Elf32_Sym *, Elf32_Word, const char *, const char *);
494void Elf64_syms_table_title(Lm_list *, int);
495void Elf32_syms_table_title(Lm_list *, int);
496