xref: /titanic_50/usr/src/cmd/sgs/include/debug.h (revision 7247f8883be6bcac5fe4735b6f87f873387dbbef)
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
55aefb655Srie  * Common Development and Distribution License (the "License").
65aefb655Srie  * 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 /*
23d579eb63Sab196087  * Copyright 2007 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 /*
335aefb655Srie  * Global include file for lddbg debugging.
347c478bd9Sstevel@tonic-gate  *
355aefb655Srie  * ld(1) and ld.so.1(1) carry out all diagnostic debugging calls via lazy
365aefb655Srie  * loading the library liblddbg.so.  Thus debugging is always enabled.  The
375aefb655Srie  * 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
465aefb655Srie  *	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 /*
585aefb655Srie  * 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
70c13de8f6Sab196087 #define	DBG_CONF_ABIMISMATCH	5
717c478bd9Sstevel@tonic-gate 
727c478bd9Sstevel@tonic-gate #define	DBG_ORDER_INFO_RANGE	1	/* sh_link out of range */
737c478bd9Sstevel@tonic-gate #define	DBG_ORDER_INFO_ORDER	2	/* sh_info also ordered */
747c478bd9Sstevel@tonic-gate #define	DBG_ORDER_LINK_OUTRANGE	3	/* sh_link out of range */
757c478bd9Sstevel@tonic-gate #define	DBG_ORDER_FLAGS		4	/* sh_flags do not match */
767c478bd9Sstevel@tonic-gate #define	DBG_ORDER_CYCLIC	5	/* sh_link cyclic */
777c478bd9Sstevel@tonic-gate #define	DBG_ORDER_LINK_ERROR	6	/* sh_link (one) has an error */
787c478bd9Sstevel@tonic-gate 
797c478bd9Sstevel@tonic-gate #define	DBG_INIT_SORT		1	/* calling init from sorted order */
807c478bd9Sstevel@tonic-gate #define	DBG_INIT_PEND		2	/* calling pending init */
817c478bd9Sstevel@tonic-gate #define	DBG_INIT_DYN		3	/* dynamically triggered init */
827c478bd9Sstevel@tonic-gate #define	DBG_INIT_DONE		4	/* init completed */
837c478bd9Sstevel@tonic-gate 
847c478bd9Sstevel@tonic-gate #define	DBG_DLSYM_DEF		0
857c478bd9Sstevel@tonic-gate #define	DBG_DLSYM_NEXT		1
867c478bd9Sstevel@tonic-gate #define	DBG_DLSYM_DEFAULT	2
877c478bd9Sstevel@tonic-gate #define	DBG_DLSYM_SELF		3
887c478bd9Sstevel@tonic-gate #define	DBG_DLSYM_PROBE		4
897c478bd9Sstevel@tonic-gate 
907c478bd9Sstevel@tonic-gate #define	DBG_DLCLOSE_NULL	0
917c478bd9Sstevel@tonic-gate #define	DBG_DLCLOSE_IGNORE	1
927c478bd9Sstevel@tonic-gate #define	DBG_DLCLOSE_RESCAN	2
937c478bd9Sstevel@tonic-gate 
947c478bd9Sstevel@tonic-gate #define	DBG_WAIT_INIT		1
957c478bd9Sstevel@tonic-gate #define	DBG_WAIT_FINI		2
967c478bd9Sstevel@tonic-gate #define	DBG_WAIT_SYMBOL		3
977c478bd9Sstevel@tonic-gate 
987c478bd9Sstevel@tonic-gate #define	DBG_SYM_REDUCE_GLOBAL	1	/* reporting global symbols to local */
997c478bd9Sstevel@tonic-gate #define	DBG_SYM_REDUCE_RETAIN	2	/* reporting non reduced local syms */
1007c478bd9Sstevel@tonic-gate 
1017c478bd9Sstevel@tonic-gate #define	DBG_DEP_CREATE		1	/* Group handle operations */
1027c478bd9Sstevel@tonic-gate #define	DBG_DEP_ADD		2
1037c478bd9Sstevel@tonic-gate #define	DBG_DEP_DELETE		3
1047c478bd9Sstevel@tonic-gate #define	DBG_DEP_REMOVE		4
1057c478bd9Sstevel@tonic-gate #define	DBG_DEP_REMAIN		5
1067c478bd9Sstevel@tonic-gate #define	DBG_DEP_ORPHAN		6
1077c478bd9Sstevel@tonic-gate #define	DBG_DEP_REINST		7
1087c478bd9Sstevel@tonic-gate 
1097c478bd9Sstevel@tonic-gate #define	DBG_BINFO_FOUND		0x0001	/* information regarding binding */
1107c478bd9Sstevel@tonic-gate #define	DBG_BINFO_DIRECT	0x0002	/* bound directly */
1117c478bd9Sstevel@tonic-gate #define	DBG_BINFO_COPYREF	0x0004	/* bound to copy relocated reference */
1127c478bd9Sstevel@tonic-gate #define	DBG_BINFO_FILTEE	0x0008	/* bound to filtee */
1137c478bd9Sstevel@tonic-gate #define	DBG_BINFO_INTERPOSE	0x0010	/* bound to an identified interposer */
1147c478bd9Sstevel@tonic-gate #define	DBG_BINFO_PLTADDR	0x0020	/* bound to executables undefined plt */
1157c478bd9Sstevel@tonic-gate #define	DBG_BINFO_MSK		0xffff
1167c478bd9Sstevel@tonic-gate 
1177c478bd9Sstevel@tonic-gate #define	DBG_CAP_INITIAL		0
1187c478bd9Sstevel@tonic-gate #define	DBG_CAP_IGNORE		1
1197c478bd9Sstevel@tonic-gate #define	DBG_CAP_OLD		2
1207c478bd9Sstevel@tonic-gate #define	DBG_CAP_NEW		3
1217c478bd9Sstevel@tonic-gate #define	DBG_CAP_RESOLVED	4
1227c478bd9Sstevel@tonic-gate 
1237c478bd9Sstevel@tonic-gate #define	DBG_REL_START		1
1247c478bd9Sstevel@tonic-gate #define	DBG_REL_FINISH		2
1257c478bd9Sstevel@tonic-gate #define	DBG_REL_NONE		3
1267c478bd9Sstevel@tonic-gate 
1275aefb655Srie #define	DBG_NL_STD		0	/* newline controllers - standard and */
1285aefb655Srie #define	DBG_NL_FRC		2	/*    forced. */
1297c478bd9Sstevel@tonic-gate 
1307c478bd9Sstevel@tonic-gate /*
1315aefb655Srie  * Define a debug descriptor, and a user macro that inspects the descriptor as
1325aefb655Srie  * a means of triggering a class of diagnostic output.
1337c478bd9Sstevel@tonic-gate  */
1345aefb655Srie typedef struct {
1355aefb655Srie 	uint_t		d_class;	/* debugging classes */
1365aefb655Srie 	uint_t		d_extra;	/* extra information for classes */
1375aefb655Srie 	Alist		*d_list;	/* associated strings */
1385aefb655Srie } Dbg_desc;
1397c478bd9Sstevel@tonic-gate 
1405aefb655Srie extern	Dbg_desc	*dbg_desc;
1415aefb655Srie 
1425aefb655Srie #define	DBG_ENABLED	(dbg_desc->d_class)
1435aefb655Srie #define	DBG_CALL(func)	if (DBG_ENABLED) func
1447c478bd9Sstevel@tonic-gate 
1457c478bd9Sstevel@tonic-gate /*
1467c478bd9Sstevel@tonic-gate  * Most debugging tokens are interpreted within liblddbg, and thus any flags
1475aefb655Srie  * within d_class are only meaningful to this library.  The following flags
1485aefb655Srie  * extend the d_class diagnostic, and are maintained in d_extra.  These flags
1495aefb655Srie  * may be interpreted by the debugging library itself or from the callers
1505aefb655Srie  * dbg_print() routine.
1517c478bd9Sstevel@tonic-gate  */
1525aefb655Srie #define	DBG_E_DETAIL	0x0001		/* add detail to a class */
1535aefb655Srie #define	DBG_E_LONG	0x0002		/* use long names (ie. no truncation) */
1545aefb655Srie 
1555aefb655Srie #define	DBG_E_STDNL	0x0010		/* standard newline indicator */
1565aefb655Srie 
1575aefb655Srie #define	DBG_E_SNAME	0x0100		/* prepend simple name (ld only) */
1585aefb655Srie #define	DBG_E_FNAME	0x0200		/* prepend full name (ld only) */
1595aefb655Srie #define	DBG_E_CLASS	0x0400		/* prepend ELF class (ld only) */
1605aefb655Srie #define	DBG_E_LMID	0x0800		/* prepend link-map id (ld.so.1 only) */
1615aefb655Srie #define	DBG_E_DEMANGLE	0x1000		/* demangle symbol names */
1625aefb655Srie 
1635aefb655Srie #define	DBG_NOTDETAIL()	!(dbg_desc->d_extra & DBG_E_DETAIL)
1645aefb655Srie #define	DBG_NOTLONG()	!(dbg_desc->d_extra & DBG_E_LONG)
1655aefb655Srie 
1665aefb655Srie #define	DBG_ISSNAME()	(dbg_desc->d_extra & DBG_E_SNAME)
1675aefb655Srie #define	DBG_ISFNAME()	(dbg_desc->d_extra & DBG_E_FNAME)
1685aefb655Srie #define	DBG_ISCLASS()	(dbg_desc->d_extra & DBG_E_CLASS)
1695aefb655Srie #define	DBG_ISLMID()	(dbg_desc->d_extra & DBG_E_LMID)
1705aefb655Srie #define	DBG_ISDEMANGLE() \
1715aefb655Srie 			(dbg_desc->d_extra & DBG_E_DEMANGLE)
1727c478bd9Sstevel@tonic-gate 
1737c478bd9Sstevel@tonic-gate /*
1745aefb655Srie  * Print routine, this must be supplied by the application.  The initial
1755aefb655Srie  * argument may provide a link-map list to associate with the format statement
1765aefb655Srie  * that follows.
1777c478bd9Sstevel@tonic-gate  */
1785aefb655Srie /* PRINTFLIKE2 */
1795aefb655Srie extern	void		dbg_print(Lm_list *, const char *, ...);
1807c478bd9Sstevel@tonic-gate 
1815aefb655Srie extern	uintptr_t	Dbg_setup(const char *, Dbg_desc *);
1827c478bd9Sstevel@tonic-gate 
1837c478bd9Sstevel@tonic-gate /*
1845aefb655Srie  * Establish ELF32 and ELF64 class Dbg_*() interfaces.
1857c478bd9Sstevel@tonic-gate  */
1865aefb655Srie #if	defined(_ELF64)
1877c478bd9Sstevel@tonic-gate 
1885aefb655Srie #define	Dbg_demangle_name	Dbg64_demangle_name
1895aefb655Srie 
1905aefb655Srie #define	Dbg_bind_global		Dbg64_bind_global
1915aefb655Srie #define	Dbg_bind_plt_summary	Dbg64_bind_plt_summary
1925aefb655Srie #define	Dbg_bind_pltpad_from	Dbg64_bind_pltpad_from
1935aefb655Srie #define	Dbg_bind_pltpad_to	Dbg64_bind_pltpad_to
1945aefb655Srie #define	Dbg_bind_weak		Dbg64_bind_weak
1955aefb655Srie 
1965aefb655Srie #define	Dbg_cap_val_hw1		Dbg64_cap_val_hw1
1975aefb655Srie #define	Dbg_cap_hw_candidate	Dbg64_cap_hw_candidate
1985aefb655Srie #define	Dbg_cap_hw_filter	Dbg64_cap_hw_filter
1995aefb655Srie #define	Dbg_cap_mapfile		Dbg64_cap_mapfile
2005aefb655Srie #define	Dbg_cap_sec_entry	Dbg64_cap_sec_entry
2015aefb655Srie #define	Dbg_cap_sec_title	Dbg64_cap_sec_title
2025aefb655Srie 
2035aefb655Srie #define	Dbg_ent_entry		Dbg64_ent_entry
2045aefb655Srie #define	Dbg_ent_print		Dbg64_ent_print
2055aefb655Srie 
2065aefb655Srie #define	Dbg_file_analyze	Dbg64_file_analyze
2075aefb655Srie #define	Dbg_file_aout		Dbg64_file_aout
2085aefb655Srie #define	Dbg_file_ar		Dbg64_file_ar
2095aefb655Srie #define	Dbg_file_ar_rescan	Dbg64_file_ar_rescan
2105aefb655Srie #define	Dbg_file_bind_entry	Dbg64_file_bind_entry
2115aefb655Srie #define	Dbg_file_bindings	Dbg64_file_bindings
21202ca3e02Srie #define	Dbg_file_cleanup	Dbg64_file_cleanup
2135aefb655Srie #define	Dbg_file_cntl		Dbg64_file_cntl
2145aefb655Srie #define	Dbg_file_config_dis	Dbg64_file_config_dis
2155aefb655Srie #define	Dbg_file_config_obj	Dbg64_file_config_obj
2165aefb655Srie #define	Dbg_file_del_rescan	Dbg64_file_del_rescan
2175aefb655Srie #define	Dbg_file_delete		Dbg64_file_delete
2185aefb655Srie #define	Dbg_file_dlclose	Dbg64_file_dlclose
2195aefb655Srie #define	Dbg_file_dldump		Dbg64_file_dldump
2205aefb655Srie #define	Dbg_file_dlopen		Dbg64_file_dlopen
2215aefb655Srie #define	Dbg_file_elf		Dbg64_file_elf
2225aefb655Srie #define	Dbg_file_filtee		Dbg64_file_filtee
2235aefb655Srie #define	Dbg_file_filter		Dbg64_file_filter
2245aefb655Srie #define	Dbg_file_fixname	Dbg64_file_fixname
2255aefb655Srie #define	Dbg_file_generic	Dbg64_file_generic
2265aefb655Srie #define	Dbg_file_hdl_action	Dbg64_file_hdl_action
2275aefb655Srie #define	Dbg_file_hdl_collect	Dbg64_file_hdl_collect
2285aefb655Srie #define	Dbg_file_hdl_title	Dbg64_file_hdl_title
2295aefb655Srie #define	Dbg_file_lazyload	Dbg64_file_lazyload
2305aefb655Srie #define	Dbg_file_ldso		Dbg64_file_ldso
2315aefb655Srie #define	Dbg_file_mode_promote	Dbg64_file_mode_promote
2323906e0c2Srie #define	Dbg_file_modified	Dbg64_file_modified
2335aefb655Srie #define	Dbg_file_needed		Dbg64_file_needed
2345aefb655Srie #define	Dbg_file_output		Dbg64_file_output
2355aefb655Srie #define	Dbg_file_preload	Dbg64_file_preload
2365aefb655Srie #define	Dbg_file_prot		Dbg64_file_prot
2375aefb655Srie #define	Dbg_file_rejected	Dbg64_file_rejected
2385aefb655Srie #define	Dbg_file_reuse		Dbg64_file_reuse
2395aefb655Srie #define	Dbg_file_skip		Dbg64_file_skip
2405aefb655Srie 
2415aefb655Srie #define	Dbg_got_display		Dbg64_got_display
2425aefb655Srie 
2435aefb655Srie #define	Dbg_libs_audit		Dbg64_libs_audit
2445aefb655Srie #define	Dbg_libs_find		Dbg64_libs_find
2455aefb655Srie #define	Dbg_libs_found		Dbg64_libs_found
2465aefb655Srie #define	Dbg_libs_ignore		Dbg64_libs_ignore
2475aefb655Srie #define	Dbg_libs_init		Dbg64_libs_init
2485aefb655Srie #define	Dbg_libs_l		Dbg64_libs_l
2495aefb655Srie #define	Dbg_libs_path		Dbg64_libs_path
2505aefb655Srie #define	Dbg_libs_req		Dbg64_libs_req
2515aefb655Srie #define	Dbg_libs_update		Dbg64_libs_update
2525aefb655Srie #define	Dbg_libs_yp		Dbg64_libs_yp
2535aefb655Srie #define	Dbg_libs_ylu		Dbg64_libs_ylu
2545aefb655Srie 
2555aefb655Srie #define	Dbg_map_dash		Dbg64_map_dash
2565aefb655Srie #define	Dbg_map_ent		Dbg64_map_ent
2575aefb655Srie #define	Dbg_map_parse		Dbg64_map_parse
2585aefb655Srie #define	Dbg_map_pipe		Dbg64_map_pipe
2595aefb655Srie #define	Dbg_map_seg		Dbg64_map_seg
2605aefb655Srie #define	Dbg_map_set_atsign	Dbg64_map_set_atsign
2615aefb655Srie #define	Dbg_map_set_equal	Dbg64_map_set_equal
2625aefb655Srie #define	Dbg_map_size_new	Dbg64_map_size_new
2635aefb655Srie #define	Dbg_map_size_old	Dbg64_map_size_old
2645aefb655Srie #define	Dbg_map_sort_fini	Dbg64_map_sort_fini
2655aefb655Srie #define	Dbg_map_sort_orig	Dbg64_map_sort_orig
2665aefb655Srie #define	Dbg_map_symbol		Dbg64_map_symbol
2675aefb655Srie #define	Dbg_map_version		Dbg64_map_version
2685aefb655Srie 
2695aefb655Srie #define	Dbg_move_adjexpandreloc	Dbg64_move_adjexpandreloc
2705aefb655Srie #define	Dbg_move_adjmovereloc	Dbg64_move_adjmovereloc
2715aefb655Srie #define	Dbg_move_data		Dbg64_move_data
2725aefb655Srie #define	Dbg_move_entry1		Dbg64_move_entry1
2735aefb655Srie #define	Dbg_move_entry2		Dbg64_move_entry2
2745aefb655Srie #define	Dbg_move_expand		Dbg64_move_expand
2755aefb655Srie #define	Dbg_move_input		Dbg64_move_input
2765aefb655Srie #define	Dbg_move_outmove	Dbg64_move_outmove
2775aefb655Srie #define	Dbg_move_outsctadj	Dbg64_move_outsctadj
2785aefb655Srie #define	Dbg_move_parexpn	Dbg64_move_parexpn
2795aefb655Srie 
2805aefb655Srie #define	Dbg_reloc_apply_reg	Dbg64_reloc_apply_reg
2815aefb655Srie #define	Dbg_reloc_apply_val	Dbg64_reloc_apply_val
2825aefb655Srie #define	Dbg_reloc_ars_entry	Dbg64_reloc_ars_entry
2835aefb655Srie #define	Dbg_reloc_copy		Dbg64_reloc_copy
2845aefb655Srie #define	Dbg_reloc_discard	Dbg64_reloc_discard
2855aefb655Srie #define	Dbg_reloc_doact		Dbg64_reloc_doact
2865aefb655Srie #define	Dbg_reloc_doact_title	Dbg64_reloc_doact_title
2875aefb655Srie #define	Dbg_reloc_dooutrel	Dbg64_reloc_dooutrel
2885aefb655Srie #define	Dbg_reloc_entry		Dbg64_reloc_entry
2895aefb655Srie #define	Dbg_reloc_error		Dbg64_reloc_error
2905aefb655Srie #define	Dbg_reloc_generate	Dbg64_reloc_generate
2915aefb655Srie #define	Dbg_reloc_in		Dbg64_reloc_in
2925aefb655Srie #define	Dbg_reloc_ors_entry	Dbg64_reloc_ors_entry
2935aefb655Srie #define	Dbg_reloc_out		Dbg64_reloc_out
2945aefb655Srie #define	Dbg_reloc_proc		Dbg64_reloc_proc
2955aefb655Srie #define	Dbg_reloc_run		Dbg64_reloc_run
2965aefb655Srie #define	Dbg_reloc_transition	Dbg64_reloc_transition
297d2ef9fe9Sab196087 #define	Dbg_reloc_sloppycomdat	Dbg64_reloc_sloppycomdat
2985aefb655Srie 
2995aefb655Srie #define	Dbg_sec_added		Dbg64_sec_added
3005aefb655Srie #define	Dbg_sec_created		Dbg64_sec_created
3015aefb655Srie #define	Dbg_sec_discarded	Dbg64_sec_discarded
3025aefb655Srie #define	Dbg_sec_group		Dbg64_sec_group
3035aefb655Srie #define	Dbg_sec_in		Dbg64_sec_in
3045aefb655Srie #define	Dbg_sec_order_error	Dbg64_sec_order_error
3055aefb655Srie #define	Dbg_sec_order_list	Dbg64_sec_order_list
3065aefb655Srie #define	Dbg_sec_strtab		Dbg64_sec_strtab
3075aefb655Srie 
3085aefb655Srie #define	Dbg_seg_desc_entry	Dbg64_seg_desc_entry
3095aefb655Srie #define	Dbg_seg_entry		Dbg64_seg_entry
3105aefb655Srie #define	Dbg_seg_list		Dbg64_seg_list
3115aefb655Srie #define	Dbg_seg_os		Dbg64_seg_os
3125aefb655Srie #define	Dbg_seg_title		Dbg64_seg_title
3135aefb655Srie 
3147010c12aSrie #define	Dbg_shdr_modified	Dbg64_shdr_modified
3157010c12aSrie 
3165aefb655Srie #define	Dbg_statistics_ar	Dbg64_statistics_ar
3175aefb655Srie #define	Dbg_statistics_ld	Dbg64_statistics_ld
3185aefb655Srie 
3195aefb655Srie #define	Dbg_support_action	Dbg64_support_action
3205aefb655Srie #define	Dbg_support_load	Dbg64_support_load
3215aefb655Srie #define	Dbg_support_req		Dbg64_support_req
3225aefb655Srie 
3235aefb655Srie #define	Dbg_syminfo_entry	Dbg64_syminfo_entry
3245aefb655Srie #define	Dbg_syminfo_title	Dbg64_syminfo_title
3255aefb655Srie 
3265aefb655Srie #define	Dbg_syms_ar_checking	Dbg64_syms_ar_checking
3275aefb655Srie #define	Dbg_syms_ar_entry	Dbg64_syms_ar_entry
3285aefb655Srie #define	Dbg_syms_ar_resolve	Dbg64_syms_ar_resolve
3295aefb655Srie #define	Dbg_syms_ar_title	Dbg64_syms_ar_title
3305aefb655Srie #define	Dbg_syms_created	Dbg64_syms_created
3315aefb655Srie #define	Dbg_syms_discarded	Dbg64_syms_discarded
3325aefb655Srie #define	Dbg_syms_dlsym		Dbg64_syms_dlsym
333d579eb63Sab196087 #define	Dbg_syms_dup_sort_addr	Dbg64_syms_dup_sort_addr
3345aefb655Srie #define	Dbg_syms_entered	Dbg64_syms_entered
3355aefb655Srie #define	Dbg_syms_entry		Dbg64_syms_entry
3365aefb655Srie #define	Dbg_syms_global		Dbg64_syms_global
3375aefb655Srie #define	Dbg_syms_ignore		Dbg64_syms_ignore
3383b41b08bSab196087 #define	Dbg_syms_ignore_badver	Dbg64_syms_ignore_badver
3395aefb655Srie #define	Dbg_syms_lazy_rescan	Dbg64_syms_lazy_rescan
3405aefb655Srie #define	Dbg_syms_lookup		Dbg64_syms_lookup
3415aefb655Srie #define	Dbg_syms_new		Dbg64_syms_new
3425aefb655Srie #define	Dbg_syms_old		Dbg64_syms_old
3435aefb655Srie #define	Dbg_syms_process	Dbg64_syms_process
3445aefb655Srie #define	Dbg_syms_reduce		Dbg64_syms_reduce
3455aefb655Srie #define	Dbg_syms_reloc		Dbg64_syms_reloc
3465aefb655Srie #define	Dbg_syms_resolved	Dbg64_syms_resolved
3475aefb655Srie #define	Dbg_syms_resolving	Dbg64_syms_resolving
3485aefb655Srie #define	Dbg_syms_sec_entry	Dbg64_syms_sec_entry
3495aefb655Srie #define	Dbg_syms_sec_title	Dbg64_syms_sec_title
3505aefb655Srie #define	Dbg_syms_spec_title	Dbg64_syms_spec_title
3515aefb655Srie #define	Dbg_syms_updated	Dbg64_syms_updated
3525aefb655Srie #define	Dbg_syms_up_title	Dbg64_syms_up_title
3535aefb655Srie 
3545aefb655Srie #define	Dbg_util_broadcast	Dbg64_util_broadcast
3555aefb655Srie #define	Dbg_util_call_array	Dbg64_util_call_array
3565aefb655Srie #define	Dbg_util_call_fini	Dbg64_util_call_fini
3575aefb655Srie #define	Dbg_util_call_init	Dbg64_util_call_init
3585aefb655Srie #define	Dbg_util_call_main	Dbg64_util_call_main
3595aefb655Srie #define	Dbg_util_collect	Dbg64_util_collect
3605aefb655Srie #define	Dbg_util_dbnotify	Dbg64_util_dbnotify
3615aefb655Srie #define	Dbg_util_edge_in	Dbg64_util_edge_in
3625aefb655Srie #define	Dbg_util_edge_out	Dbg64_util_edge_out
3635aefb655Srie #define	Dbg_util_intoolate	Dbg64_util_intoolate
36410a4fa49Srie #define	Dbg_util_lcinterface	Dbg64_util_lcinterface
3655aefb655Srie #define	Dbg_util_nl		Dbg64_util_nl
3665aefb655Srie #define	Dbg_util_no_init	Dbg64_util_no_init
3675aefb655Srie #define	Dbg_util_scc_entry	Dbg64_util_scc_entry
3685aefb655Srie #define	Dbg_util_scc_title	Dbg64_util_scc_title
3695aefb655Srie #define	Dbg_util_str		Dbg64_util_str
3705aefb655Srie #define	Dbg_util_wait		Dbg64_util_wait
3715aefb655Srie 
3725aefb655Srie #define	Dbg_unused_file		Dbg64_unused_file
37310a4fa49Srie #define	Dbg_unused_lcinterface	Dbg64_unused_lcinterface
3745aefb655Srie #define	Dbg_unused_sec		Dbg64_unused_sec
3755aefb655Srie #define	Dbg_unused_unref	Dbg64_unused_unref
3765aefb655Srie 
3775aefb655Srie #define	Dbg_ver_avail_entry	Dbg64_ver_avail_entry
3785aefb655Srie #define	Dbg_ver_avail_title	Dbg64_ver_avail_title
3795aefb655Srie #define	Dbg_ver_def_title	Dbg64_ver_def_title
3805aefb655Srie #define	Dbg_ver_desc_entry	Dbg64_ver_desc_entry
3815aefb655Srie #define	Dbg_ver_need_entry	Dbg64_ver_need_entry
3825aefb655Srie #define	Dbg_ver_need_title	Dbg64_ver_need_title
3835aefb655Srie #define	Dbg_ver_nointerface	Dbg64_ver_nointerface
3845aefb655Srie #define	Dbg_ver_symbol		Dbg64_ver_symbol
3855aefb655Srie 
3865aefb655Srie #else
3875aefb655Srie 
3885aefb655Srie #define	Dbg_demangle_name	Dbg32_demangle_name
3895aefb655Srie 
3905aefb655Srie #define	Dbg_bind_global		Dbg32_bind_global
3915aefb655Srie #define	Dbg_bind_plt_summary	Dbg32_bind_plt_summary
3925aefb655Srie #define	Dbg_bind_weak		Dbg32_bind_weak
3935aefb655Srie 
3945aefb655Srie #define	Dbg_cap_val_hw1		Dbg32_cap_val_hw1
3955aefb655Srie #define	Dbg_cap_hw_candidate	Dbg32_cap_hw_candidate
3965aefb655Srie #define	Dbg_cap_hw_filter	Dbg32_cap_hw_filter
3975aefb655Srie #define	Dbg_cap_mapfile		Dbg32_cap_mapfile
3985aefb655Srie #define	Dbg_cap_sec_entry	Dbg32_cap_sec_entry
3995aefb655Srie #define	Dbg_cap_sec_title	Dbg32_cap_sec_title
4005aefb655Srie 
4015aefb655Srie #define	Dbg_ent_entry		Dbg32_ent_entry
4025aefb655Srie #define	Dbg_ent_print		Dbg32_ent_print
4035aefb655Srie 
4045aefb655Srie #define	Dbg_file_analyze	Dbg32_file_analyze
4055aefb655Srie #define	Dbg_file_aout		Dbg32_file_aout
4065aefb655Srie #define	Dbg_file_ar		Dbg32_file_ar
4075aefb655Srie #define	Dbg_file_ar_rescan	Dbg32_file_ar_rescan
4085aefb655Srie #define	Dbg_file_bind_entry	Dbg32_file_bind_entry
4095aefb655Srie #define	Dbg_file_bindings	Dbg32_file_bindings
41002ca3e02Srie #define	Dbg_file_cleanup	Dbg32_file_cleanup
4115aefb655Srie #define	Dbg_file_cntl		Dbg32_file_cntl
4125aefb655Srie #define	Dbg_file_config_dis	Dbg32_file_config_dis
4135aefb655Srie #define	Dbg_file_config_obj	Dbg32_file_config_obj
4145aefb655Srie #define	Dbg_file_del_rescan	Dbg32_file_del_rescan
4155aefb655Srie #define	Dbg_file_delete		Dbg32_file_delete
4165aefb655Srie #define	Dbg_file_dlclose	Dbg32_file_dlclose
4175aefb655Srie #define	Dbg_file_dldump		Dbg32_file_dldump
4185aefb655Srie #define	Dbg_file_dlopen		Dbg32_file_dlopen
4195aefb655Srie #define	Dbg_file_elf		Dbg32_file_elf
4205aefb655Srie #define	Dbg_file_filtee		Dbg32_file_filtee
4215aefb655Srie #define	Dbg_file_filter		Dbg32_file_filter
4225aefb655Srie #define	Dbg_file_fixname	Dbg32_file_fixname
4235aefb655Srie #define	Dbg_file_generic	Dbg32_file_generic
4245aefb655Srie #define	Dbg_file_hdl_action	Dbg32_file_hdl_action
4255aefb655Srie #define	Dbg_file_hdl_collect	Dbg32_file_hdl_collect
4265aefb655Srie #define	Dbg_file_hdl_title	Dbg32_file_hdl_title
4275aefb655Srie #define	Dbg_file_lazyload	Dbg32_file_lazyload
4285aefb655Srie #define	Dbg_file_ldso		Dbg32_file_ldso
4295aefb655Srie #define	Dbg_file_mode_promote	Dbg32_file_mode_promote
4303906e0c2Srie #define	Dbg_file_modified	Dbg32_file_modified
4315aefb655Srie #define	Dbg_file_needed		Dbg32_file_needed
4325aefb655Srie #define	Dbg_file_output		Dbg32_file_output
4335aefb655Srie #define	Dbg_file_preload	Dbg32_file_preload
4345aefb655Srie #define	Dbg_file_prot		Dbg32_file_prot
4355aefb655Srie #define	Dbg_file_rejected	Dbg32_file_rejected
4365aefb655Srie #define	Dbg_file_reuse		Dbg32_file_reuse
4375aefb655Srie #define	Dbg_file_skip		Dbg32_file_skip
4385aefb655Srie 
4395aefb655Srie #define	Dbg_got_display		Dbg32_got_display
4405aefb655Srie 
4415aefb655Srie #define	Dbg_libs_audit		Dbg32_libs_audit
4425aefb655Srie #define	Dbg_libs_find		Dbg32_libs_find
4435aefb655Srie #define	Dbg_libs_found		Dbg32_libs_found
4445aefb655Srie #define	Dbg_libs_ignore		Dbg32_libs_ignore
4455aefb655Srie #define	Dbg_libs_init		Dbg32_libs_init
4465aefb655Srie #define	Dbg_libs_l		Dbg32_libs_l
4475aefb655Srie #define	Dbg_libs_path		Dbg32_libs_path
4485aefb655Srie #define	Dbg_libs_req		Dbg32_libs_req
4495aefb655Srie #define	Dbg_libs_update		Dbg32_libs_update
4505aefb655Srie #define	Dbg_libs_yp		Dbg32_libs_yp
4515aefb655Srie #define	Dbg_libs_ylu		Dbg32_libs_ylu
4525aefb655Srie 
4535aefb655Srie #define	Dbg_map_dash		Dbg32_map_dash
4545aefb655Srie #define	Dbg_map_ent		Dbg32_map_ent
4555aefb655Srie #define	Dbg_map_parse		Dbg32_map_parse
4565aefb655Srie #define	Dbg_map_pipe		Dbg32_map_pipe
4575aefb655Srie #define	Dbg_map_seg		Dbg32_map_seg
4585aefb655Srie #define	Dbg_map_set_atsign	Dbg32_map_set_atsign
4595aefb655Srie #define	Dbg_map_set_equal	Dbg32_map_set_equal
4605aefb655Srie #define	Dbg_map_size_new	Dbg32_map_size_new
4615aefb655Srie #define	Dbg_map_size_old	Dbg32_map_size_old
4625aefb655Srie #define	Dbg_map_sort_fini	Dbg32_map_sort_fini
4635aefb655Srie #define	Dbg_map_sort_orig	Dbg32_map_sort_orig
4645aefb655Srie #define	Dbg_map_symbol		Dbg32_map_symbol
4655aefb655Srie #define	Dbg_map_version		Dbg32_map_version
4665aefb655Srie 
4675aefb655Srie #define	Dbg_move_adjexpandreloc	Dbg32_move_adjexpandreloc
4685aefb655Srie #define	Dbg_move_adjmovereloc	Dbg32_move_adjmovereloc
4695aefb655Srie #define	Dbg_move_data		Dbg32_move_data
4705aefb655Srie #define	Dbg_move_entry1		Dbg32_move_entry1
4715aefb655Srie #define	Dbg_move_entry2		Dbg32_move_entry2
4725aefb655Srie #define	Dbg_move_expand		Dbg32_move_expand
4735aefb655Srie #define	Dbg_move_input		Dbg32_move_input
4745aefb655Srie #define	Dbg_move_outmove	Dbg32_move_outmove
4755aefb655Srie #define	Dbg_move_outsctadj	Dbg32_move_outsctadj
4765aefb655Srie #define	Dbg_move_parexpn	Dbg32_move_parexpn
4775aefb655Srie 
4785aefb655Srie #define	Dbg_reloc_apply_reg	Dbg32_reloc_apply_reg
4795aefb655Srie #define	Dbg_reloc_apply_val	Dbg32_reloc_apply_val
4805aefb655Srie #define	Dbg_reloc_ars_entry	Dbg32_reloc_ars_entry
4815aefb655Srie #define	Dbg_reloc_copy		Dbg32_reloc_copy
4825aefb655Srie #define	Dbg_reloc_discard	Dbg32_reloc_discard
4835aefb655Srie #define	Dbg_reloc_doact		Dbg32_reloc_doact
4845aefb655Srie #define	Dbg_reloc_doact_title	Dbg32_reloc_doact_title
4855aefb655Srie #define	Dbg_reloc_dooutrel	Dbg32_reloc_dooutrel
4865aefb655Srie #define	Dbg_reloc_entry		Dbg32_reloc_entry
4875aefb655Srie #define	Dbg_reloc_error		Dbg32_reloc_error
4885aefb655Srie #define	Dbg_reloc_generate	Dbg32_reloc_generate
4895aefb655Srie #define	Dbg_reloc_in		Dbg32_reloc_in
4905aefb655Srie #define	Dbg_reloc_ors_entry	Dbg32_reloc_ors_entry
4915aefb655Srie #define	Dbg_reloc_out		Dbg32_reloc_out
4925aefb655Srie #define	Dbg_reloc_proc		Dbg32_reloc_proc
4935aefb655Srie #define	Dbg_reloc_run		Dbg32_reloc_run
4945aefb655Srie #define	Dbg_reloc_transition	Dbg32_reloc_transition
495d2ef9fe9Sab196087 #define	Dbg_reloc_sloppycomdat	Dbg32_reloc_sloppycomdat
4965aefb655Srie 
4975aefb655Srie #define	Dbg_sec_added		Dbg32_sec_added
4985aefb655Srie #define	Dbg_sec_created		Dbg32_sec_created
4995aefb655Srie #define	Dbg_sec_discarded	Dbg32_sec_discarded
5005aefb655Srie #define	Dbg_sec_group		Dbg32_sec_group
5015aefb655Srie #define	Dbg_sec_in		Dbg32_sec_in
5025aefb655Srie #define	Dbg_sec_order_error	Dbg32_sec_order_error
5035aefb655Srie #define	Dbg_sec_order_list	Dbg32_sec_order_list
5045aefb655Srie #define	Dbg_sec_strtab		Dbg32_sec_strtab
5055aefb655Srie 
5065aefb655Srie #define	Dbg_seg_desc_entry	Dbg32_seg_desc_entry
5075aefb655Srie #define	Dbg_seg_entry		Dbg32_seg_entry
5085aefb655Srie #define	Dbg_seg_list		Dbg32_seg_list
5095aefb655Srie #define	Dbg_seg_os		Dbg32_seg_os
5105aefb655Srie #define	Dbg_seg_title		Dbg32_seg_title
5115aefb655Srie 
5127010c12aSrie #define	Dbg_shdr_modified	Dbg32_shdr_modified
5137010c12aSrie 
5145aefb655Srie #define	Dbg_statistics_ar	Dbg32_statistics_ar
5155aefb655Srie #define	Dbg_statistics_ld	Dbg32_statistics_ld
5165aefb655Srie 
5175aefb655Srie #define	Dbg_support_action	Dbg32_support_action
5185aefb655Srie #define	Dbg_support_load	Dbg32_support_load
5195aefb655Srie #define	Dbg_support_req		Dbg32_support_req
5205aefb655Srie 
5215aefb655Srie #define	Dbg_syminfo_entry	Dbg32_syminfo_entry
5225aefb655Srie #define	Dbg_syminfo_title	Dbg32_syminfo_title
5235aefb655Srie 
5245aefb655Srie #define	Dbg_syms_ar_checking	Dbg32_syms_ar_checking
5255aefb655Srie #define	Dbg_syms_ar_entry	Dbg32_syms_ar_entry
5265aefb655Srie #define	Dbg_syms_ar_resolve	Dbg32_syms_ar_resolve
5275aefb655Srie #define	Dbg_syms_ar_title	Dbg32_syms_ar_title
5285aefb655Srie #define	Dbg_syms_created	Dbg32_syms_created
5295aefb655Srie #define	Dbg_syms_discarded	Dbg32_syms_discarded
5305aefb655Srie #define	Dbg_syms_dlsym		Dbg32_syms_dlsym
531d579eb63Sab196087 #define	Dbg_syms_dup_sort_addr	Dbg32_syms_dup_sort_addr
5325aefb655Srie #define	Dbg_syms_entered	Dbg32_syms_entered
5335aefb655Srie #define	Dbg_syms_entry		Dbg32_syms_entry
5345aefb655Srie #define	Dbg_syms_global		Dbg32_syms_global
5355aefb655Srie #define	Dbg_syms_ignore		Dbg32_syms_ignore
5363b41b08bSab196087 #define	Dbg_syms_ignore_badver	Dbg32_syms_ignore_badver
5375aefb655Srie #define	Dbg_syms_lazy_rescan	Dbg32_syms_lazy_rescan
5385aefb655Srie #define	Dbg_syms_lookup		Dbg32_syms_lookup
5395aefb655Srie #define	Dbg_syms_lookup_aout	Dbg32_syms_lookup_aout
5405aefb655Srie #define	Dbg_syms_new		Dbg32_syms_new
5415aefb655Srie #define	Dbg_syms_old		Dbg32_syms_old
5425aefb655Srie #define	Dbg_syms_process	Dbg32_syms_process
5435aefb655Srie #define	Dbg_syms_reduce		Dbg32_syms_reduce
5445aefb655Srie #define	Dbg_syms_reloc		Dbg32_syms_reloc
5455aefb655Srie #define	Dbg_syms_resolved	Dbg32_syms_resolved
5465aefb655Srie #define	Dbg_syms_resolving	Dbg32_syms_resolving
5475aefb655Srie #define	Dbg_syms_sec_entry	Dbg32_syms_sec_entry
5485aefb655Srie #define	Dbg_syms_sec_title	Dbg32_syms_sec_title
5495aefb655Srie #define	Dbg_syms_spec_title	Dbg32_syms_spec_title
5505aefb655Srie #define	Dbg_syms_updated	Dbg32_syms_updated
5515aefb655Srie #define	Dbg_syms_up_title	Dbg32_syms_up_title
5525aefb655Srie 
5535aefb655Srie #define	Dbg_util_broadcast	Dbg32_util_broadcast
5545aefb655Srie #define	Dbg_util_call_array	Dbg32_util_call_array
5555aefb655Srie #define	Dbg_util_call_fini	Dbg32_util_call_fini
5565aefb655Srie #define	Dbg_util_call_init	Dbg32_util_call_init
5575aefb655Srie #define	Dbg_util_call_main	Dbg32_util_call_main
5585aefb655Srie #define	Dbg_util_collect	Dbg32_util_collect
5595aefb655Srie #define	Dbg_util_dbnotify	Dbg32_util_dbnotify
5605aefb655Srie #define	Dbg_util_edge_in	Dbg32_util_edge_in
5615aefb655Srie #define	Dbg_util_edge_out	Dbg32_util_edge_out
5625aefb655Srie #define	Dbg_util_intoolate	Dbg32_util_intoolate
56310a4fa49Srie #define	Dbg_util_lcinterface	Dbg32_util_lcinterface
5645aefb655Srie #define	Dbg_util_nl		Dbg32_util_nl
5655aefb655Srie #define	Dbg_util_no_init	Dbg32_util_no_init
5665aefb655Srie #define	Dbg_util_scc_entry	Dbg32_util_scc_entry
5675aefb655Srie #define	Dbg_util_scc_title	Dbg32_util_scc_title
5685aefb655Srie #define	Dbg_util_str		Dbg32_util_str
5695aefb655Srie #define	Dbg_util_wait		Dbg32_util_wait
5705aefb655Srie 
5715aefb655Srie #define	Dbg_unused_file		Dbg32_unused_file
57210a4fa49Srie #define	Dbg_unused_lcinterface	Dbg32_unused_lcinterface
5735aefb655Srie #define	Dbg_unused_sec		Dbg32_unused_sec
5745aefb655Srie #define	Dbg_unused_unref	Dbg32_unused_unref
5755aefb655Srie 
5765aefb655Srie #define	Dbg_ver_avail_entry	Dbg32_ver_avail_entry
5775aefb655Srie #define	Dbg_ver_avail_title	Dbg32_ver_avail_title
5785aefb655Srie #define	Dbg_ver_def_title	Dbg32_ver_def_title
5795aefb655Srie #define	Dbg_ver_desc_entry	Dbg32_ver_desc_entry
5805aefb655Srie #define	Dbg_ver_need_entry	Dbg32_ver_need_entry
5815aefb655Srie #define	Dbg_ver_need_title	Dbg32_ver_need_title
5825aefb655Srie #define	Dbg_ver_nointerface	Dbg32_ver_nointerface
5835aefb655Srie #define	Dbg_ver_symbol		Dbg32_ver_symbol
5845aefb655Srie 
5855aefb655Srie #endif
5865aefb655Srie 
5875aefb655Srie /*
5885aefb655Srie  * External Dbg_*() interface routines.
5895aefb655Srie  */
5905aefb655Srie extern	void	Dbg_args_files(Lm_list *, int, char *);
5915aefb655Srie extern	void	Dbg_args_flags(Lm_list *, int, int);
592*7247f888Srie extern	void	Dbg_audit_ignore(Rt_map *);
5935aefb655Srie extern	void	Dbg_audit_interface(Lm_list *, const char *, const char *);
5945aefb655Srie extern	void	Dbg_audit_lib(Lm_list *, const char *);
5955aefb655Srie extern	void	Dbg_audit_object(Lm_list *, const char *, const char *);
5965aefb655Srie extern	void	Dbg_audit_symval(Lm_list *, const char *, const char *,
5975aefb655Srie 		    const char *, Addr, Addr);
598c75e1b9dSrie extern	void	Dbg_audit_skip(Lm_list *, const char *, const char *);
599*7247f888Srie extern	void	Dbg_audit_terminate(Lm_list *, const char *);
6005aefb655Srie extern	void	Dbg_audit_version(Lm_list *, const char *, ulong_t);
6015aefb655Srie 
6025aefb655Srie extern	void	Dbg_bind_global(Rt_map *, Addr, Off, Xword, Pltbindtype,
6035aefb655Srie 		    Rt_map *, Addr, Off, const char *, uint_t);
6045aefb655Srie extern	void	Dbg_bind_plt_summary(Lm_list *, Half, Word, Word, Word, Word,
6055aefb655Srie 		    Word, Word);
6065aefb655Srie #if	defined(_ELF64)
6075aefb655Srie extern	void	Dbg_bind_pltpad_from(Rt_map *, Addr, const char *);
6085aefb655Srie extern	void	Dbg_bind_pltpad_to(Rt_map *, Addr, const char *, const char *);
6095aefb655Srie #endif
6105aefb655Srie extern	void	Dbg_bind_weak(Rt_map *, Addr, Addr, const char *);
6115aefb655Srie 
6125aefb655Srie extern	void	Dbg_cap_hw_candidate(Lm_list *, const char *);
6135aefb655Srie extern	void	Dbg_cap_hw_filter(Lm_list *, const char *, Rt_map *);
6145aefb655Srie extern	void	Dbg_cap_mapfile(Lm_list *, Xword, Xword, Half);
6155aefb655Srie extern	void	Dbg_cap_sec_entry(Lm_list *, uint_t, Xword, Xword, Half);
6165aefb655Srie extern	void	Dbg_cap_sec_title(Ofl_desc *);
6175aefb655Srie extern	void	Dbg_cap_val_hw1(Lm_list *, Xword, Half);
6185aefb655Srie 
6195aefb655Srie extern	const char *
6205aefb655Srie 		Dbg_demangle_name(const char *);
6215aefb655Srie 
6225aefb655Srie extern	void	Dbg_ent_entry(Lm_list *, Half, Ent_desc *);
6235aefb655Srie extern	void	Dbg_ent_print(Lm_list *, Half, List *, Boolean);
6245aefb655Srie 
6257c478bd9Sstevel@tonic-gate extern	void	Dbg_file_analyze(Rt_map *);
6265aefb655Srie extern	void	Dbg_file_aout(Lm_list *, const char *, ulong_t, ulong_t,
6275aefb655Srie 		    ulong_t, const char *, Aliste);
6285aefb655Srie extern	void	Dbg_file_ar(Lm_list *, const char *, int);
6295aefb655Srie extern	void	Dbg_file_ar_rescan(Lm_list *);
6305aefb655Srie extern	void	Dbg_file_bind_entry(Lm_list *, Bnd_desc *);
6315aefb655Srie extern	void	Dbg_file_bindings(Rt_map *, int);
63202ca3e02Srie extern	void	Dbg_file_cleanup(Lm_list *, const char *, Aliste);
6337c478bd9Sstevel@tonic-gate extern	void	Dbg_file_cntl(Lm_list *, Aliste, Aliste);
6345aefb655Srie extern	void	Dbg_file_config_dis(Lm_list *, const char *, int);
6355aefb655Srie extern	void	Dbg_file_config_obj(Lm_list *, const char *, const char *,
6367c478bd9Sstevel@tonic-gate 		    const char *);
6375aefb655Srie extern	void	Dbg_file_del_rescan(Lm_list *);
6385aefb655Srie extern	void	Dbg_file_delete(Rt_map *);
6395aefb655Srie extern	void	Dbg_file_dlclose(Lm_list *, const char *, int);
6405aefb655Srie extern	void	Dbg_file_dldump(Rt_map *, const char *, int);
6415aefb655Srie extern	void	Dbg_file_dlopen(Rt_map *, const char *, int);
6425aefb655Srie extern	void	Dbg_file_elf(Lm_list *, const char *, ulong_t, ulong_t,
6435aefb655Srie 		    ulong_t, ulong_t, const char *, Aliste);
6445aefb655Srie extern	void	Dbg_file_filtee(Lm_list *, const char *, const char *, int);
6455aefb655Srie extern	void	Dbg_file_filter(Lm_list *, const char *, const char *, int);
6465aefb655Srie extern	void	Dbg_file_fixname(Lm_list *, const char *, const char *);
6475aefb655Srie extern	void	Dbg_file_generic(Lm_list *, Ifl_desc *);
64802ca3e02Srie extern	void	Dbg_file_hdl_action(Grp_hdl *, Rt_map *, int, uint_t);
6497c478bd9Sstevel@tonic-gate extern	void	Dbg_file_hdl_collect(Grp_hdl *, const char *);
6507c478bd9Sstevel@tonic-gate extern	void	Dbg_file_hdl_title(int);
6515aefb655Srie extern	void	Dbg_file_lazyload(Rt_map *, const char *, const char *);
6525aefb655Srie extern	void	Dbg_file_ldso(Rt_map *, char **, auxv_t *, const char *,
6535aefb655Srie 		    Aliste);
6545aefb655Srie extern	void	Dbg_file_mode_promote(Rt_map *, int);
6553906e0c2Srie extern	void	Dbg_file_modified(Lm_list *, const char *, const char *,
6563906e0c2Srie 		    const char *, int, int, Elf *, Elf *);
6575aefb655Srie extern	void	Dbg_file_needed(Rt_map *, const char *);
6587c478bd9Sstevel@tonic-gate extern	void	Dbg_file_output(Ofl_desc *);
6595aefb655Srie extern	void	Dbg_file_preload(Lm_list *, const char *);
6605aefb655Srie extern	void	Dbg_file_prot(Rt_map *, int);
6615aefb655Srie extern	void	Dbg_file_rejected(Lm_list *, Rej_desc *);
6625aefb655Srie extern	void	Dbg_file_reuse(Lm_list *, const char *, const char *);
6635aefb655Srie extern	void	Dbg_file_skip(Lm_list *, const char *, const char *);
6645aefb655Srie 
665d326b23bSrie extern	void	Dbg_got_display(Ofl_desc *, Off, int);
6665aefb655Srie 
6675aefb655Srie extern	void	Dbg_libs_audit(Lm_list *, const char *, const char *);
6685aefb655Srie extern	void	Dbg_libs_find(Lm_list *, const char *);
6695aefb655Srie extern	void	Dbg_libs_found(Lm_list *, const char *, int);
6705aefb655Srie extern	void	Dbg_libs_ignore(Lm_list *, const char *);
6715aefb655Srie extern	void	Dbg_libs_init(Lm_list *, List *, List *);
6725aefb655Srie extern	void	Dbg_libs_l(Lm_list *, const char *, const char *);
6735aefb655Srie extern	void	Dbg_libs_path(Lm_list *, const char *, Half, const char *);
6745aefb655Srie extern	void	Dbg_libs_req(Lm_list *, const char *, const char *,
6757c478bd9Sstevel@tonic-gate 		    const char *);
6765aefb655Srie extern	void	Dbg_libs_update(Lm_list *, List *, List *);
6775aefb655Srie extern	void	Dbg_libs_yp(Lm_list *, const char *);
6785aefb655Srie extern	void	Dbg_libs_ylu(Lm_list *, const char *, const char *, int);
6795aefb655Srie 
6805aefb655Srie extern	void	Dbg_map_dash(Lm_list *, const char *, Sdf_desc *);
6815aefb655Srie extern	void	Dbg_map_ent(Lm_list *, Boolean, Ent_desc *, Ofl_desc *);
6825aefb655Srie extern	void	Dbg_map_parse(Lm_list *, const char *);
6835aefb655Srie extern	void	Dbg_map_pipe(Lm_list *, Sg_desc *, const char *, const Word);
6845aefb655Srie extern	void	Dbg_map_seg(Ofl_desc *, int, Sg_desc *);
6855aefb655Srie extern	void	Dbg_map_set_atsign(Boolean);
6865aefb655Srie extern	void	Dbg_map_set_equal(Boolean);
6875aefb655Srie extern	void	Dbg_map_size_new(Lm_list *, const char *);
6885aefb655Srie extern	void	Dbg_map_size_old(Ofl_desc *, Sym_desc *);
6895aefb655Srie extern	void	Dbg_map_sort_fini(Lm_list *, Sg_desc *);
6905aefb655Srie extern	void	Dbg_map_sort_orig(Lm_list *, Sg_desc *);
6915aefb655Srie extern	void	Dbg_map_symbol(Ofl_desc *, Sym_desc *);
6925aefb655Srie extern	void	Dbg_map_version(Lm_list *, const char *, const char *, int);
6935aefb655Srie 
6945aefb655Srie extern 	void	Dbg_move_adjexpandreloc(Lm_list *, Xword, const char *);
6955aefb655Srie extern 	void	Dbg_move_adjmovereloc(Lm_list *, Xword, Xword, const char *);
6965aefb655Srie extern	void	Dbg_move_data(Rt_map *);
6975aefb655Srie extern 	void	Dbg_move_entry1(Lm_list *, int, Move *, Sym_desc *);
6985aefb655Srie extern 	void	Dbg_move_entry2(Lm_list *, Move *, Word, const char *);
6995aefb655Srie extern 	void	Dbg_move_expand(Lm_list *, Move *, Addr);
7005aefb655Srie extern 	void	Dbg_move_input(Lm_list *, const char *);
7015aefb655Srie extern 	void	Dbg_move_outmove(Lm_list *, const char *);
7025aefb655Srie extern 	void	Dbg_move_outsctadj(Lm_list *, Sym_desc *);
7035aefb655Srie extern 	void	Dbg_move_parexpn(Lm_list *, const char *, const char *);
7045aefb655Srie 
7055aefb655Srie extern	void	Dbg_reloc_apply_reg(Lm_list *, int, Half, Xword, Xword);
7065aefb655Srie extern	void	Dbg_reloc_apply_val(Lm_list *, int, Xword, Xword);
7075aefb655Srie extern	void	Dbg_reloc_ars_entry(Lm_list *, int, Word, Half, Rel_desc *);
7085aefb655Srie extern	void	Dbg_reloc_copy(Rt_map *, Rt_map *, const char *, int);
7095aefb655Srie extern	void	Dbg_reloc_discard(Lm_list *, Half, Rel_desc *);
7105aefb655Srie extern	void	Dbg_reloc_doact(Lm_list *, int, Half, Word, Word, Xword, Xword,
7115aefb655Srie 		    const char *, Os_desc *);
7125aefb655Srie extern	void	Dbg_reloc_doact_title(Lm_list *);
7135aefb655Srie extern	void	Dbg_reloc_dooutrel(Lm_list *, Word);
7145aefb655Srie extern	void	Dbg_reloc_entry(Lm_list *, const char *, Half, Word, void *,
7155aefb655Srie 		    const char *, const char *, const char *);
7165aefb655Srie extern	void	Dbg_reloc_error(Lm_list *, int, Half, Word, void *,
7177c478bd9Sstevel@tonic-gate 		    const char *);
7185aefb655Srie extern	void	Dbg_reloc_generate(Lm_list *, Os_desc *, Word);
7195aefb655Srie extern	void	Dbg_reloc_in(Lm_list *, int, Half, Word, void *, const char *,
7207c478bd9Sstevel@tonic-gate 		    const char *);
7215aefb655Srie extern	void	Dbg_reloc_ors_entry(Lm_list *, int, Word, Half, Rel_desc *);
7225aefb655Srie extern	void	Dbg_reloc_out(Ofl_desc *, int, Word, void *, const char *,
7237c478bd9Sstevel@tonic-gate 		    const char *);
7245aefb655Srie extern	void	Dbg_reloc_proc(Lm_list *, Os_desc *, Is_desc *, Is_desc *);
7255aefb655Srie extern	void	Dbg_reloc_run(Rt_map *, uint_t, int, int);
726051d39bbSrie extern	void	Dbg_reloc_transition(Lm_list *, Half, Word, Rel_desc *);
727d2ef9fe9Sab196087 extern	void	Dbg_reloc_sloppycomdat(Lm_list *, const char *, Sym_desc *);
7285aefb655Srie 
7295aefb655Srie extern	void	Dbg_sec_added(Lm_list *, Os_desc *, Sg_desc *);
7305aefb655Srie extern	void	Dbg_sec_created(Lm_list *, Os_desc *, Sg_desc *);
7315aefb655Srie extern	void	Dbg_sec_discarded(Lm_list *, Is_desc *, Is_desc *);
7325aefb655Srie extern	void	Dbg_sec_group(Lm_list *, Is_desc *, Group_desc *);
7335aefb655Srie extern	void	Dbg_sec_in(Lm_list *, Is_desc *);
7345aefb655Srie extern	void	Dbg_sec_order_error(Lm_list *, Ifl_desc *, Word, int);
7357c478bd9Sstevel@tonic-gate extern	void	Dbg_sec_order_list(Ofl_desc *, int);
7365aefb655Srie extern	void	Dbg_sec_strtab(Lm_list *, Os_desc *, Str_tbl *);
7375aefb655Srie 
7385aefb655Srie extern	void	Dbg_seg_desc_entry(Lm_list *, Half, int, Sg_desc *);
7395aefb655Srie extern	void	Dbg_seg_entry(Ofl_desc *, int, Sg_desc *);
7405aefb655Srie extern	void	Dbg_seg_list(Lm_list *, Half, List *);
7417c478bd9Sstevel@tonic-gate extern	void	Dbg_seg_os(Ofl_desc *, Os_desc *, int);
7425aefb655Srie extern	void	Dbg_seg_title(Lm_list *);
7435aefb655Srie 
7443906e0c2Srie extern	void	Dbg_shdr_modified(Lm_list *, const char *, Half, Shdr *, Shdr *,
7457010c12aSrie 		    const char *);
7467010c12aSrie 
7477c478bd9Sstevel@tonic-gate extern	void	Dbg_statistics_ar(Ofl_desc *);
7487c478bd9Sstevel@tonic-gate extern	void	Dbg_statistics_ld(Ofl_desc *);
7495aefb655Srie 
7505aefb655Srie extern	void	Dbg_support_action(Lm_list *, const char *, const char *,
7515aefb655Srie 		    Support_ndx, const char *);
7525aefb655Srie extern	void	Dbg_support_load(Lm_list *, const char *, const char *);
7535aefb655Srie extern	void	Dbg_support_req(Lm_list *, const char *, int);
7545aefb655Srie 
7555aefb655Srie extern	void	Dbg_syminfo_entry(Lm_list *, Word, Syminfo *, Sym *,
7567c478bd9Sstevel@tonic-gate 		    const char *, Dyn *);
7575aefb655Srie extern	void	Dbg_syminfo_title(Lm_list *);
7585aefb655Srie 
7595aefb655Srie extern	void	Dbg_syms_ar_checking(Lm_list *, Xword, Elf_Arsym *,
7605aefb655Srie 		    const char *);
7615aefb655Srie extern	void	Dbg_syms_ar_entry(Lm_list *, Xword, Elf_Arsym *);
7625aefb655Srie extern	void	Dbg_syms_ar_resolve(Lm_list *, Xword, Elf_Arsym *,
7635aefb655Srie 		    const char *, int);
7645aefb655Srie extern	void	Dbg_syms_ar_title(Lm_list *, const char *, int);
7655aefb655Srie extern	void	Dbg_syms_created(Lm_list *, const char *);
7665aefb655Srie extern	void	Dbg_syms_discarded(Lm_list *, Sym_desc *, Is_desc *);
7675aefb655Srie extern	void	Dbg_syms_dlsym(Rt_map *, const char *, const char *, int);
768d579eb63Sab196087 extern	void	Dbg_syms_dup_sort_addr(Lm_list *, const char *, const char *,
769d579eb63Sab196087 		    const char *, Addr);
7705aefb655Srie extern	void	Dbg_syms_entered(Ofl_desc *, Sym *, Sym_desc *);
7715aefb655Srie extern	void	Dbg_syms_entry(Lm_list *, Word, Sym_desc *);
7725aefb655Srie extern	void	Dbg_syms_global(Lm_list *, Word, const char *);
7735aefb655Srie extern	void	Dbg_syms_ignore(Ofl_desc *, Sym_desc *);
7743b41b08bSab196087 extern	void	Dbg_syms_ignore_badver(Rt_map *, const char *, Word, Versym);
7755aefb655Srie extern	void	Dbg_syms_lazy_rescan(Lm_list *, const char *);
7765aefb655Srie extern	void	Dbg_syms_lookup(Rt_map *, const char *, const char *);
7775aefb655Srie #if	!(defined(_ELF64))
7785aefb655Srie extern	void	Dbg_syms_lookup_aout(Lm_list *, const char *);
7795aefb655Srie #endif
7805aefb655Srie extern	void	Dbg_syms_new(Ofl_desc *, Sym *, Sym_desc *);
7815aefb655Srie extern	void	Dbg_syms_old(Ofl_desc *, Sym_desc *);
7825aefb655Srie extern	void	Dbg_syms_process(Lm_list *, Ifl_desc *);
7835aefb655Srie extern	void	Dbg_syms_reduce(Ofl_desc *, int, Sym_desc *, int,
7845aefb655Srie 		    const char *);
7855aefb655Srie extern	void	Dbg_syms_reloc(Ofl_desc *, Sym_desc *);
7865aefb655Srie extern	void	Dbg_syms_resolved(Ofl_desc *, Sym_desc *);
7875aefb655Srie extern	void	Dbg_syms_resolving(Ofl_desc *, Word, const char *, int, int,
7885aefb655Srie 		    Sym *, Sym *, Sym_desc *, Ifl_desc *);
7895aefb655Srie extern	void	Dbg_syms_sec_entry(Lm_list *, Word, Sg_desc *, Os_desc *);
7905aefb655Srie extern	void	Dbg_syms_sec_title(Lm_list *);
7915aefb655Srie extern	void	Dbg_syms_spec_title(Lm_list *);
7925aefb655Srie extern	void	Dbg_syms_updated(Ofl_desc *, Sym_desc *, const char *);
7935aefb655Srie extern	void	Dbg_syms_up_title(Lm_list *);
7945aefb655Srie 
7955aefb655Srie extern	void	Dbg_tls_modactivity(Lm_list *, void *, uint_t);
796d326b23bSrie extern	void	Dbg_tls_static_block(Lm_list *, void *, ulong_t, ulong_t);
797d326b23bSrie extern	void	Dbg_tls_static_resv(Rt_map *, ulong_t, ulong_t);
7985aefb655Srie 
7995aefb655Srie extern	void	Dbg_util_broadcast(Rt_map *);
8005aefb655Srie extern	void	Dbg_util_call_array(Rt_map *, void *, int, Word);
8015aefb655Srie extern	void	Dbg_util_call_fini(Rt_map *);
8025aefb655Srie extern	void	Dbg_util_call_init(Rt_map *, int);
8035aefb655Srie extern	void	Dbg_util_call_main(Rt_map *);
8045aefb655Srie extern	void	Dbg_util_collect(Rt_map *, int, int);
8055aefb655Srie extern	void	Dbg_util_dbnotify(Lm_list *, rd_event_e, r_state_e);
8065aefb655Srie extern	void	Dbg_util_edge_in(Lm_list *, Rt_map *, uint_t, Rt_map *,
8075aefb655Srie 		    int, int);
8085aefb655Srie extern	void	Dbg_util_edge_out(Rt_map *, Rt_map *);
8095aefb655Srie extern	void	Dbg_util_intoolate(Rt_map *);
81010a4fa49Srie extern	void	Dbg_util_lcinterface(Rt_map *, int, char *);
8115aefb655Srie extern	void	Dbg_util_nl(Lm_list *, int);
8125aefb655Srie extern	void	Dbg_util_no_init(Rt_map *);
8135aefb655Srie extern	void	Dbg_util_str(Lm_list *, const char *);
8145aefb655Srie extern	void	Dbg_util_scc_entry(Rt_map *, uint_t);
8155aefb655Srie extern	void	Dbg_util_scc_title(Lm_list *, int);
8165aefb655Srie extern	void	Dbg_util_wait(Rt_map *, Rt_map *, int);
8175aefb655Srie 
8185aefb655Srie extern	void	Dbg_unused_file(Lm_list *, const char *, int, uint_t);
81910a4fa49Srie extern	void	Dbg_unused_lcinterface(Rt_map *, Rt_map *, int);
8205aefb655Srie extern	void	Dbg_unused_sec(Lm_list *, Is_desc *);
8215aefb655Srie extern	void	Dbg_unused_unref(Rt_map *, const char *);
8225aefb655Srie 
8235aefb655Srie extern	void	Dbg_ver_avail_entry(Lm_list *, Ver_index *, const char *);
8245aefb655Srie extern	void	Dbg_ver_avail_title(Lm_list *, const char *);
8255aefb655Srie extern	void	Dbg_ver_def_title(Lm_list *, const char *);
8265aefb655Srie extern	void	Dbg_ver_desc_entry(Lm_list *, Ver_desc *);
8275aefb655Srie extern	void	Dbg_ver_need_entry(Lm_list *, Half, const char *,
8285aefb655Srie 		    const char *);
8295aefb655Srie extern	void	Dbg_ver_need_title(Lm_list *, const char *);
8305aefb655Srie extern	void	Dbg_ver_nointerface(Lm_list *, const char *);
8315aefb655Srie extern	void	Dbg_ver_symbol(Lm_list *, const char *);
8327c478bd9Sstevel@tonic-gate 
8337c478bd9Sstevel@tonic-gate /*
8345aefb655Srie  * Define Elf_*() interface flags.
8357c478bd9Sstevel@tonic-gate  */
8365aefb655Srie #define	ELF_DBG_ELFDUMP		1
8375aefb655Srie #define	ELF_DBG_RTLD		2
8385aefb655Srie #define	ELF_DBG_LD		3
8397c478bd9Sstevel@tonic-gate 
8407c478bd9Sstevel@tonic-gate /*
8415aefb655Srie  * Define generic Elf_*() interfaces.
8427c478bd9Sstevel@tonic-gate  */
8435aefb655Srie extern	void Elf_syminfo_entry(Lm_list *, Word, Syminfo *, const char *,
8445aefb655Srie 	    const char *);
8455aefb655Srie extern	void Elf_syminfo_title(Lm_list *);
8467c478bd9Sstevel@tonic-gate 
8475aefb655Srie /*
8485aefb655Srie  * Establish ELF32 and ELF64 class Elf_*() interfaces.
8495aefb655Srie  */
8505aefb655Srie #if	defined(_ELF64)
8515aefb655Srie 
8525aefb655Srie #define	Elf_cap_entry		Elf64_cap_entry
8535aefb655Srie #define	Elf_cap_title		Elf64_cap_title
8545aefb655Srie 
8555aefb655Srie #define	Elf_demangle_name	Elf64_demangle_name
8565aefb655Srie #define	Elf_dyn_entry		Elf64_dyn_entry
8573244bcaaSab196087 #define	Elf_dyn_null_entry	Elf64_dyn_null_entry
8585aefb655Srie #define	Elf_dyn_title		Elf64_dyn_title
8595aefb655Srie 
8605aefb655Srie #define	Elf_ehdr		Elf64_ehdr
8615aefb655Srie 
8625aefb655Srie #define	Elf_got_entry		Elf64_got_entry
8635aefb655Srie #define	Elf_got_title		Elf64_got_title
8645aefb655Srie 
8655aefb655Srie #define	Elf_reloc_apply_reg	Elf64_reloc_apply_reg
8665aefb655Srie #define	Elf_reloc_apply_val	Elf64_reloc_apply_val
8675aefb655Srie #define	Elf_reloc_entry_1	Elf64_reloc_entry_1
8685aefb655Srie #define	Elf_reloc_entry_2	Elf64_reloc_entry_2
8695aefb655Srie #define	Elf_reloc_title		Elf64_reloc_title
8705aefb655Srie 
8715aefb655Srie #define	Elf_phdr		Elf64_phdr
8725aefb655Srie 
8735aefb655Srie #define	Elf_shdr		Elf64_shdr
8745aefb655Srie 
8755aefb655Srie #define	Elf_syms_table_entry	Elf64_syms_table_entry
8765aefb655Srie #define	Elf_syms_table_title	Elf64_syms_table_title
8775aefb655Srie 
8785aefb655Srie #define	Elf_ver_def_title	Elf64_ver_def_title
8795aefb655Srie #define	Elf_ver_line_1		Elf64_ver_line_1
8805aefb655Srie #define	Elf_ver_line_2		Elf64_ver_line_2
8815aefb655Srie #define	Elf_ver_line_3		Elf64_ver_line_3
8825aefb655Srie #define	Elf_ver_line_4		Elf64_ver_line_4
8835aefb655Srie #define	Elf_ver_line_5		Elf64_ver_line_5
8845aefb655Srie #define	Elf_ver_need_title	Elf64_ver_need_title
8855aefb655Srie 
8865aefb655Srie #else
8875aefb655Srie 
8885aefb655Srie #define	Elf_cap_entry		Elf32_cap_entry
8895aefb655Srie #define	Elf_cap_title		Elf32_cap_title
8905aefb655Srie 
8915aefb655Srie #define	Elf_demangle_name	Elf32_demangle_name
8925aefb655Srie #define	Elf_dyn_entry		Elf32_dyn_entry
8933244bcaaSab196087 #define	Elf_dyn_null_entry	Elf32_dyn_null_entry
8945aefb655Srie #define	Elf_dyn_title		Elf32_dyn_title
8955aefb655Srie 
8965aefb655Srie #define	Elf_ehdr		Elf32_ehdr
8975aefb655Srie 
8985aefb655Srie #define	Elf_got_entry		Elf32_got_entry
8995aefb655Srie #define	Elf_got_title		Elf32_got_title
9005aefb655Srie 
9015aefb655Srie #define	Elf_reloc_apply_reg	Elf32_reloc_apply_reg
9025aefb655Srie #define	Elf_reloc_apply_val	Elf32_reloc_apply_val
9035aefb655Srie #define	Elf_reloc_entry_1	Elf32_reloc_entry_1
9045aefb655Srie #define	Elf_reloc_entry_2	Elf32_reloc_entry_2
9055aefb655Srie #define	Elf_reloc_title		Elf32_reloc_title
9065aefb655Srie 
9075aefb655Srie #define	Elf_phdr		Elf32_phdr
9085aefb655Srie 
9095aefb655Srie #define	Elf_shdr		Elf32_shdr
9105aefb655Srie 
9115aefb655Srie #define	Elf_syms_table_entry	Elf32_syms_table_entry
9125aefb655Srie #define	Elf_syms_table_title	Elf32_syms_table_title
9135aefb655Srie 
9145aefb655Srie #define	Elf_ver_def_title	Elf32_ver_def_title
9155aefb655Srie #define	Elf_ver_line_1		Elf32_ver_line_1
9165aefb655Srie #define	Elf_ver_line_2		Elf32_ver_line_2
9175aefb655Srie #define	Elf_ver_line_3		Elf32_ver_line_3
9185aefb655Srie #define	Elf_ver_line_4		Elf32_ver_line_4
9195aefb655Srie #define	Elf_ver_line_5		Elf32_ver_line_5
9205aefb655Srie #define	Elf_ver_need_title	Elf32_ver_need_title
9215aefb655Srie 
9225aefb655Srie #endif
9235aefb655Srie 
9245aefb655Srie extern	void	Elf_cap_entry(Lm_list *, Cap *, int, Half);
9255aefb655Srie extern	void	Elf_cap_title(Lm_list *);
9265aefb655Srie 
9275aefb655Srie extern	const char \
9285aefb655Srie 		*Elf_demangle_name(const char *);
9295aefb655Srie extern	void	Elf_dyn_entry(Lm_list *, Dyn *, int, const char *, Half);
9303244bcaaSab196087 extern	void	Elf_dyn_null_entry(Lm_list *, Dyn *, int, int);
9315aefb655Srie extern	void	Elf_dyn_title(Lm_list *);
9325aefb655Srie 
9335aefb655Srie extern	void	Elf_ehdr(Lm_list *, Ehdr *, Shdr *);
9345aefb655Srie 
9355aefb655Srie extern	void	Elf_got_entry(Lm_list *, Sword, Addr, Xword, Half, Word, void *,
9367c478bd9Sstevel@tonic-gate 		    const char *);
9375aefb655Srie extern	void	Elf_got_title(Lm_list *);
9385aefb655Srie 
9395aefb655Srie extern	void	Elf_phdr(Lm_list *, Half, Phdr *);
9405aefb655Srie 
9415aefb655Srie extern	void	Elf_reloc_apply_val(Lm_list *, int, Xword, Xword);
9425aefb655Srie extern	void	Elf_reloc_apply_reg(Lm_list *, int, Half, Xword, Xword);
9435aefb655Srie extern	void	Elf_reloc_entry_1(Lm_list *, int, const char *, Half, Word,
9445aefb655Srie 		    void *, const char *, const char *, const char *);
9455aefb655Srie extern	void	Elf_reloc_entry_2(Lm_list *, int, const char *, Word,
9465aefb655Srie 		    const char *, Off, Sxword, const char *, const char *,
9477c478bd9Sstevel@tonic-gate 		    const char *);
9485aefb655Srie extern	void	Elf_reloc_title(Lm_list *, int, Word);
9495aefb655Srie 
9505aefb655Srie extern	void	Elf_shdr(Lm_list *, Half, Shdr *);
9515aefb655Srie 
9525aefb655Srie extern	void	Elf_syms_table_entry(Lm_list *, int, const char *, Half, Sym *,
9533b41b08bSab196087 		    Versym, const char *, const char *);
9545aefb655Srie extern	void	Elf_syms_table_title(Lm_list *, int);
9555aefb655Srie 
9565aefb655Srie extern	void	Elf_ver_def_title(Lm_list *);
9575aefb655Srie extern	void	Elf_ver_line_1(Lm_list *, const char *, const char *,
9587c478bd9Sstevel@tonic-gate 		    const char *, const char *);
9595aefb655Srie extern	void	Elf_ver_line_2(Lm_list *, const char *, const char *);
9605aefb655Srie extern	void	Elf_ver_line_3(Lm_list *, const char *, const char *,
9617c478bd9Sstevel@tonic-gate 		    const char *);
9625aefb655Srie extern	void	Elf_ver_line_4(Lm_list *, const char *);
9635aefb655Srie extern	void	Elf_ver_line_5(Lm_list *, const char *, const char *);
9645aefb655Srie extern	void	Elf_ver_need_title(Lm_list *);
9657c478bd9Sstevel@tonic-gate 
9663244bcaaSab196087 
9677c478bd9Sstevel@tonic-gate #ifdef	__cplusplus
9687c478bd9Sstevel@tonic-gate }
9697c478bd9Sstevel@tonic-gate #endif
9707c478bd9Sstevel@tonic-gate 
9717c478bd9Sstevel@tonic-gate #endif /* _DEBUG_H */
972