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