xref: /titanic_54/usr/src/cmd/sgs/include/debug.h (revision 5aefb6555731130ca4fd295960123d71f2d21fe8)
17c478bd9Sstevel@tonic-gate /*
27c478bd9Sstevel@tonic-gate  * CDDL HEADER START
37c478bd9Sstevel@tonic-gate  *
47c478bd9Sstevel@tonic-gate  * The contents of this file are subject to the terms of the
5*5aefb655Srie  * Common Development and Distribution License (the "License").
6*5aefb655Srie  * You may not use this file except in compliance with the License.
77c478bd9Sstevel@tonic-gate  *
87c478bd9Sstevel@tonic-gate  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
97c478bd9Sstevel@tonic-gate  * or http://www.opensolaris.org/os/licensing.
107c478bd9Sstevel@tonic-gate  * See the License for the specific language governing permissions
117c478bd9Sstevel@tonic-gate  * and limitations under the License.
127c478bd9Sstevel@tonic-gate  *
137c478bd9Sstevel@tonic-gate  * When distributing Covered Code, include this CDDL HEADER in each
147c478bd9Sstevel@tonic-gate  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
157c478bd9Sstevel@tonic-gate  * If applicable, add the following below this CDDL HEADER, with the
167c478bd9Sstevel@tonic-gate  * fields enclosed by brackets "[]" replaced with your own identifying
177c478bd9Sstevel@tonic-gate  * information: Portions Copyright [yyyy] [name of copyright owner]
187c478bd9Sstevel@tonic-gate  *
197c478bd9Sstevel@tonic-gate  * CDDL HEADER END
207c478bd9Sstevel@tonic-gate  */
21fb1354edSrie 
227c478bd9Sstevel@tonic-gate /*
23*5aefb655Srie  * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
247c478bd9Sstevel@tonic-gate  * Use is subject to license terms.
257c478bd9Sstevel@tonic-gate  */
267c478bd9Sstevel@tonic-gate 
277c478bd9Sstevel@tonic-gate #ifndef	_DEBUG_H
287c478bd9Sstevel@tonic-gate #define	_DEBUG_H
297c478bd9Sstevel@tonic-gate 
307c478bd9Sstevel@tonic-gate #pragma ident	"%Z%%M%	%I%	%E% SMI"
317c478bd9Sstevel@tonic-gate 
327c478bd9Sstevel@tonic-gate /*
33*5aefb655Srie  * Global include file for lddbg debugging.
347c478bd9Sstevel@tonic-gate  *
35*5aefb655Srie  * ld(1) and ld.so.1(1) carry out all diagnostic debugging calls via lazy
36*5aefb655Srie  * loading the library liblddbg.so.  Thus debugging is always enabled.  The
37*5aefb655Srie  * utility elfdump(1) is explicitly dependent upon this library.  There are two
387c478bd9Sstevel@tonic-gate  * categories of routines defined in this library:
397c478bd9Sstevel@tonic-gate  *
407c478bd9Sstevel@tonic-gate  *  o	Debugging routines that have specific linker knowledge, and test the
417c478bd9Sstevel@tonic-gate  *	class of debugging allowable before proceeding, start with the `Dbg_'
427c478bd9Sstevel@tonic-gate  *	prefix.
437c478bd9Sstevel@tonic-gate  *
447c478bd9Sstevel@tonic-gate  *  o	Lower level routines that provide generic ELF structure interpretation
457c478bd9Sstevel@tonic-gate  *	start with the `Elf_' prefix.  These latter routines are the only
46*5aefb655Srie  *	routines used by the elfdump(1) utility.
477c478bd9Sstevel@tonic-gate  */
487c478bd9Sstevel@tonic-gate #include <sgs.h>
497c478bd9Sstevel@tonic-gate #include <libld.h>
507c478bd9Sstevel@tonic-gate #include <rtld.h>
517c478bd9Sstevel@tonic-gate #include <gelf.h>
527c478bd9Sstevel@tonic-gate 
537c478bd9Sstevel@tonic-gate #ifdef	__cplusplus
547c478bd9Sstevel@tonic-gate extern "C" {
557c478bd9Sstevel@tonic-gate #endif
567c478bd9Sstevel@tonic-gate 
577c478bd9Sstevel@tonic-gate /*
58*5aefb655Srie  * Define Dbg_*() interface flags.  These flags direct the debugging routine to
597c478bd9Sstevel@tonic-gate  * generate different diagnostics, thus the strings themselves are maintained
607c478bd9Sstevel@tonic-gate  * in this library.
617c478bd9Sstevel@tonic-gate  */
627c478bd9Sstevel@tonic-gate #define	DBG_SUP_ENVIRON		1
637c478bd9Sstevel@tonic-gate #define	DBG_SUP_CMDLINE		2
647c478bd9Sstevel@tonic-gate #define	DBG_SUP_DEFAULT		3
657c478bd9Sstevel@tonic-gate 
667c478bd9Sstevel@tonic-gate #define	DBG_CONF_IGNORE		1	/* configuration processing errors */
677c478bd9Sstevel@tonic-gate #define	DBG_CONF_VERSION	2
687c478bd9Sstevel@tonic-gate #define	DBG_CONF_PRCFAIL	3
697c478bd9Sstevel@tonic-gate #define	DBG_CONF_CORRUPT	4
707c478bd9Sstevel@tonic-gate 
717c478bd9Sstevel@tonic-gate #define	DBG_ORDER_INFO_RANGE	1	/* sh_link out of range */
727c478bd9Sstevel@tonic-gate #define	DBG_ORDER_INFO_ORDER	2	/* sh_info also ordered */
737c478bd9Sstevel@tonic-gate #define	DBG_ORDER_LINK_OUTRANGE	3	/* sh_link out of range */
747c478bd9Sstevel@tonic-gate #define	DBG_ORDER_FLAGS		4	/* sh_flags do not match */
757c478bd9Sstevel@tonic-gate #define	DBG_ORDER_CYCLIC	5	/* sh_link cyclic */
767c478bd9Sstevel@tonic-gate #define	DBG_ORDER_LINK_ERROR	6	/* sh_link (one) has an error */
777c478bd9Sstevel@tonic-gate 
787c478bd9Sstevel@tonic-gate #define	DBG_INIT_SORT		1	/* calling init from sorted order */
797c478bd9Sstevel@tonic-gate #define	DBG_INIT_PEND		2	/* calling pending init */
807c478bd9Sstevel@tonic-gate #define	DBG_INIT_DYN		3	/* dynamically triggered init */
817c478bd9Sstevel@tonic-gate #define	DBG_INIT_DONE		4	/* init completed */
827c478bd9Sstevel@tonic-gate 
837c478bd9Sstevel@tonic-gate #define	DBG_DLSYM_DEF		0
847c478bd9Sstevel@tonic-gate #define	DBG_DLSYM_NEXT		1
857c478bd9Sstevel@tonic-gate #define	DBG_DLSYM_DEFAULT	2
867c478bd9Sstevel@tonic-gate #define	DBG_DLSYM_SELF		3
877c478bd9Sstevel@tonic-gate #define	DBG_DLSYM_PROBE		4
887c478bd9Sstevel@tonic-gate 
897c478bd9Sstevel@tonic-gate #define	DBG_DLCLOSE_NULL	0
907c478bd9Sstevel@tonic-gate #define	DBG_DLCLOSE_IGNORE	1
917c478bd9Sstevel@tonic-gate #define	DBG_DLCLOSE_RESCAN	2
927c478bd9Sstevel@tonic-gate 
937c478bd9Sstevel@tonic-gate #define	DBG_WAIT_INIT		1
947c478bd9Sstevel@tonic-gate #define	DBG_WAIT_FINI		2
957c478bd9Sstevel@tonic-gate #define	DBG_WAIT_SYMBOL		3
967c478bd9Sstevel@tonic-gate 
977c478bd9Sstevel@tonic-gate #define	DBG_SYM_REDUCE_GLOBAL	1	/* reporting global symbols to local */
987c478bd9Sstevel@tonic-gate #define	DBG_SYM_REDUCE_RETAIN	2	/* reporting non reduced local syms */
997c478bd9Sstevel@tonic-gate 
1007c478bd9Sstevel@tonic-gate #define	DBG_DEP_CREATE		1	/* Group handle operations */
1017c478bd9Sstevel@tonic-gate #define	DBG_DEP_ADD		2
1027c478bd9Sstevel@tonic-gate #define	DBG_DEP_DELETE		3
1037c478bd9Sstevel@tonic-gate #define	DBG_DEP_REMOVE		4
1047c478bd9Sstevel@tonic-gate #define	DBG_DEP_REMAIN		5
1057c478bd9Sstevel@tonic-gate #define	DBG_DEP_ORPHAN		6
1067c478bd9Sstevel@tonic-gate #define	DBG_DEP_REINST		7
1077c478bd9Sstevel@tonic-gate 
1087c478bd9Sstevel@tonic-gate #define	DBG_BINFO_FOUND		0x0001	/* information regarding binding */
1097c478bd9Sstevel@tonic-gate #define	DBG_BINFO_DIRECT	0x0002	/* bound directly */
1107c478bd9Sstevel@tonic-gate #define	DBG_BINFO_COPYREF	0x0004	/* bound to copy relocated reference */
1117c478bd9Sstevel@tonic-gate #define	DBG_BINFO_FILTEE	0x0008	/* bound to filtee */
1127c478bd9Sstevel@tonic-gate #define	DBG_BINFO_INTERPOSE	0x0010	/* bound to an identified interposer */
1137c478bd9Sstevel@tonic-gate #define	DBG_BINFO_PLTADDR	0x0020	/* bound to executables undefined plt */
1147c478bd9Sstevel@tonic-gate #define	DBG_BINFO_MSK		0xffff
1157c478bd9Sstevel@tonic-gate 
1167c478bd9Sstevel@tonic-gate #define	DBG_CAP_INITIAL		0
1177c478bd9Sstevel@tonic-gate #define	DBG_CAP_IGNORE		1
1187c478bd9Sstevel@tonic-gate #define	DBG_CAP_OLD		2
1197c478bd9Sstevel@tonic-gate #define	DBG_CAP_NEW		3
1207c478bd9Sstevel@tonic-gate #define	DBG_CAP_RESOLVED	4
1217c478bd9Sstevel@tonic-gate 
1227c478bd9Sstevel@tonic-gate #define	DBG_REL_START		1
1237c478bd9Sstevel@tonic-gate #define	DBG_REL_FINISH		2
1247c478bd9Sstevel@tonic-gate #define	DBG_REL_NONE		3
1257c478bd9Sstevel@tonic-gate 
126*5aefb655Srie #define	DBG_NL_STD		0	/* newline controllers - standard and */
127*5aefb655Srie #define	DBG_NL_FRC		2	/*    forced. */
1287c478bd9Sstevel@tonic-gate 
1297c478bd9Sstevel@tonic-gate /*
130*5aefb655Srie  * Define a debug descriptor, and a user macro that inspects the descriptor as
131*5aefb655Srie  * a means of triggering a class of diagnostic output.
1327c478bd9Sstevel@tonic-gate  */
133*5aefb655Srie typedef struct {
134*5aefb655Srie 	uint_t		d_class;	/* debugging classes */
135*5aefb655Srie 	uint_t		d_extra;	/* extra information for classes */
136*5aefb655Srie 	Alist		*d_list;	/* associated strings */
137*5aefb655Srie } Dbg_desc;
1387c478bd9Sstevel@tonic-gate 
139*5aefb655Srie extern	Dbg_desc	*dbg_desc;
140*5aefb655Srie 
141*5aefb655Srie #define	DBG_ENABLED	(dbg_desc->d_class)
142*5aefb655Srie #define	DBG_CALL(func)	if (DBG_ENABLED) func
1437c478bd9Sstevel@tonic-gate 
1447c478bd9Sstevel@tonic-gate /*
1457c478bd9Sstevel@tonic-gate  * Most debugging tokens are interpreted within liblddbg, and thus any flags
146*5aefb655Srie  * within d_class are only meaningful to this library.  The following flags
147*5aefb655Srie  * extend the d_class diagnostic, and are maintained in d_extra.  These flags
148*5aefb655Srie  * may be interpreted by the debugging library itself or from the callers
149*5aefb655Srie  * dbg_print() routine.
1507c478bd9Sstevel@tonic-gate  */
151*5aefb655Srie #define	DBG_E_DETAIL	0x0001		/* add detail to a class */
152*5aefb655Srie #define	DBG_E_LONG	0x0002		/* use long names (ie. no truncation) */
153*5aefb655Srie 
154*5aefb655Srie #define	DBG_E_STDNL	0x0010		/* standard newline indicator */
155*5aefb655Srie 
156*5aefb655Srie #define	DBG_E_SNAME	0x0100		/* prepend simple name (ld only) */
157*5aefb655Srie #define	DBG_E_FNAME	0x0200		/* prepend full name (ld only) */
158*5aefb655Srie #define	DBG_E_CLASS	0x0400		/* prepend ELF class (ld only) */
159*5aefb655Srie #define	DBG_E_LMID	0x0800		/* prepend link-map id (ld.so.1 only) */
160*5aefb655Srie #define	DBG_E_DEMANGLE	0x1000		/* demangle symbol names */
161*5aefb655Srie 
162*5aefb655Srie #define	DBG_NOTDETAIL()	!(dbg_desc->d_extra & DBG_E_DETAIL)
163*5aefb655Srie #define	DBG_NOTLONG()	!(dbg_desc->d_extra & DBG_E_LONG)
164*5aefb655Srie 
165*5aefb655Srie #define	DBG_ISSNAME()	(dbg_desc->d_extra & DBG_E_SNAME)
166*5aefb655Srie #define	DBG_ISFNAME()	(dbg_desc->d_extra & DBG_E_FNAME)
167*5aefb655Srie #define	DBG_ISCLASS()	(dbg_desc->d_extra & DBG_E_CLASS)
168*5aefb655Srie #define	DBG_ISLMID()	(dbg_desc->d_extra & DBG_E_LMID)
169*5aefb655Srie #define	DBG_ISDEMANGLE() \
170*5aefb655Srie 			(dbg_desc->d_extra & DBG_E_DEMANGLE)
1717c478bd9Sstevel@tonic-gate 
1727c478bd9Sstevel@tonic-gate /*
173*5aefb655Srie  * Print routine, this must be supplied by the application.  The initial
174*5aefb655Srie  * argument may provide a link-map list to associate with the format statement
175*5aefb655Srie  * that follows.
1767c478bd9Sstevel@tonic-gate  */
177*5aefb655Srie /* PRINTFLIKE2 */
178*5aefb655Srie extern	void		dbg_print(Lm_list *, const char *, ...);
1797c478bd9Sstevel@tonic-gate 
180*5aefb655Srie extern	uintptr_t	Dbg_setup(const char *, Dbg_desc *);
1817c478bd9Sstevel@tonic-gate 
1827c478bd9Sstevel@tonic-gate /*
183*5aefb655Srie  * Establish ELF32 and ELF64 class Dbg_*() interfaces.
1847c478bd9Sstevel@tonic-gate  */
185*5aefb655Srie #if	defined(_ELF64)
1867c478bd9Sstevel@tonic-gate 
187*5aefb655Srie #define	Dbg_demangle_name	Dbg64_demangle_name
188*5aefb655Srie 
189*5aefb655Srie #define	Dbg_bind_global		Dbg64_bind_global
190*5aefb655Srie #define	Dbg_bind_plt_summary	Dbg64_bind_plt_summary
191*5aefb655Srie #define	Dbg_bind_pltpad_from	Dbg64_bind_pltpad_from
192*5aefb655Srie #define	Dbg_bind_pltpad_to	Dbg64_bind_pltpad_to
193*5aefb655Srie #define	Dbg_bind_weak		Dbg64_bind_weak
194*5aefb655Srie 
195*5aefb655Srie #define	Dbg_cap_val_hw1		Dbg64_cap_val_hw1
196*5aefb655Srie #define	Dbg_cap_hw_candidate	Dbg64_cap_hw_candidate
197*5aefb655Srie #define	Dbg_cap_hw_filter	Dbg64_cap_hw_filter
198*5aefb655Srie #define	Dbg_cap_mapfile		Dbg64_cap_mapfile
199*5aefb655Srie #define	Dbg_cap_sec_entry	Dbg64_cap_sec_entry
200*5aefb655Srie #define	Dbg_cap_sec_title	Dbg64_cap_sec_title
201*5aefb655Srie 
202*5aefb655Srie #define	Dbg_ent_entry		Dbg64_ent_entry
203*5aefb655Srie #define	Dbg_ent_print		Dbg64_ent_print
204*5aefb655Srie 
205*5aefb655Srie #define	Dbg_file_analyze	Dbg64_file_analyze
206*5aefb655Srie #define	Dbg_file_aout		Dbg64_file_aout
207*5aefb655Srie #define	Dbg_file_ar		Dbg64_file_ar
208*5aefb655Srie #define	Dbg_file_ar_rescan	Dbg64_file_ar_rescan
209*5aefb655Srie #define	Dbg_file_bind_entry	Dbg64_file_bind_entry
210*5aefb655Srie #define	Dbg_file_bindings	Dbg64_file_bindings
211*5aefb655Srie #define	Dbg_file_cntl		Dbg64_file_cntl
212*5aefb655Srie #define	Dbg_file_config_dis	Dbg64_file_config_dis
213*5aefb655Srie #define	Dbg_file_config_obj	Dbg64_file_config_obj
214*5aefb655Srie #define	Dbg_file_del_rescan	Dbg64_file_del_rescan
215*5aefb655Srie #define	Dbg_file_delete		Dbg64_file_delete
216*5aefb655Srie #define	Dbg_file_dlclose	Dbg64_file_dlclose
217*5aefb655Srie #define	Dbg_file_dldump		Dbg64_file_dldump
218*5aefb655Srie #define	Dbg_file_dlopen		Dbg64_file_dlopen
219*5aefb655Srie #define	Dbg_file_elf		Dbg64_file_elf
220*5aefb655Srie #define	Dbg_file_filtee		Dbg64_file_filtee
221*5aefb655Srie #define	Dbg_file_filter		Dbg64_file_filter
222*5aefb655Srie #define	Dbg_file_fixname	Dbg64_file_fixname
223*5aefb655Srie #define	Dbg_file_generic	Dbg64_file_generic
224*5aefb655Srie #define	Dbg_file_hdl_action	Dbg64_file_hdl_action
225*5aefb655Srie #define	Dbg_file_hdl_collect	Dbg64_file_hdl_collect
226*5aefb655Srie #define	Dbg_file_hdl_title	Dbg64_file_hdl_title
227*5aefb655Srie #define	Dbg_file_lazyload	Dbg64_file_lazyload
228*5aefb655Srie #define	Dbg_file_ldso		Dbg64_file_ldso
229*5aefb655Srie #define	Dbg_file_mode_promote	Dbg64_file_mode_promote
230*5aefb655Srie #define	Dbg_file_needed		Dbg64_file_needed
231*5aefb655Srie #define	Dbg_file_output		Dbg64_file_output
232*5aefb655Srie #define	Dbg_file_preload	Dbg64_file_preload
233*5aefb655Srie #define	Dbg_file_prot		Dbg64_file_prot
234*5aefb655Srie #define	Dbg_file_rejected	Dbg64_file_rejected
235*5aefb655Srie #define	Dbg_file_reuse		Dbg64_file_reuse
236*5aefb655Srie #define	Dbg_file_skip		Dbg64_file_skip
237*5aefb655Srie 
238*5aefb655Srie #define	Dbg_got_display		Dbg64_got_display
239*5aefb655Srie 
240*5aefb655Srie #define	Dbg_libs_audit		Dbg64_libs_audit
241*5aefb655Srie #define	Dbg_libs_find		Dbg64_libs_find
242*5aefb655Srie #define	Dbg_libs_found		Dbg64_libs_found
243*5aefb655Srie #define	Dbg_libs_ignore		Dbg64_libs_ignore
244*5aefb655Srie #define	Dbg_libs_init		Dbg64_libs_init
245*5aefb655Srie #define	Dbg_libs_l		Dbg64_libs_l
246*5aefb655Srie #define	Dbg_libs_path		Dbg64_libs_path
247*5aefb655Srie #define	Dbg_libs_req		Dbg64_libs_req
248*5aefb655Srie #define	Dbg_libs_update		Dbg64_libs_update
249*5aefb655Srie #define	Dbg_libs_yp		Dbg64_libs_yp
250*5aefb655Srie #define	Dbg_libs_ylu		Dbg64_libs_ylu
251*5aefb655Srie 
252*5aefb655Srie #define	Dbg_map_dash		Dbg64_map_dash
253*5aefb655Srie #define	Dbg_map_ent		Dbg64_map_ent
254*5aefb655Srie #define	Dbg_map_parse		Dbg64_map_parse
255*5aefb655Srie #define	Dbg_map_pipe		Dbg64_map_pipe
256*5aefb655Srie #define	Dbg_map_seg		Dbg64_map_seg
257*5aefb655Srie #define	Dbg_map_set_atsign	Dbg64_map_set_atsign
258*5aefb655Srie #define	Dbg_map_set_equal	Dbg64_map_set_equal
259*5aefb655Srie #define	Dbg_map_size_new	Dbg64_map_size_new
260*5aefb655Srie #define	Dbg_map_size_old	Dbg64_map_size_old
261*5aefb655Srie #define	Dbg_map_sort_fini	Dbg64_map_sort_fini
262*5aefb655Srie #define	Dbg_map_sort_orig	Dbg64_map_sort_orig
263*5aefb655Srie #define	Dbg_map_symbol		Dbg64_map_symbol
264*5aefb655Srie #define	Dbg_map_version		Dbg64_map_version
265*5aefb655Srie 
266*5aefb655Srie #define	Dbg_move_adjexpandreloc	Dbg64_move_adjexpandreloc
267*5aefb655Srie #define	Dbg_move_adjmovereloc	Dbg64_move_adjmovereloc
268*5aefb655Srie #define	Dbg_move_data		Dbg64_move_data
269*5aefb655Srie #define	Dbg_move_entry1		Dbg64_move_entry1
270*5aefb655Srie #define	Dbg_move_entry2		Dbg64_move_entry2
271*5aefb655Srie #define	Dbg_move_expand		Dbg64_move_expand
272*5aefb655Srie #define	Dbg_move_input		Dbg64_move_input
273*5aefb655Srie #define	Dbg_move_outmove	Dbg64_move_outmove
274*5aefb655Srie #define	Dbg_move_outsctadj	Dbg64_move_outsctadj
275*5aefb655Srie #define	Dbg_move_parexpn	Dbg64_move_parexpn
276*5aefb655Srie 
277*5aefb655Srie #define	Dbg_reloc_apply_reg	Dbg64_reloc_apply_reg
278*5aefb655Srie #define	Dbg_reloc_apply_val	Dbg64_reloc_apply_val
279*5aefb655Srie #define	Dbg_reloc_ars_entry	Dbg64_reloc_ars_entry
280*5aefb655Srie #define	Dbg_reloc_copy		Dbg64_reloc_copy
281*5aefb655Srie #define	Dbg_reloc_discard	Dbg64_reloc_discard
282*5aefb655Srie #define	Dbg_reloc_doact		Dbg64_reloc_doact
283*5aefb655Srie #define	Dbg_reloc_doact_title	Dbg64_reloc_doact_title
284*5aefb655Srie #define	Dbg_reloc_dooutrel	Dbg64_reloc_dooutrel
285*5aefb655Srie #define	Dbg_reloc_entry		Dbg64_reloc_entry
286*5aefb655Srie #define	Dbg_reloc_error		Dbg64_reloc_error
287*5aefb655Srie #define	Dbg_reloc_generate	Dbg64_reloc_generate
288*5aefb655Srie #define	Dbg_reloc_in		Dbg64_reloc_in
289*5aefb655Srie #define	Dbg_reloc_ors_entry	Dbg64_reloc_ors_entry
290*5aefb655Srie #define	Dbg_reloc_out		Dbg64_reloc_out
291*5aefb655Srie #define	Dbg_reloc_proc		Dbg64_reloc_proc
292*5aefb655Srie #define	Dbg_reloc_run		Dbg64_reloc_run
293*5aefb655Srie #define	Dbg_reloc_transition	Dbg64_reloc_transition
294*5aefb655Srie 
295*5aefb655Srie #define	Dbg_sec_added		Dbg64_sec_added
296*5aefb655Srie #define	Dbg_sec_created		Dbg64_sec_created
297*5aefb655Srie #define	Dbg_sec_discarded	Dbg64_sec_discarded
298*5aefb655Srie #define	Dbg_sec_group		Dbg64_sec_group
299*5aefb655Srie #define	Dbg_sec_in		Dbg64_sec_in
300*5aefb655Srie #define	Dbg_sec_order_error	Dbg64_sec_order_error
301*5aefb655Srie #define	Dbg_sec_order_list	Dbg64_sec_order_list
302*5aefb655Srie #define	Dbg_sec_strtab		Dbg64_sec_strtab
303*5aefb655Srie 
304*5aefb655Srie #define	Dbg_seg_desc_entry	Dbg64_seg_desc_entry
305*5aefb655Srie #define	Dbg_seg_entry		Dbg64_seg_entry
306*5aefb655Srie #define	Dbg_seg_list		Dbg64_seg_list
307*5aefb655Srie #define	Dbg_seg_os		Dbg64_seg_os
308*5aefb655Srie #define	Dbg_seg_title		Dbg64_seg_title
309*5aefb655Srie 
310*5aefb655Srie #define	Dbg_statistics_ar	Dbg64_statistics_ar
311*5aefb655Srie #define	Dbg_statistics_ld	Dbg64_statistics_ld
312*5aefb655Srie 
313*5aefb655Srie #define	Dbg_support_action	Dbg64_support_action
314*5aefb655Srie #define	Dbg_support_load	Dbg64_support_load
315*5aefb655Srie #define	Dbg_support_req		Dbg64_support_req
316*5aefb655Srie 
317*5aefb655Srie #define	Dbg_syminfo_entry	Dbg64_syminfo_entry
318*5aefb655Srie #define	Dbg_syminfo_title	Dbg64_syminfo_title
319*5aefb655Srie 
320*5aefb655Srie #define	Dbg_syms_ar_checking	Dbg64_syms_ar_checking
321*5aefb655Srie #define	Dbg_syms_ar_entry	Dbg64_syms_ar_entry
322*5aefb655Srie #define	Dbg_syms_ar_resolve	Dbg64_syms_ar_resolve
323*5aefb655Srie #define	Dbg_syms_ar_title	Dbg64_syms_ar_title
324*5aefb655Srie #define	Dbg_syms_created	Dbg64_syms_created
325*5aefb655Srie #define	Dbg_syms_discarded	Dbg64_syms_discarded
326*5aefb655Srie #define	Dbg_syms_dlsym		Dbg64_syms_dlsym
327*5aefb655Srie #define	Dbg_syms_entered	Dbg64_syms_entered
328*5aefb655Srie #define	Dbg_syms_entry		Dbg64_syms_entry
329*5aefb655Srie #define	Dbg_syms_global		Dbg64_syms_global
330*5aefb655Srie #define	Dbg_syms_ignore		Dbg64_syms_ignore
331*5aefb655Srie #define	Dbg_syms_lazy_rescan	Dbg64_syms_lazy_rescan
332*5aefb655Srie #define	Dbg_syms_lookup		Dbg64_syms_lookup
333*5aefb655Srie #define	Dbg_syms_new		Dbg64_syms_new
334*5aefb655Srie #define	Dbg_syms_old		Dbg64_syms_old
335*5aefb655Srie #define	Dbg_syms_process	Dbg64_syms_process
336*5aefb655Srie #define	Dbg_syms_reduce		Dbg64_syms_reduce
337*5aefb655Srie #define	Dbg_syms_reloc		Dbg64_syms_reloc
338*5aefb655Srie #define	Dbg_syms_resolved	Dbg64_syms_resolved
339*5aefb655Srie #define	Dbg_syms_resolving	Dbg64_syms_resolving
340*5aefb655Srie #define	Dbg_syms_sec_entry	Dbg64_syms_sec_entry
341*5aefb655Srie #define	Dbg_syms_sec_title	Dbg64_syms_sec_title
342*5aefb655Srie #define	Dbg_syms_spec_title	Dbg64_syms_spec_title
343*5aefb655Srie #define	Dbg_syms_updated	Dbg64_syms_updated
344*5aefb655Srie #define	Dbg_syms_up_title	Dbg64_syms_up_title
345*5aefb655Srie 
346*5aefb655Srie #define	Dbg_util_broadcast	Dbg64_util_broadcast
347*5aefb655Srie #define	Dbg_util_call_array	Dbg64_util_call_array
348*5aefb655Srie #define	Dbg_util_call_fini	Dbg64_util_call_fini
349*5aefb655Srie #define	Dbg_util_call_init	Dbg64_util_call_init
350*5aefb655Srie #define	Dbg_util_call_main	Dbg64_util_call_main
351*5aefb655Srie #define	Dbg_util_collect	Dbg64_util_collect
352*5aefb655Srie #define	Dbg_util_dbnotify	Dbg64_util_dbnotify
353*5aefb655Srie #define	Dbg_util_edge_in	Dbg64_util_edge_in
354*5aefb655Srie #define	Dbg_util_edge_out	Dbg64_util_edge_out
355*5aefb655Srie #define	Dbg_util_intoolate	Dbg64_util_intoolate
356*5aefb655Srie #define	Dbg_util_nl		Dbg64_util_nl
357*5aefb655Srie #define	Dbg_util_no_init	Dbg64_util_no_init
358*5aefb655Srie #define	Dbg_util_scc_entry	Dbg64_util_scc_entry
359*5aefb655Srie #define	Dbg_util_scc_title	Dbg64_util_scc_title
360*5aefb655Srie #define	Dbg_util_str		Dbg64_util_str
361*5aefb655Srie #define	Dbg_util_wait		Dbg64_util_wait
362*5aefb655Srie 
363*5aefb655Srie #define	Dbg_unused_file		Dbg64_unused_file
364*5aefb655Srie #define	Dbg_unused_rtldinfo	Dbg64_unused_rtldinfo
365*5aefb655Srie #define	Dbg_unused_sec		Dbg64_unused_sec
366*5aefb655Srie #define	Dbg_unused_unref	Dbg64_unused_unref
367*5aefb655Srie 
368*5aefb655Srie #define	Dbg_ver_avail_entry	Dbg64_ver_avail_entry
369*5aefb655Srie #define	Dbg_ver_avail_title	Dbg64_ver_avail_title
370*5aefb655Srie #define	Dbg_ver_def_title	Dbg64_ver_def_title
371*5aefb655Srie #define	Dbg_ver_desc_entry	Dbg64_ver_desc_entry
372*5aefb655Srie #define	Dbg_ver_need_entry	Dbg64_ver_need_entry
373*5aefb655Srie #define	Dbg_ver_need_title	Dbg64_ver_need_title
374*5aefb655Srie #define	Dbg_ver_nointerface	Dbg64_ver_nointerface
375*5aefb655Srie #define	Dbg_ver_symbol		Dbg64_ver_symbol
376*5aefb655Srie 
377*5aefb655Srie #else
378*5aefb655Srie 
379*5aefb655Srie #define	Dbg_demangle_name	Dbg32_demangle_name
380*5aefb655Srie 
381*5aefb655Srie #define	Dbg_bind_global		Dbg32_bind_global
382*5aefb655Srie #define	Dbg_bind_plt_summary	Dbg32_bind_plt_summary
383*5aefb655Srie #define	Dbg_bind_weak		Dbg32_bind_weak
384*5aefb655Srie 
385*5aefb655Srie #define	Dbg_cap_val_hw1		Dbg32_cap_val_hw1
386*5aefb655Srie #define	Dbg_cap_hw_candidate	Dbg32_cap_hw_candidate
387*5aefb655Srie #define	Dbg_cap_hw_filter	Dbg32_cap_hw_filter
388*5aefb655Srie #define	Dbg_cap_mapfile		Dbg32_cap_mapfile
389*5aefb655Srie #define	Dbg_cap_sec_entry	Dbg32_cap_sec_entry
390*5aefb655Srie #define	Dbg_cap_sec_title	Dbg32_cap_sec_title
391*5aefb655Srie 
392*5aefb655Srie #define	Dbg_ent_entry		Dbg32_ent_entry
393*5aefb655Srie #define	Dbg_ent_print		Dbg32_ent_print
394*5aefb655Srie 
395*5aefb655Srie #define	Dbg_file_analyze	Dbg32_file_analyze
396*5aefb655Srie #define	Dbg_file_aout		Dbg32_file_aout
397*5aefb655Srie #define	Dbg_file_ar		Dbg32_file_ar
398*5aefb655Srie #define	Dbg_file_ar_rescan	Dbg32_file_ar_rescan
399*5aefb655Srie #define	Dbg_file_bind_entry	Dbg32_file_bind_entry
400*5aefb655Srie #define	Dbg_file_bindings	Dbg32_file_bindings
401*5aefb655Srie #define	Dbg_file_cntl		Dbg32_file_cntl
402*5aefb655Srie #define	Dbg_file_config_dis	Dbg32_file_config_dis
403*5aefb655Srie #define	Dbg_file_config_obj	Dbg32_file_config_obj
404*5aefb655Srie #define	Dbg_file_del_rescan	Dbg32_file_del_rescan
405*5aefb655Srie #define	Dbg_file_delete		Dbg32_file_delete
406*5aefb655Srie #define	Dbg_file_dlclose	Dbg32_file_dlclose
407*5aefb655Srie #define	Dbg_file_dldump		Dbg32_file_dldump
408*5aefb655Srie #define	Dbg_file_dlopen		Dbg32_file_dlopen
409*5aefb655Srie #define	Dbg_file_elf		Dbg32_file_elf
410*5aefb655Srie #define	Dbg_file_filtee		Dbg32_file_filtee
411*5aefb655Srie #define	Dbg_file_filter		Dbg32_file_filter
412*5aefb655Srie #define	Dbg_file_fixname	Dbg32_file_fixname
413*5aefb655Srie #define	Dbg_file_generic	Dbg32_file_generic
414*5aefb655Srie #define	Dbg_file_hdl_action	Dbg32_file_hdl_action
415*5aefb655Srie #define	Dbg_file_hdl_collect	Dbg32_file_hdl_collect
416*5aefb655Srie #define	Dbg_file_hdl_title	Dbg32_file_hdl_title
417*5aefb655Srie #define	Dbg_file_lazyload	Dbg32_file_lazyload
418*5aefb655Srie #define	Dbg_file_ldso		Dbg32_file_ldso
419*5aefb655Srie #define	Dbg_file_mode_promote	Dbg32_file_mode_promote
420*5aefb655Srie #define	Dbg_file_needed		Dbg32_file_needed
421*5aefb655Srie #define	Dbg_file_output		Dbg32_file_output
422*5aefb655Srie #define	Dbg_file_preload	Dbg32_file_preload
423*5aefb655Srie #define	Dbg_file_prot		Dbg32_file_prot
424*5aefb655Srie #define	Dbg_file_rejected	Dbg32_file_rejected
425*5aefb655Srie #define	Dbg_file_reuse		Dbg32_file_reuse
426*5aefb655Srie #define	Dbg_file_skip		Dbg32_file_skip
427*5aefb655Srie 
428*5aefb655Srie #define	Dbg_got_display		Dbg32_got_display
429*5aefb655Srie 
430*5aefb655Srie #define	Dbg_libs_audit		Dbg32_libs_audit
431*5aefb655Srie #define	Dbg_libs_find		Dbg32_libs_find
432*5aefb655Srie #define	Dbg_libs_found		Dbg32_libs_found
433*5aefb655Srie #define	Dbg_libs_ignore		Dbg32_libs_ignore
434*5aefb655Srie #define	Dbg_libs_init		Dbg32_libs_init
435*5aefb655Srie #define	Dbg_libs_l		Dbg32_libs_l
436*5aefb655Srie #define	Dbg_libs_path		Dbg32_libs_path
437*5aefb655Srie #define	Dbg_libs_req		Dbg32_libs_req
438*5aefb655Srie #define	Dbg_libs_update		Dbg32_libs_update
439*5aefb655Srie #define	Dbg_libs_yp		Dbg32_libs_yp
440*5aefb655Srie #define	Dbg_libs_ylu		Dbg32_libs_ylu
441*5aefb655Srie 
442*5aefb655Srie #define	Dbg_map_dash		Dbg32_map_dash
443*5aefb655Srie #define	Dbg_map_ent		Dbg32_map_ent
444*5aefb655Srie #define	Dbg_map_parse		Dbg32_map_parse
445*5aefb655Srie #define	Dbg_map_pipe		Dbg32_map_pipe
446*5aefb655Srie #define	Dbg_map_seg		Dbg32_map_seg
447*5aefb655Srie #define	Dbg_map_set_atsign	Dbg32_map_set_atsign
448*5aefb655Srie #define	Dbg_map_set_equal	Dbg32_map_set_equal
449*5aefb655Srie #define	Dbg_map_size_new	Dbg32_map_size_new
450*5aefb655Srie #define	Dbg_map_size_old	Dbg32_map_size_old
451*5aefb655Srie #define	Dbg_map_sort_fini	Dbg32_map_sort_fini
452*5aefb655Srie #define	Dbg_map_sort_orig	Dbg32_map_sort_orig
453*5aefb655Srie #define	Dbg_map_symbol		Dbg32_map_symbol
454*5aefb655Srie #define	Dbg_map_version		Dbg32_map_version
455*5aefb655Srie 
456*5aefb655Srie #define	Dbg_move_adjexpandreloc	Dbg32_move_adjexpandreloc
457*5aefb655Srie #define	Dbg_move_adjmovereloc	Dbg32_move_adjmovereloc
458*5aefb655Srie #define	Dbg_move_data		Dbg32_move_data
459*5aefb655Srie #define	Dbg_move_entry1		Dbg32_move_entry1
460*5aefb655Srie #define	Dbg_move_entry2		Dbg32_move_entry2
461*5aefb655Srie #define	Dbg_move_expand		Dbg32_move_expand
462*5aefb655Srie #define	Dbg_move_input		Dbg32_move_input
463*5aefb655Srie #define	Dbg_move_outmove	Dbg32_move_outmove
464*5aefb655Srie #define	Dbg_move_outsctadj	Dbg32_move_outsctadj
465*5aefb655Srie #define	Dbg_move_parexpn	Dbg32_move_parexpn
466*5aefb655Srie 
467*5aefb655Srie #define	Dbg_reloc_apply_reg	Dbg32_reloc_apply_reg
468*5aefb655Srie #define	Dbg_reloc_apply_val	Dbg32_reloc_apply_val
469*5aefb655Srie #define	Dbg_reloc_ars_entry	Dbg32_reloc_ars_entry
470*5aefb655Srie #define	Dbg_reloc_copy		Dbg32_reloc_copy
471*5aefb655Srie #define	Dbg_reloc_discard	Dbg32_reloc_discard
472*5aefb655Srie #define	Dbg_reloc_doact		Dbg32_reloc_doact
473*5aefb655Srie #define	Dbg_reloc_doact_title	Dbg32_reloc_doact_title
474*5aefb655Srie #define	Dbg_reloc_dooutrel	Dbg32_reloc_dooutrel
475*5aefb655Srie #define	Dbg_reloc_entry		Dbg32_reloc_entry
476*5aefb655Srie #define	Dbg_reloc_error		Dbg32_reloc_error
477*5aefb655Srie #define	Dbg_reloc_generate	Dbg32_reloc_generate
478*5aefb655Srie #define	Dbg_reloc_in		Dbg32_reloc_in
479*5aefb655Srie #define	Dbg_reloc_ors_entry	Dbg32_reloc_ors_entry
480*5aefb655Srie #define	Dbg_reloc_out		Dbg32_reloc_out
481*5aefb655Srie #define	Dbg_reloc_proc		Dbg32_reloc_proc
482*5aefb655Srie #define	Dbg_reloc_run		Dbg32_reloc_run
483*5aefb655Srie #define	Dbg_reloc_transition	Dbg32_reloc_transition
484*5aefb655Srie 
485*5aefb655Srie #define	Dbg_sec_added		Dbg32_sec_added
486*5aefb655Srie #define	Dbg_sec_created		Dbg32_sec_created
487*5aefb655Srie #define	Dbg_sec_discarded	Dbg32_sec_discarded
488*5aefb655Srie #define	Dbg_sec_group		Dbg32_sec_group
489*5aefb655Srie #define	Dbg_sec_in		Dbg32_sec_in
490*5aefb655Srie #define	Dbg_sec_order_error	Dbg32_sec_order_error
491*5aefb655Srie #define	Dbg_sec_order_list	Dbg32_sec_order_list
492*5aefb655Srie #define	Dbg_sec_strtab		Dbg32_sec_strtab
493*5aefb655Srie 
494*5aefb655Srie #define	Dbg_seg_desc_entry	Dbg32_seg_desc_entry
495*5aefb655Srie #define	Dbg_seg_entry		Dbg32_seg_entry
496*5aefb655Srie #define	Dbg_seg_list		Dbg32_seg_list
497*5aefb655Srie #define	Dbg_seg_os		Dbg32_seg_os
498*5aefb655Srie #define	Dbg_seg_title		Dbg32_seg_title
499*5aefb655Srie 
500*5aefb655Srie #define	Dbg_statistics_ar	Dbg32_statistics_ar
501*5aefb655Srie #define	Dbg_statistics_ld	Dbg32_statistics_ld
502*5aefb655Srie 
503*5aefb655Srie #define	Dbg_support_action	Dbg32_support_action
504*5aefb655Srie #define	Dbg_support_load	Dbg32_support_load
505*5aefb655Srie #define	Dbg_support_req		Dbg32_support_req
506*5aefb655Srie 
507*5aefb655Srie #define	Dbg_syminfo_entry	Dbg32_syminfo_entry
508*5aefb655Srie #define	Dbg_syminfo_title	Dbg32_syminfo_title
509*5aefb655Srie 
510*5aefb655Srie #define	Dbg_syms_ar_checking	Dbg32_syms_ar_checking
511*5aefb655Srie #define	Dbg_syms_ar_entry	Dbg32_syms_ar_entry
512*5aefb655Srie #define	Dbg_syms_ar_resolve	Dbg32_syms_ar_resolve
513*5aefb655Srie #define	Dbg_syms_ar_title	Dbg32_syms_ar_title
514*5aefb655Srie #define	Dbg_syms_created	Dbg32_syms_created
515*5aefb655Srie #define	Dbg_syms_discarded	Dbg32_syms_discarded
516*5aefb655Srie #define	Dbg_syms_dlsym		Dbg32_syms_dlsym
517*5aefb655Srie #define	Dbg_syms_entered	Dbg32_syms_entered
518*5aefb655Srie #define	Dbg_syms_entry		Dbg32_syms_entry
519*5aefb655Srie #define	Dbg_syms_global		Dbg32_syms_global
520*5aefb655Srie #define	Dbg_syms_ignore		Dbg32_syms_ignore
521*5aefb655Srie #define	Dbg_syms_lazy_rescan	Dbg32_syms_lazy_rescan
522*5aefb655Srie #define	Dbg_syms_lookup		Dbg32_syms_lookup
523*5aefb655Srie #define	Dbg_syms_lookup_aout	Dbg32_syms_lookup_aout
524*5aefb655Srie #define	Dbg_syms_new		Dbg32_syms_new
525*5aefb655Srie #define	Dbg_syms_old		Dbg32_syms_old
526*5aefb655Srie #define	Dbg_syms_process	Dbg32_syms_process
527*5aefb655Srie #define	Dbg_syms_reduce		Dbg32_syms_reduce
528*5aefb655Srie #define	Dbg_syms_reloc		Dbg32_syms_reloc
529*5aefb655Srie #define	Dbg_syms_resolved	Dbg32_syms_resolved
530*5aefb655Srie #define	Dbg_syms_resolving	Dbg32_syms_resolving
531*5aefb655Srie #define	Dbg_syms_sec_entry	Dbg32_syms_sec_entry
532*5aefb655Srie #define	Dbg_syms_sec_title	Dbg32_syms_sec_title
533*5aefb655Srie #define	Dbg_syms_spec_title	Dbg32_syms_spec_title
534*5aefb655Srie #define	Dbg_syms_updated	Dbg32_syms_updated
535*5aefb655Srie #define	Dbg_syms_up_title	Dbg32_syms_up_title
536*5aefb655Srie 
537*5aefb655Srie #define	Dbg_util_broadcast	Dbg32_util_broadcast
538*5aefb655Srie #define	Dbg_util_call_array	Dbg32_util_call_array
539*5aefb655Srie #define	Dbg_util_call_fini	Dbg32_util_call_fini
540*5aefb655Srie #define	Dbg_util_call_init	Dbg32_util_call_init
541*5aefb655Srie #define	Dbg_util_call_main	Dbg32_util_call_main
542*5aefb655Srie #define	Dbg_util_collect	Dbg32_util_collect
543*5aefb655Srie #define	Dbg_util_dbnotify	Dbg32_util_dbnotify
544*5aefb655Srie #define	Dbg_util_edge_in	Dbg32_util_edge_in
545*5aefb655Srie #define	Dbg_util_edge_out	Dbg32_util_edge_out
546*5aefb655Srie #define	Dbg_util_intoolate	Dbg32_util_intoolate
547*5aefb655Srie #define	Dbg_util_nl		Dbg32_util_nl
548*5aefb655Srie #define	Dbg_util_no_init	Dbg32_util_no_init
549*5aefb655Srie #define	Dbg_util_scc_entry	Dbg32_util_scc_entry
550*5aefb655Srie #define	Dbg_util_scc_title	Dbg32_util_scc_title
551*5aefb655Srie #define	Dbg_util_str		Dbg32_util_str
552*5aefb655Srie #define	Dbg_util_wait		Dbg32_util_wait
553*5aefb655Srie 
554*5aefb655Srie #define	Dbg_unused_file		Dbg32_unused_file
555*5aefb655Srie #define	Dbg_unused_rtldinfo	Dbg32_unused_rtldinfo
556*5aefb655Srie #define	Dbg_unused_sec		Dbg32_unused_sec
557*5aefb655Srie #define	Dbg_unused_unref	Dbg32_unused_unref
558*5aefb655Srie 
559*5aefb655Srie #define	Dbg_ver_avail_entry	Dbg32_ver_avail_entry
560*5aefb655Srie #define	Dbg_ver_avail_title	Dbg32_ver_avail_title
561*5aefb655Srie #define	Dbg_ver_def_title	Dbg32_ver_def_title
562*5aefb655Srie #define	Dbg_ver_desc_entry	Dbg32_ver_desc_entry
563*5aefb655Srie #define	Dbg_ver_need_entry	Dbg32_ver_need_entry
564*5aefb655Srie #define	Dbg_ver_need_title	Dbg32_ver_need_title
565*5aefb655Srie #define	Dbg_ver_nointerface	Dbg32_ver_nointerface
566*5aefb655Srie #define	Dbg_ver_symbol		Dbg32_ver_symbol
567*5aefb655Srie 
568*5aefb655Srie #endif
569*5aefb655Srie 
570*5aefb655Srie /*
571*5aefb655Srie  * External Dbg_*() interface routines.
572*5aefb655Srie  */
573*5aefb655Srie extern	void	Dbg_args_files(Lm_list *, int, char *);
574*5aefb655Srie extern	void	Dbg_args_flags(Lm_list *, int, int);
575*5aefb655Srie extern	void	Dbg_audit_interface(Lm_list *, const char *, const char *);
576*5aefb655Srie extern	void	Dbg_audit_lib(Lm_list *, const char *);
577*5aefb655Srie extern	void	Dbg_audit_object(Lm_list *, const char *, const char *);
578*5aefb655Srie extern	void	Dbg_audit_symval(Lm_list *, const char *, const char *,
579*5aefb655Srie 		    const char *, Addr, Addr);
580*5aefb655Srie extern	void	Dbg_audit_version(Lm_list *, const char *, ulong_t);
581*5aefb655Srie 
582*5aefb655Srie extern	void	Dbg_bind_global(Rt_map *, Addr, Off, Xword, Pltbindtype,
583*5aefb655Srie 		    Rt_map *, Addr, Off, const char *, uint_t);
584*5aefb655Srie extern	void	Dbg_bind_plt_summary(Lm_list *, Half, Word, Word, Word, Word,
585*5aefb655Srie 		    Word, Word);
586*5aefb655Srie #if	defined(_ELF64)
587*5aefb655Srie extern	void	Dbg_bind_pltpad_from(Rt_map *, Addr, const char *);
588*5aefb655Srie extern	void	Dbg_bind_pltpad_to(Rt_map *, Addr, const char *, const char *);
589*5aefb655Srie #endif
590*5aefb655Srie extern	void	Dbg_bind_weak(Rt_map *, Addr, Addr, const char *);
591*5aefb655Srie 
592*5aefb655Srie extern	void	Dbg_cap_hw_candidate(Lm_list *, const char *);
593*5aefb655Srie extern	void	Dbg_cap_hw_filter(Lm_list *, const char *, Rt_map *);
594*5aefb655Srie extern	void	Dbg_cap_mapfile(Lm_list *, Xword, Xword, Half);
595*5aefb655Srie extern	void	Dbg_cap_sec_entry(Lm_list *, uint_t, Xword, Xword, Half);
596*5aefb655Srie extern	void	Dbg_cap_sec_title(Ofl_desc *);
597*5aefb655Srie extern	void	Dbg_cap_val_hw1(Lm_list *, Xword, Half);
598*5aefb655Srie 
599*5aefb655Srie extern	const char *
600*5aefb655Srie 		Dbg_demangle_name(const char *);
601*5aefb655Srie 
602*5aefb655Srie extern	void	Dbg_ent_entry(Lm_list *, Half, Ent_desc *);
603*5aefb655Srie extern	void	Dbg_ent_print(Lm_list *, Half, List *, Boolean);
604*5aefb655Srie 
6057c478bd9Sstevel@tonic-gate extern	void	Dbg_file_analyze(Rt_map *);
606*5aefb655Srie extern	void	Dbg_file_aout(Lm_list *, const char *, ulong_t, ulong_t,
607*5aefb655Srie 		    ulong_t, const char *, Aliste);
608*5aefb655Srie extern	void	Dbg_file_ar(Lm_list *, const char *, int);
609*5aefb655Srie extern	void	Dbg_file_ar_rescan(Lm_list *);
610*5aefb655Srie extern	void	Dbg_file_bind_entry(Lm_list *, Bnd_desc *);
611*5aefb655Srie extern	void	Dbg_file_bindings(Rt_map *, int);
6127c478bd9Sstevel@tonic-gate extern	void	Dbg_file_cntl(Lm_list *, Aliste, Aliste);
613*5aefb655Srie extern	void	Dbg_file_config_dis(Lm_list *, const char *, int);
614*5aefb655Srie extern	void	Dbg_file_config_obj(Lm_list *, const char *, const char *,
6157c478bd9Sstevel@tonic-gate 		    const char *);
616*5aefb655Srie extern	void	Dbg_file_del_rescan(Lm_list *);
617*5aefb655Srie extern	void	Dbg_file_delete(Rt_map *);
618*5aefb655Srie extern	void	Dbg_file_dlclose(Lm_list *, const char *, int);
619*5aefb655Srie extern	void	Dbg_file_dldump(Rt_map *, const char *, int);
620*5aefb655Srie extern	void	Dbg_file_dlopen(Rt_map *, const char *, int);
621*5aefb655Srie extern	void	Dbg_file_elf(Lm_list *, const char *, ulong_t, ulong_t,
622*5aefb655Srie 		    ulong_t, ulong_t, const char *, Aliste);
623*5aefb655Srie extern	void	Dbg_file_filtee(Lm_list *, const char *, const char *, int);
624*5aefb655Srie extern	void	Dbg_file_filter(Lm_list *, const char *, const char *, int);
625*5aefb655Srie extern	void	Dbg_file_fixname(Lm_list *, const char *, const char *);
626*5aefb655Srie extern	void	Dbg_file_generic(Lm_list *, Ifl_desc *);
6277c478bd9Sstevel@tonic-gate extern	void	Dbg_file_hdl_action(Grp_hdl *, Rt_map *, int);
6287c478bd9Sstevel@tonic-gate extern	void	Dbg_file_hdl_collect(Grp_hdl *, const char *);
6297c478bd9Sstevel@tonic-gate extern	void	Dbg_file_hdl_title(int);
630*5aefb655Srie extern	void	Dbg_file_lazyload(Rt_map *, const char *, const char *);
631*5aefb655Srie extern	void	Dbg_file_ldso(Rt_map *, char **, auxv_t *, const char *,
632*5aefb655Srie 		    Aliste);
633*5aefb655Srie extern	void	Dbg_file_mode_promote(Rt_map *, int);
634*5aefb655Srie extern	void	Dbg_file_needed(Rt_map *, const char *);
6357c478bd9Sstevel@tonic-gate extern	void	Dbg_file_output(Ofl_desc *);
636*5aefb655Srie extern	void	Dbg_file_preload(Lm_list *, const char *);
637*5aefb655Srie extern	void	Dbg_file_prot(Rt_map *, int);
638*5aefb655Srie extern	void	Dbg_file_rejected(Lm_list *, Rej_desc *);
639*5aefb655Srie extern	void	Dbg_file_reuse(Lm_list *, const char *, const char *);
640*5aefb655Srie extern	void	Dbg_file_skip(Lm_list *, const char *, const char *);
641*5aefb655Srie 
642*5aefb655Srie extern	void	Dbg_got_display(Ofl_desc *, Gottable *);
643*5aefb655Srie 
644*5aefb655Srie extern	void	Dbg_libs_audit(Lm_list *, const char *, const char *);
645*5aefb655Srie extern	void	Dbg_libs_find(Lm_list *, const char *);
646*5aefb655Srie extern	void	Dbg_libs_found(Lm_list *, const char *, int);
647*5aefb655Srie extern	void	Dbg_libs_ignore(Lm_list *, const char *);
648*5aefb655Srie extern	void	Dbg_libs_init(Lm_list *, List *, List *);
649*5aefb655Srie extern	void	Dbg_libs_l(Lm_list *, const char *, const char *);
650*5aefb655Srie extern	void	Dbg_libs_path(Lm_list *, const char *, Half, const char *);
651*5aefb655Srie extern	void	Dbg_libs_req(Lm_list *, const char *, const char *,
6527c478bd9Sstevel@tonic-gate 		    const char *);
653*5aefb655Srie extern	void	Dbg_libs_update(Lm_list *, List *, List *);
654*5aefb655Srie extern	void	Dbg_libs_yp(Lm_list *, const char *);
655*5aefb655Srie extern	void	Dbg_libs_ylu(Lm_list *, const char *, const char *, int);
656*5aefb655Srie 
657*5aefb655Srie extern	void	Dbg_map_dash(Lm_list *, const char *, Sdf_desc *);
658*5aefb655Srie extern	void	Dbg_map_ent(Lm_list *, Boolean, Ent_desc *, Ofl_desc *);
659*5aefb655Srie extern	void	Dbg_map_parse(Lm_list *, const char *);
660*5aefb655Srie extern	void	Dbg_map_pipe(Lm_list *, Sg_desc *, const char *, const Word);
661*5aefb655Srie extern	void	Dbg_map_seg(Ofl_desc *, int, Sg_desc *);
662*5aefb655Srie extern	void	Dbg_map_set_atsign(Boolean);
663*5aefb655Srie extern	void	Dbg_map_set_equal(Boolean);
664*5aefb655Srie extern	void	Dbg_map_size_new(Lm_list *, const char *);
665*5aefb655Srie extern	void	Dbg_map_size_old(Ofl_desc *, Sym_desc *);
666*5aefb655Srie extern	void	Dbg_map_sort_fini(Lm_list *, Sg_desc *);
667*5aefb655Srie extern	void	Dbg_map_sort_orig(Lm_list *, Sg_desc *);
668*5aefb655Srie extern	void	Dbg_map_symbol(Ofl_desc *, Sym_desc *);
669*5aefb655Srie extern	void	Dbg_map_version(Lm_list *, const char *, const char *, int);
670*5aefb655Srie 
671*5aefb655Srie extern 	void	Dbg_move_adjexpandreloc(Lm_list *, Xword, const char *);
672*5aefb655Srie extern 	void	Dbg_move_adjmovereloc(Lm_list *, Xword, Xword, const char *);
673*5aefb655Srie extern	void	Dbg_move_data(Rt_map *);
674*5aefb655Srie extern 	void	Dbg_move_entry1(Lm_list *, int, Move *, Sym_desc *);
675*5aefb655Srie extern 	void	Dbg_move_entry2(Lm_list *, Move *, Word, const char *);
676*5aefb655Srie extern 	void	Dbg_move_expand(Lm_list *, Move *, Addr);
677*5aefb655Srie extern 	void	Dbg_move_input(Lm_list *, const char *);
678*5aefb655Srie extern 	void	Dbg_move_outmove(Lm_list *, const char *);
679*5aefb655Srie extern 	void	Dbg_move_outsctadj(Lm_list *, Sym_desc *);
680*5aefb655Srie extern 	void	Dbg_move_parexpn(Lm_list *, const char *, const char *);
681*5aefb655Srie 
682*5aefb655Srie extern	void	Dbg_reloc_apply_reg(Lm_list *, int, Half, Xword, Xword);
683*5aefb655Srie extern	void	Dbg_reloc_apply_val(Lm_list *, int, Xword, Xword);
684*5aefb655Srie extern	void	Dbg_reloc_ars_entry(Lm_list *, int, Word, Half, Rel_desc *);
685*5aefb655Srie extern	void	Dbg_reloc_copy(Rt_map *, Rt_map *, const char *, int);
686*5aefb655Srie extern	void	Dbg_reloc_discard(Lm_list *, Half, Rel_desc *);
687*5aefb655Srie extern	void	Dbg_reloc_doact(Lm_list *, int, Half, Word, Word, Xword, Xword,
688*5aefb655Srie 		    const char *, Os_desc *);
689*5aefb655Srie extern	void	Dbg_reloc_doact_title(Lm_list *);
690*5aefb655Srie extern	void	Dbg_reloc_dooutrel(Lm_list *, Word);
691*5aefb655Srie extern	void	Dbg_reloc_entry(Lm_list *, const char *, Half, Word, void *,
692*5aefb655Srie 		    const char *, const char *, const char *);
693*5aefb655Srie extern	void	Dbg_reloc_error(Lm_list *, int, Half, Word, void *,
6947c478bd9Sstevel@tonic-gate 		    const char *);
695*5aefb655Srie extern	void	Dbg_reloc_generate(Lm_list *, Os_desc *, Word);
696*5aefb655Srie extern	void	Dbg_reloc_in(Lm_list *, int, Half, Word, void *, const char *,
6977c478bd9Sstevel@tonic-gate 		    const char *);
698*5aefb655Srie extern	void	Dbg_reloc_ors_entry(Lm_list *, int, Word, Half, Rel_desc *);
699*5aefb655Srie extern	void	Dbg_reloc_out(Ofl_desc *, int, Word, void *, const char *,
7007c478bd9Sstevel@tonic-gate 		    const char *);
701*5aefb655Srie extern	void	Dbg_reloc_proc(Lm_list *, Os_desc *, Is_desc *, Is_desc *);
702*5aefb655Srie extern	void	Dbg_reloc_run(Rt_map *, uint_t, int, int);
703*5aefb655Srie extern	void	Dbg_reloc_transition(Lm_list *, Half, Word, Word, Xword,
7047c478bd9Sstevel@tonic-gate 		    const char *);
705*5aefb655Srie 
706*5aefb655Srie extern	void	Dbg_sec_added(Lm_list *, Os_desc *, Sg_desc *);
707*5aefb655Srie extern	void	Dbg_sec_created(Lm_list *, Os_desc *, Sg_desc *);
708*5aefb655Srie extern	void	Dbg_sec_discarded(Lm_list *, Is_desc *, Is_desc *);
709*5aefb655Srie extern	void	Dbg_sec_group(Lm_list *, Is_desc *, Group_desc *);
710*5aefb655Srie extern	void	Dbg_sec_in(Lm_list *, Is_desc *);
711*5aefb655Srie extern	void	Dbg_sec_order_error(Lm_list *, Ifl_desc *, Word, int);
7127c478bd9Sstevel@tonic-gate extern	void	Dbg_sec_order_list(Ofl_desc *, int);
713*5aefb655Srie extern	void	Dbg_sec_strtab(Lm_list *, Os_desc *, Str_tbl *);
714*5aefb655Srie 
715*5aefb655Srie extern	void	Dbg_seg_desc_entry(Lm_list *, Half, int, Sg_desc *);
716*5aefb655Srie extern	void	Dbg_seg_entry(Ofl_desc *, int, Sg_desc *);
717*5aefb655Srie extern	void	Dbg_seg_list(Lm_list *, Half, List *);
7187c478bd9Sstevel@tonic-gate extern	void	Dbg_seg_os(Ofl_desc *, Os_desc *, int);
719*5aefb655Srie extern	void	Dbg_seg_title(Lm_list *);
720*5aefb655Srie 
7217c478bd9Sstevel@tonic-gate extern	void	Dbg_statistics_ar(Ofl_desc *);
7227c478bd9Sstevel@tonic-gate extern	void	Dbg_statistics_ld(Ofl_desc *);
723*5aefb655Srie 
724*5aefb655Srie extern	void	Dbg_support_action(Lm_list *, const char *, const char *,
725*5aefb655Srie 		    Support_ndx, const char *);
726*5aefb655Srie extern	void	Dbg_support_load(Lm_list *, const char *, const char *);
727*5aefb655Srie extern	void	Dbg_support_req(Lm_list *, const char *, int);
728*5aefb655Srie 
729*5aefb655Srie extern	void	Dbg_syminfo_entry(Lm_list *, Word, Syminfo *, Sym *,
7307c478bd9Sstevel@tonic-gate 		    const char *, Dyn *);
731*5aefb655Srie extern	void	Dbg_syminfo_title(Lm_list *);
732*5aefb655Srie 
733*5aefb655Srie extern	void	Dbg_syms_ar_checking(Lm_list *, Xword, Elf_Arsym *,
734*5aefb655Srie 		    const char *);
735*5aefb655Srie extern	void	Dbg_syms_ar_entry(Lm_list *, Xword, Elf_Arsym *);
736*5aefb655Srie extern	void	Dbg_syms_ar_resolve(Lm_list *, Xword, Elf_Arsym *,
737*5aefb655Srie 		    const char *, int);
738*5aefb655Srie extern	void	Dbg_syms_ar_title(Lm_list *, const char *, int);
739*5aefb655Srie extern	void	Dbg_syms_created(Lm_list *, const char *);
740*5aefb655Srie extern	void	Dbg_syms_discarded(Lm_list *, Sym_desc *, Is_desc *);
741*5aefb655Srie extern	void	Dbg_syms_dlsym(Rt_map *, const char *, const char *, int);
742*5aefb655Srie extern	void	Dbg_syms_entered(Ofl_desc *, Sym *, Sym_desc *);
743*5aefb655Srie extern	void	Dbg_syms_entry(Lm_list *, Word, Sym_desc *);
744*5aefb655Srie extern	void	Dbg_syms_global(Lm_list *, Word, const char *);
745*5aefb655Srie extern	void	Dbg_syms_ignore(Ofl_desc *, Sym_desc *);
746*5aefb655Srie extern	void	Dbg_syms_lazy_rescan(Lm_list *, const char *);
747*5aefb655Srie extern	void	Dbg_syms_lookup(Rt_map *, const char *, const char *);
748*5aefb655Srie #if	!(defined(_ELF64))
749*5aefb655Srie extern	void	Dbg_syms_lookup_aout(Lm_list *, const char *);
750*5aefb655Srie #endif
751*5aefb655Srie extern	void	Dbg_syms_new(Ofl_desc *, Sym *, Sym_desc *);
752*5aefb655Srie extern	void	Dbg_syms_old(Ofl_desc *, Sym_desc *);
753*5aefb655Srie extern	void	Dbg_syms_process(Lm_list *, Ifl_desc *);
754*5aefb655Srie extern	void	Dbg_syms_reduce(Ofl_desc *, int, Sym_desc *, int,
755*5aefb655Srie 		    const char *);
756*5aefb655Srie extern	void	Dbg_syms_reloc(Ofl_desc *, Sym_desc *);
757*5aefb655Srie extern	void	Dbg_syms_resolved(Ofl_desc *, Sym_desc *);
758*5aefb655Srie extern	void	Dbg_syms_resolving(Ofl_desc *, Word, const char *, int, int,
759*5aefb655Srie 		    Sym *, Sym *, Sym_desc *, Ifl_desc *);
760*5aefb655Srie extern	void	Dbg_syms_sec_entry(Lm_list *, Word, Sg_desc *, Os_desc *);
761*5aefb655Srie extern	void	Dbg_syms_sec_title(Lm_list *);
762*5aefb655Srie extern	void	Dbg_syms_spec_title(Lm_list *);
763*5aefb655Srie extern	void	Dbg_syms_updated(Ofl_desc *, Sym_desc *, const char *);
764*5aefb655Srie extern	void	Dbg_syms_up_title(Lm_list *);
765*5aefb655Srie 
766*5aefb655Srie extern	void	Dbg_tls_modactivity(Lm_list *, void *, uint_t);
767*5aefb655Srie extern	void	Dbg_tls_static_block(Lm_list *, void *, ulong_t);
768*5aefb655Srie 
769*5aefb655Srie extern	void	Dbg_util_broadcast(Rt_map *);
770*5aefb655Srie extern	void	Dbg_util_call_array(Rt_map *, void *, int, Word);
771*5aefb655Srie extern	void	Dbg_util_call_fini(Rt_map *);
772*5aefb655Srie extern	void	Dbg_util_call_init(Rt_map *, int);
773*5aefb655Srie extern	void	Dbg_util_call_main(Rt_map *);
774*5aefb655Srie extern	void	Dbg_util_collect(Rt_map *, int, int);
775*5aefb655Srie extern	void	Dbg_util_dbnotify(Lm_list *, rd_event_e, r_state_e);
776*5aefb655Srie extern	void	Dbg_util_edge_in(Lm_list *, Rt_map *, uint_t, Rt_map *,
777*5aefb655Srie 		    int, int);
778*5aefb655Srie extern	void	Dbg_util_edge_out(Rt_map *, Rt_map *);
779*5aefb655Srie extern	void	Dbg_util_intoolate(Rt_map *);
780*5aefb655Srie extern	void	Dbg_util_nl(Lm_list *, int);
781*5aefb655Srie extern	void	Dbg_util_no_init(Rt_map *);
782*5aefb655Srie extern	void	Dbg_util_str(Lm_list *, const char *);
783*5aefb655Srie extern	void	Dbg_util_scc_entry(Rt_map *, uint_t);
784*5aefb655Srie extern	void	Dbg_util_scc_title(Lm_list *, int);
785*5aefb655Srie extern	void	Dbg_util_wait(Rt_map *, Rt_map *, int);
786*5aefb655Srie 
787*5aefb655Srie extern	void	Dbg_unused_file(Lm_list *, const char *, int, uint_t);
788*5aefb655Srie extern	void	Dbg_unused_rtldinfo(Rt_map *);
789*5aefb655Srie extern	void	Dbg_unused_sec(Lm_list *, Is_desc *);
790*5aefb655Srie extern	void	Dbg_unused_unref(Rt_map *, const char *);
791*5aefb655Srie 
792*5aefb655Srie extern	void	Dbg_ver_avail_entry(Lm_list *, Ver_index *, const char *);
793*5aefb655Srie extern	void	Dbg_ver_avail_title(Lm_list *, const char *);
794*5aefb655Srie extern	void	Dbg_ver_def_title(Lm_list *, const char *);
795*5aefb655Srie extern	void	Dbg_ver_desc_entry(Lm_list *, Ver_desc *);
796*5aefb655Srie extern	void	Dbg_ver_need_entry(Lm_list *, Half, const char *,
797*5aefb655Srie 		    const char *);
798*5aefb655Srie extern	void	Dbg_ver_need_title(Lm_list *, const char *);
799*5aefb655Srie extern	void	Dbg_ver_nointerface(Lm_list *, const char *);
800*5aefb655Srie extern	void	Dbg_ver_symbol(Lm_list *, const char *);
8017c478bd9Sstevel@tonic-gate 
8027c478bd9Sstevel@tonic-gate /*
803*5aefb655Srie  * Define Elf_*() interface flags.
8047c478bd9Sstevel@tonic-gate  */
805*5aefb655Srie #define	ELF_DBG_ELFDUMP		1
806*5aefb655Srie #define	ELF_DBG_RTLD		2
807*5aefb655Srie #define	ELF_DBG_LD		3
8087c478bd9Sstevel@tonic-gate 
8097c478bd9Sstevel@tonic-gate /*
810*5aefb655Srie  * Define generic Elf_*() interfaces.
8117c478bd9Sstevel@tonic-gate  */
812*5aefb655Srie extern	void Elf_syminfo_entry(Lm_list *, Word, Syminfo *, const char *,
813*5aefb655Srie 	    const char *);
814*5aefb655Srie extern	void Elf_syminfo_title(Lm_list *);
8157c478bd9Sstevel@tonic-gate 
816*5aefb655Srie /*
817*5aefb655Srie  * Establish ELF32 and ELF64 class Elf_*() interfaces.
818*5aefb655Srie  */
819*5aefb655Srie #if	defined(_ELF64)
820*5aefb655Srie 
821*5aefb655Srie #define	Elf_cap_entry		Elf64_cap_entry
822*5aefb655Srie #define	Elf_cap_title		Elf64_cap_title
823*5aefb655Srie 
824*5aefb655Srie #define	Elf_demangle_name	Elf64_demangle_name
825*5aefb655Srie #define	Elf_dyn_entry		Elf64_dyn_entry
826*5aefb655Srie #define	Elf_dyn_title		Elf64_dyn_title
827*5aefb655Srie 
828*5aefb655Srie #define	Elf_ehdr		Elf64_ehdr
829*5aefb655Srie 
830*5aefb655Srie #define	Elf_got_entry		Elf64_got_entry
831*5aefb655Srie #define	Elf_got_title		Elf64_got_title
832*5aefb655Srie 
833*5aefb655Srie #define	Elf_reloc_apply_reg	Elf64_reloc_apply_reg
834*5aefb655Srie #define	Elf_reloc_apply_val	Elf64_reloc_apply_val
835*5aefb655Srie #define	Elf_reloc_entry_1	Elf64_reloc_entry_1
836*5aefb655Srie #define	Elf_reloc_entry_2	Elf64_reloc_entry_2
837*5aefb655Srie #define	Elf_reloc_title		Elf64_reloc_title
838*5aefb655Srie 
839*5aefb655Srie #define	Elf_phdr		Elf64_phdr
840*5aefb655Srie 
841*5aefb655Srie #define	Elf_shdr		Elf64_shdr
842*5aefb655Srie 
843*5aefb655Srie #define	Elf_syms_table_entry	Elf64_syms_table_entry
844*5aefb655Srie #define	Elf_syms_table_title	Elf64_syms_table_title
845*5aefb655Srie 
846*5aefb655Srie #define	Elf_ver_def_title	Elf64_ver_def_title
847*5aefb655Srie #define	Elf_ver_line_1		Elf64_ver_line_1
848*5aefb655Srie #define	Elf_ver_line_2		Elf64_ver_line_2
849*5aefb655Srie #define	Elf_ver_line_3		Elf64_ver_line_3
850*5aefb655Srie #define	Elf_ver_line_4		Elf64_ver_line_4
851*5aefb655Srie #define	Elf_ver_line_5		Elf64_ver_line_5
852*5aefb655Srie #define	Elf_ver_need_title	Elf64_ver_need_title
853*5aefb655Srie 
854*5aefb655Srie #else
855*5aefb655Srie 
856*5aefb655Srie #define	Elf_cap_entry		Elf32_cap_entry
857*5aefb655Srie #define	Elf_cap_title		Elf32_cap_title
858*5aefb655Srie 
859*5aefb655Srie #define	Elf_demangle_name	Elf32_demangle_name
860*5aefb655Srie #define	Elf_dyn_entry		Elf32_dyn_entry
861*5aefb655Srie #define	Elf_dyn_title		Elf32_dyn_title
862*5aefb655Srie 
863*5aefb655Srie #define	Elf_ehdr		Elf32_ehdr
864*5aefb655Srie 
865*5aefb655Srie #define	Elf_got_entry		Elf32_got_entry
866*5aefb655Srie #define	Elf_got_title		Elf32_got_title
867*5aefb655Srie 
868*5aefb655Srie #define	Elf_reloc_apply_reg	Elf32_reloc_apply_reg
869*5aefb655Srie #define	Elf_reloc_apply_val	Elf32_reloc_apply_val
870*5aefb655Srie #define	Elf_reloc_entry_1	Elf32_reloc_entry_1
871*5aefb655Srie #define	Elf_reloc_entry_2	Elf32_reloc_entry_2
872*5aefb655Srie #define	Elf_reloc_title		Elf32_reloc_title
873*5aefb655Srie 
874*5aefb655Srie #define	Elf_phdr		Elf32_phdr
875*5aefb655Srie 
876*5aefb655Srie #define	Elf_shdr		Elf32_shdr
877*5aefb655Srie 
878*5aefb655Srie #define	Elf_syms_table_entry	Elf32_syms_table_entry
879*5aefb655Srie #define	Elf_syms_table_title	Elf32_syms_table_title
880*5aefb655Srie 
881*5aefb655Srie #define	Elf_ver_def_title	Elf32_ver_def_title
882*5aefb655Srie #define	Elf_ver_line_1		Elf32_ver_line_1
883*5aefb655Srie #define	Elf_ver_line_2		Elf32_ver_line_2
884*5aefb655Srie #define	Elf_ver_line_3		Elf32_ver_line_3
885*5aefb655Srie #define	Elf_ver_line_4		Elf32_ver_line_4
886*5aefb655Srie #define	Elf_ver_line_5		Elf32_ver_line_5
887*5aefb655Srie #define	Elf_ver_need_title	Elf32_ver_need_title
888*5aefb655Srie 
889*5aefb655Srie #endif
890*5aefb655Srie 
891*5aefb655Srie extern	void	Elf_cap_entry(Lm_list *, Cap *, int, Half);
892*5aefb655Srie extern	void	Elf_cap_title(Lm_list *);
893*5aefb655Srie 
894*5aefb655Srie extern	const char \
895*5aefb655Srie 		*Elf_demangle_name(const char *);
896*5aefb655Srie extern	void	Elf_dyn_entry(Lm_list *, Dyn *, int, const char *, Half);
897*5aefb655Srie extern	void	Elf_dyn_title(Lm_list *);
898*5aefb655Srie 
899*5aefb655Srie extern	void	Elf_ehdr(Lm_list *, Ehdr *, Shdr *);
900*5aefb655Srie 
901*5aefb655Srie extern	void	Elf_got_entry(Lm_list *, Sword, Addr, Xword, Half, Word, void *,
9027c478bd9Sstevel@tonic-gate 		    const char *);
903*5aefb655Srie extern	void	Elf_got_title(Lm_list *);
904*5aefb655Srie 
905*5aefb655Srie extern	void	Elf_phdr(Lm_list *, Half, Phdr *);
906*5aefb655Srie 
907*5aefb655Srie extern	void	Elf_reloc_apply_val(Lm_list *, int, Xword, Xword);
908*5aefb655Srie extern	void	Elf_reloc_apply_reg(Lm_list *, int, Half, Xword, Xword);
909*5aefb655Srie extern	void	Elf_reloc_entry_1(Lm_list *, int, const char *, Half, Word,
910*5aefb655Srie 		    void *, const char *, const char *, const char *);
911*5aefb655Srie extern	void	Elf_reloc_entry_2(Lm_list *, int, const char *, Word,
912*5aefb655Srie 		    const char *, Off, Sxword, const char *, const char *,
9137c478bd9Sstevel@tonic-gate 		    const char *);
914*5aefb655Srie extern	void	Elf_reloc_title(Lm_list *, int, Word);
915*5aefb655Srie 
916*5aefb655Srie extern	void	Elf_shdr(Lm_list *, Half, Shdr *);
917*5aefb655Srie 
918*5aefb655Srie extern	void	Elf_syms_table_entry(Lm_list *, int, const char *, Half, Sym *,
919*5aefb655Srie 		    Word, const char *, const char *);
920*5aefb655Srie extern	void	Elf_syms_table_title(Lm_list *, int);
921*5aefb655Srie 
922*5aefb655Srie extern	void	Elf_ver_def_title(Lm_list *);
923*5aefb655Srie extern	void	Elf_ver_line_1(Lm_list *, const char *, const char *,
9247c478bd9Sstevel@tonic-gate 		    const char *, const char *);
925*5aefb655Srie extern	void	Elf_ver_line_2(Lm_list *, const char *, const char *);
926*5aefb655Srie extern	void	Elf_ver_line_3(Lm_list *, const char *, const char *,
9277c478bd9Sstevel@tonic-gate 		    const char *);
928*5aefb655Srie extern	void	Elf_ver_line_4(Lm_list *, const char *);
929*5aefb655Srie extern	void	Elf_ver_line_5(Lm_list *, const char *, const char *);
930*5aefb655Srie extern	void	Elf_ver_need_title(Lm_list *);
9317c478bd9Sstevel@tonic-gate 
9327c478bd9Sstevel@tonic-gate #ifdef	__cplusplus
9337c478bd9Sstevel@tonic-gate }
9347c478bd9Sstevel@tonic-gate #endif
9357c478bd9Sstevel@tonic-gate 
9367c478bd9Sstevel@tonic-gate #endif /* _DEBUG_H */
937