xref: /illumos-gate/usr/src/cmd/sgs/include/debug.h (revision 48125817)
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 /*
23bf994817SAli Bahrami  * Copyright (c) 1991, 2010, Oracle and/or its affiliates. All rights reserved.
247c478bd9Sstevel@tonic-gate  */
257c478bd9Sstevel@tonic-gate 
267c478bd9Sstevel@tonic-gate #ifndef	_DEBUG_H
277c478bd9Sstevel@tonic-gate #define	_DEBUG_H
287c478bd9Sstevel@tonic-gate 
297c478bd9Sstevel@tonic-gate /*
305aefb655Srie  * Global include file for lddbg debugging.
317c478bd9Sstevel@tonic-gate  *
325aefb655Srie  * ld(1) and ld.so.1(1) carry out all diagnostic debugging calls via lazy
335aefb655Srie  * loading the library liblddbg.so.  Thus debugging is always enabled.  The
345aefb655Srie  * utility elfdump(1) is explicitly dependent upon this library.  There are two
357c478bd9Sstevel@tonic-gate  * categories of routines defined in this library:
367c478bd9Sstevel@tonic-gate  *
377c478bd9Sstevel@tonic-gate  *  o	Debugging routines that have specific linker knowledge, and test the
387c478bd9Sstevel@tonic-gate  *	class of debugging allowable before proceeding, start with the `Dbg_'
397c478bd9Sstevel@tonic-gate  *	prefix.
407c478bd9Sstevel@tonic-gate  *
417c478bd9Sstevel@tonic-gate  *  o	Lower level routines that provide generic ELF structure interpretation
427c478bd9Sstevel@tonic-gate  *	start with the `Elf_' prefix.  These latter routines are the only
435aefb655Srie  *	routines used by the elfdump(1) utility.
447c478bd9Sstevel@tonic-gate  */
452017c965SRod Evans #include <sys/times.h>
467c478bd9Sstevel@tonic-gate #include <sgs.h>
477c478bd9Sstevel@tonic-gate #include <libld.h>
487c478bd9Sstevel@tonic-gate #include <rtld.h>
497c478bd9Sstevel@tonic-gate #include <gelf.h>
507c478bd9Sstevel@tonic-gate 
517c478bd9Sstevel@tonic-gate #ifdef	__cplusplus
527c478bd9Sstevel@tonic-gate extern "C" {
537c478bd9Sstevel@tonic-gate #endif
547c478bd9Sstevel@tonic-gate 
557c478bd9Sstevel@tonic-gate /*
561dd9d86fSAli Bahrami  * Define Dbg_*() interface values.  These values direct the debugging routine
571dd9d86fSAli Bahrami  * to generate different diagnostics, thus the strings themselves are maintained
588af2c5b9Srie  * in the debugging library.
597c478bd9Sstevel@tonic-gate  */
607c478bd9Sstevel@tonic-gate #define	DBG_SUP_ENVIRON		1
617c478bd9Sstevel@tonic-gate #define	DBG_SUP_CMDLINE		2
627c478bd9Sstevel@tonic-gate 
637c478bd9Sstevel@tonic-gate #define	DBG_CONF_IGNORE		1	/* configuration processing errors */
647c478bd9Sstevel@tonic-gate #define	DBG_CONF_VERSION	2
657c478bd9Sstevel@tonic-gate #define	DBG_CONF_PRCFAIL	3
667c478bd9Sstevel@tonic-gate #define	DBG_CONF_CORRUPT	4
67c13de8f6Sab #define	DBG_CONF_ABIMISMATCH	5
687c478bd9Sstevel@tonic-gate 
697c478bd9Sstevel@tonic-gate #define	DBG_ORDER_INFO_RANGE	1	/* sh_link out of range */
707c478bd9Sstevel@tonic-gate #define	DBG_ORDER_INFO_ORDER	2	/* sh_info also ordered */
717c478bd9Sstevel@tonic-gate #define	DBG_ORDER_LINK_OUTRANGE	3	/* sh_link out of range */
727c478bd9Sstevel@tonic-gate #define	DBG_ORDER_FLAGS		4	/* sh_flags do not match */
737c478bd9Sstevel@tonic-gate #define	DBG_ORDER_CYCLIC	5	/* sh_link cyclic */
747c478bd9Sstevel@tonic-gate #define	DBG_ORDER_LINK_ERROR	6	/* sh_link (one) has an error */
757c478bd9Sstevel@tonic-gate 
767c478bd9Sstevel@tonic-gate #define	DBG_INIT_SORT		1	/* calling init from sorted order */
777c478bd9Sstevel@tonic-gate #define	DBG_INIT_PEND		2	/* calling pending init */
787c478bd9Sstevel@tonic-gate #define	DBG_INIT_DYN		3	/* dynamically triggered init */
797c478bd9Sstevel@tonic-gate #define	DBG_INIT_DONE		4	/* init completed */
807c478bd9Sstevel@tonic-gate 
817c478bd9Sstevel@tonic-gate #define	DBG_DLSYM_DEF		0
827c478bd9Sstevel@tonic-gate #define	DBG_DLSYM_NEXT		1
837c478bd9Sstevel@tonic-gate #define	DBG_DLSYM_DEFAULT	2
847c478bd9Sstevel@tonic-gate #define	DBG_DLSYM_SELF		3
857c478bd9Sstevel@tonic-gate #define	DBG_DLSYM_PROBE		4
8660758829Srie #define	DBG_DLSYM_SINGLETON	5
8798c080d5SRod Evans #define	DBG_DLSYM_NUM		DBG_DLSYM_SINGLETON + 1
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_SYM_REDUCE_GLOBAL	1	/* reporting global symbols to local */
947c478bd9Sstevel@tonic-gate #define	DBG_SYM_REDUCE_RETAIN	2	/* reporting non reduced local syms */
957c478bd9Sstevel@tonic-gate 
962020b2b6SRod Evans #define	DBG_AUD_CALL		1	/* original call to auditor */
972020b2b6SRod Evans #define	DBG_AUD_RET		2	/* return from auditor diagnostic */
982020b2b6SRod Evans 
992020b2b6SRod Evans #define	DBG_AUD_LOCAL		0	/* auditor is local */
1002020b2b6SRod Evans #define	DBG_AUD_GLOBAL		1	/* auditor is global */
1012020b2b6SRod Evans #define	DBG_AUD_PRELOAD		2	/* auditor is preloaded */
1022020b2b6SRod Evans 
1038af2c5b9Srie /*
1048af2c5b9Srie  * Group handle operations - passed to Dbg_file_hdl_title().  Indicate why
1058af2c5b9Srie  * handle dependencies are being manipulated.
1068af2c5b9Srie  */
1078af2c5b9Srie #define	DBG_HDL_CREATE		0	/* handle creation */
1088af2c5b9Srie #define	DBG_HDL_ADD		1	/* addition to existing handle */
1098af2c5b9Srie #define	DBG_HDL_DELETE		2	/* deletion from a handle */
1108af2c5b9Srie #define	DBG_HDL_ORPHAN		3	/* handle being moved to orphan list */
1118af2c5b9Srie #define	DBG_HDL_REINST		4	/* handle reinstated from orphan list */
1128af2c5b9Srie 
1138af2c5b9Srie /*
1148af2c5b9Srie  * Group handle dependency operations - passed to Dbg_file_hdl_action().
115dae2dfb7Srie  * Identify the dependencies that are associated with a handle.
1168af2c5b9Srie  */
1178af2c5b9Srie #define	DBG_DEP_ADD		0	/* dependency added */
1188af2c5b9Srie #define	DBG_DEP_UPDATE		1	/* dependency updated */
1198af2c5b9Srie #define	DBG_DEP_DELETE		2	/* dependency deleted */
1208af2c5b9Srie #define	DBG_DEP_REMOVE		3	/* dependency removed from handle */
1218af2c5b9Srie #define	DBG_DEP_REMAIN		4	/* dependency must remain on handle */
1228af2c5b9Srie #define	DBG_DEP_ORPHAN		5	/* dependency must remain an orphan */
1238af2c5b9Srie #define	DBG_DEP_REINST		6	/* dependency reinstated from orphan */
1247c478bd9Sstevel@tonic-gate 
125dae2dfb7Srie /*
126dae2dfb7Srie  * Binding information, indicating the result of a symbol binding.  Can also
127dae2dfb7Srie  * indicate the reference as being EXTERN or PARENT.  Binding information is
128dae2dfb7Srie  * used to augment diagnostic binding information (which in turn can be used by
129dae2dfb7Srie  * lari(1)), and to enable ldd(1) -p processing.
130dae2dfb7Srie  */
1317c478bd9Sstevel@tonic-gate #define	DBG_BINFO_FOUND		0x0001	/* information regarding binding */
1327c478bd9Sstevel@tonic-gate #define	DBG_BINFO_DIRECT	0x0002	/* bound directly */
1337c478bd9Sstevel@tonic-gate #define	DBG_BINFO_COPYREF	0x0004	/* bound to copy relocated reference */
1347c478bd9Sstevel@tonic-gate #define	DBG_BINFO_FILTEE	0x0008	/* bound to filtee */
1357c478bd9Sstevel@tonic-gate #define	DBG_BINFO_INTERPOSE	0x0010	/* bound to an identified interposer */
1367c478bd9Sstevel@tonic-gate #define	DBG_BINFO_PLTADDR	0x0020	/* bound to executables undefined plt */
137dae2dfb7Srie #define	DBG_BINFO_MSK		0x0fff
138dae2dfb7Srie 
139dae2dfb7Srie #define	DBG_BINFO_REF_EXTERN	0x1000	/* reference to EXTERN */
140dae2dfb7Srie #define	DBG_BINFO_REF_PARENT	0x2000	/* reference to PARENT */
141dae2dfb7Srie #define	DBG_BINFO_REF_MSK	0xf000
142dae2dfb7Srie 
14308278a5eSRod Evans /*
14408278a5eSRod Evans  * ld.so.1(1) symbol capabilities processing.
14508278a5eSRod Evans  */
14608278a5eSRod Evans #define	DBG_CAP_DEFAULT		0
14708278a5eSRod Evans #define	DBG_CAP_USED		1
14808278a5eSRod Evans #define	DBG_CAP_CANDIDATE	2
14908278a5eSRod Evans #define	DBG_CAP_REJECTED	3
15008278a5eSRod Evans #define	DBG_CAP_HW_1		4
15108278a5eSRod Evans #define	DBG_CAP_SF_1		5
15208278a5eSRod Evans #define	DBG_CAP_HW_2		6
15308278a5eSRod Evans #define	DBG_CAP_PLAT		7
15408278a5eSRod Evans #define	DBG_CAP_MACH		8
1557c478bd9Sstevel@tonic-gate 
1567c478bd9Sstevel@tonic-gate #define	DBG_REL_START		1
1577c478bd9Sstevel@tonic-gate #define	DBG_REL_FINISH		2
1587c478bd9Sstevel@tonic-gate #define	DBG_REL_NONE		3
1597c478bd9Sstevel@tonic-gate 
1605aefb655Srie #define	DBG_NL_STD		0	/* newline controllers - standard and */
1615aefb655Srie #define	DBG_NL_FRC		2	/*    forced. */
1625aefb655Srie 
16337ffaf83SRod Evans #define	DBG_BNDREJ_DIRECT	0	/* bind rejected, direct to nodirect */
16437ffaf83SRod Evans #define	DBG_BNDREJ_GROUP	1	/* bind rejected, group to nodirect */
16537ffaf83SRod Evans #define	DBG_BNDREJ_SINGLE	2	/* bind rejected, singleton without */
16660758829Srie 					/*    default search model */
16760758829Srie #define	DBG_BNDREJ_NUM		DBG_BNDREJ_SINGLE
16860758829Srie 
16969112eddSAli Bahrami /*
17069112eddSAli Bahrami  * Dbg_state_str() is used to obtain commonly used "state transition"
17169112eddSAli Bahrami  * strings used in various debugging output.
17269112eddSAli Bahrami  */
17369112eddSAli Bahrami #define	DBG_STATE_ADD		0	/* add */
17469112eddSAli Bahrami #define	DBG_STATE_CURRENT	1	/* current */
17569112eddSAli Bahrami #define	DBG_STATE_EXCLUDE	2	/* exclude */
17669112eddSAli Bahrami #define	DBG_STATE_IGNORED	3	/* ignored */
17769112eddSAli Bahrami #define	DBG_STATE_MOD_BEFORE	4	/* modify (before) */
17869112eddSAli Bahrami #define	DBG_STATE_MOD_AFTER	5	/* modify (after) */
17969112eddSAli Bahrami #define	DBG_STATE_NEW 		6	/* new */
18069112eddSAli Bahrami #define	DBG_STATE_NEW_IMPLICIT	7	/* new (implicit) */
18108278a5eSRod Evans #define	DBG_STATE_RESET		8	/* reset */
18208278a5eSRod Evans #define	DBG_STATE_ORIGINAL	9	/* original */
18369112eddSAli Bahrami #define	DBG_STATE_RESOLVED	10	/* resolved */
18469112eddSAli Bahrami 
18569112eddSAli Bahrami #define	DBG_STATE_NUM		11
18669112eddSAli Bahrami typedef uint_t dbg_state_t;
18769112eddSAli Bahrami extern	const char *Dbg_state_str(dbg_state_t);
18869112eddSAli Bahrami 
1897c478bd9Sstevel@tonic-gate /*
1905aefb655Srie  * Define a debug descriptor, and a user macro that inspects the descriptor as
1915aefb655Srie  * a means of triggering a class of diagnostic output.
1927c478bd9Sstevel@tonic-gate  */
1935aefb655Srie typedef struct {
1945aefb655Srie 	uint_t		d_class;	/* debugging classes */
195e23c41c9SAli Bahrami 	uint_t		d_extra;	/* extra public information */
196e23c41c9SAli Bahrami 	APlist		*d_list;	/* accepted link-map list names */
1972017c965SRod Evans 	struct timeval	d_totaltime;	/* total time since entry - */
1982017c965SRod Evans 					/*	gettimeofday(3c) */
1992017c965SRod Evans 	struct timeval	d_deltatime;	/* delta time since last diagnostic - */
2002017c965SRod Evans 					/*	gettimeofday(3c) */
2015aefb655Srie } Dbg_desc;
2025aefb655Srie 
2035aefb655Srie extern	Dbg_desc	*dbg_desc;
2045aefb655Srie 
20569112eddSAli Bahrami /*
20669112eddSAli Bahrami  * Macros used to avoid calls to liblddbg unless debugging is enabled.
20769112eddSAli Bahrami  * liblddbg is lazy loaded --- this prevents it from happening unless
20869112eddSAli Bahrami  * it will actually be used.
20969112eddSAli Bahrami  */
2105aefb655Srie #define	DBG_ENABLED	(dbg_desc->d_class)
2115aefb655Srie #define	DBG_CALL(func)	if (DBG_ENABLED) func
2127c478bd9Sstevel@tonic-gate 
2137c478bd9Sstevel@tonic-gate /*
2145aefb655Srie  * Most debugging tokens are interpreted within liblddbg, and thus any flags
2155aefb655Srie  * within d_class are only meaningful to this library.  The following flags
2165aefb655Srie  * extend the d_class diagnostic, and are maintained in d_extra.  These flags
2175aefb655Srie  * may be interpreted by the debugging library itself or from the callers
2185aefb655Srie  * dbg_print() routine.
2197c478bd9Sstevel@tonic-gate  */
220e23c41c9SAli Bahrami #define	DBG_E_DETAIL	0x00000001	/* add detail to a class */
221e23c41c9SAli Bahrami #define	DBG_E_LONG	0x00000002	/* use long names (ie. no truncation) */
222e23c41c9SAli Bahrami #define	DBG_E_DEMANGLE	0x00000004	/* demangle symbol names */
223e23c41c9SAli Bahrami #define	DBG_E_STDNL	0x00000008	/* standard newline indicator */
224e23c41c9SAli Bahrami #define	DBG_E_HELP	0x00000010	/* help requested */
225e23c41c9SAli Bahrami #define	DBG_E_HELP_EXIT	0x00000020	/* hint: user should exit after help */
2262017c965SRod Evans #define	DBG_E_TTIME	0x00000040	/* prepend total time */
2272017c965SRod Evans #define	DBG_E_DTIME	0x00000080	/* prepend delta time */
2282017c965SRod Evans #define	DBG_E_RESET	0x00000100	/* reset times */
229e23c41c9SAli Bahrami 
230e23c41c9SAli Bahrami /* ld only */
231e23c41c9SAli Bahrami #define	DBG_E_SNAME	0x00001000	/* prepend simple name */
232e23c41c9SAli Bahrami #define	DBG_E_FNAME	0x00002000	/* prepend full name */
233e23c41c9SAli Bahrami #define	DBG_E_CLASS	0x00004000	/* prepend ELF class */
234e23c41c9SAli Bahrami 
235e23c41c9SAli Bahrami /* ld.so.1 only */
236e23c41c9SAli Bahrami #define	DBG_E_LMID	0x00100000	/* prepend link-map id */
237e23c41c9SAli Bahrami #define	DBG_E_LMID_LDSO	0x00200000	/* show ldso link-map list */
238e23c41c9SAli Bahrami #define	DBG_E_LMID_ALL	0x00400000	/* show all non-ldso link-map lists */
239e23c41c9SAli Bahrami #define	DBG_E_LMID_ALT	0x00800000	/* show all ALT link-map lists */
240e23c41c9SAli Bahrami #define	DBG_E_LMID_BASE	0x01000000	/* show BASE link-map list */
2417c478bd9Sstevel@tonic-gate 
2425aefb655Srie 
2435aefb655Srie #define	DBG_NOTDETAIL()	!(dbg_desc->d_extra & DBG_E_DETAIL)
2445aefb655Srie #define	DBG_NOTLONG()	!(dbg_desc->d_extra & DBG_E_LONG)
2455aefb655Srie 
2462017c965SRod Evans #define	DBG_ISDEMANGLE() \
2472017c965SRod Evans 			(dbg_desc->d_extra & DBG_E_DEMANGLE)
2482017c965SRod Evans 
2492017c965SRod Evans #define	DBG_TOTALTIME	(dbg_desc->d_totaltime)
2502017c965SRod Evans #define	DBG_DELTATIME	(dbg_desc->d_deltatime)
2512017c965SRod Evans 
2522017c965SRod Evans #define	DBG_ISTTIME()	(dbg_desc->d_extra & DBG_E_TTIME)
2532017c965SRod Evans #define	DBG_ISDTIME()	(dbg_desc->d_extra & DBG_E_DTIME)
2542017c965SRod Evans #define	DBG_ISTIME()	(dbg_desc->d_extra & (DBG_E_TTIME | DBG_E_DTIME))
2552017c965SRod Evans #define	DBG_NOTTIME()	!(dbg_desc->d_extra & (DBG_E_TTIME | DBG_E_DTIME))
2562017c965SRod Evans 
2572017c965SRod Evans #define	DBG_ISRESET()	(dbg_desc->d_extra & DBG_E_RESET)
2582017c965SRod Evans #define	DBG_ONRESET()	(dbg_desc->d_extra |= DBG_E_RESET)
2592017c965SRod Evans #define	DBG_OFFRESET()	(dbg_desc->d_extra &= ~DBG_E_RESET)
2602017c965SRod Evans 
2615aefb655Srie #define	DBG_ISSNAME()	(dbg_desc->d_extra & DBG_E_SNAME)
2625aefb655Srie #define	DBG_ISFNAME()	(dbg_desc->d_extra & DBG_E_FNAME)
2635aefb655Srie #define	DBG_ISCLASS()	(dbg_desc->d_extra & DBG_E_CLASS)
2645aefb655Srie #define	DBG_ISLMID()	(dbg_desc->d_extra & DBG_E_LMID)
2657c478bd9Sstevel@tonic-gate 
2667c478bd9Sstevel@tonic-gate /*
2675aefb655Srie  * Print routine, this must be supplied by the application.  The initial
2685aefb655Srie  * argument may provide a link-map list to associate with the format statement
2695aefb655Srie  * that follows.
2707c478bd9Sstevel@tonic-gate  */
2715aefb655Srie /* PRINTFLIKE2 */
2725aefb655Srie extern	void		dbg_print(Lm_list *, const char *, ...);
2735aefb655Srie 
274e23c41c9SAli Bahrami /*
275e23c41c9SAli Bahrami  * Initialization routine, called before any other Dbg routines to
276e23c41c9SAli Bahrami  * establish the necessary state.
277e23c41c9SAli Bahrami  */
278e23c41c9SAli Bahrami typedef enum { DBG_CALLER_LD, DBG_CALLER_RTLD } dbg_setup_caller_t;
279e23c41c9SAli Bahrami extern	int		Dbg_setup(dbg_setup_caller_t, const char *,
280e23c41c9SAli Bahrami 			    Dbg_desc *, const char **);
281e23c41c9SAli Bahrami 
28269112eddSAli Bahrami /* Call dbg_print() to produce linker version output */
28369112eddSAli Bahrami extern void		Dbg_version(void);
28469112eddSAli Bahrami 
285e23c41c9SAli Bahrami /* Call dbg_print() to produce help output */
286e23c41c9SAli Bahrami extern	void		Dbg_help(void);
2877c478bd9Sstevel@tonic-gate 
2887c478bd9Sstevel@tonic-gate /*
2895aefb655Srie  * Establish ELF32 and ELF64 class Dbg_*() interfaces.
2907c478bd9Sstevel@tonic-gate  */
2915aefb655Srie #if	defined(_ELF64)
2925aefb655Srie 
2935aefb655Srie #define	Dbg_demangle_name	Dbg64_demangle_name
2945aefb655Srie 
2955aefb655Srie #define	Dbg_bind_global		Dbg64_bind_global
2965aefb655Srie #define	Dbg_bind_plt_summary	Dbg64_bind_plt_summary
2975aefb655Srie #define	Dbg_bind_pltpad_from	Dbg64_bind_pltpad_from
2985aefb655Srie #define	Dbg_bind_pltpad_to	Dbg64_bind_pltpad_to
29960758829Srie #define	Dbg_bind_reject		Dbg64_bind_reject
3005aefb655Srie #define	Dbg_bind_weak		Dbg64_bind_weak
3015aefb655Srie 
30208278a5eSRod Evans #define	Dbg_cap_candidate	Dbg64_cap_candidate
30308278a5eSRod Evans #define	Dbg_cap_filter		Dbg64_cap_filter
30408278a5eSRod Evans #define	Dbg_cap_id		Dbg64_cap_id
3051c1abfbcSRod Evans #define	Dbg_cap_identical	Dbg64_cap_identical
30669112eddSAli Bahrami #define	Dbg_cap_mapfile_title	Dbg64_cap_mapfile_title
30708278a5eSRod Evans #define	Dbg_cap_post_title	Dbg64_cap_post_title
3085aefb655Srie #define	Dbg_cap_sec_title	Dbg64_cap_sec_title
30908278a5eSRod Evans #define	Dbg_cap_val		Dbg64_cap_val
31008278a5eSRod Evans #define	Dbg_cap_ptr_entry	Dbg64_cap_ptr_entry
31108278a5eSRod Evans #define	Dbg_cap_val_entry	Dbg64_cap_val_entry
3125aefb655Srie 
31398c080d5SRod Evans #define	Dbg_dl_dladdr		Dbg64_dl_dladdr
31498c080d5SRod Evans #define	Dbg_dl_dlclose		Dbg64_dl_dlclose
31598c080d5SRod Evans #define	Dbg_dl_dldump		Dbg64_dl_dldump
31698c080d5SRod Evans #define	Dbg_dl_dlerror		Dbg64_dl_dlerror
31798c080d5SRod Evans #define	Dbg_dl_dlinfo		Dbg64_dl_dlinfo
31898c080d5SRod Evans #define	Dbg_dl_dlopen		Dbg64_dl_dlopen
31998c080d5SRod Evans #define	Dbg_dl_dlsym		Dbg64_dl_dlsym
32098c080d5SRod Evans #define	Dbg_dl_iphdr_enter	Dbg64_dl_iphdr_enter
32198c080d5SRod Evans #define	Dbg_dl_iphdr_callback	Dbg64_dl_iphdr_callback
32298c080d5SRod Evans #define	Dbg_dl_iphdr_mapchange	Dbg64_dl_iphdr_mapchange
32398c080d5SRod Evans #define	Dbg_dl_iphdr_unmap_ret	Dbg64_dl_iphdr_unmap_ret
32420272c2eSAli Bahrami 
3255aefb655Srie #define	Dbg_ent_entry		Dbg64_ent_entry
3265aefb655Srie #define	Dbg_ent_print		Dbg64_ent_print
3275aefb655Srie 
3285aefb655Srie #define	Dbg_file_analyze	Dbg64_file_analyze
3295aefb655Srie #define	Dbg_file_aout		Dbg64_file_aout
3305aefb655Srie #define	Dbg_file_ar		Dbg64_file_ar
3315aefb655Srie #define	Dbg_file_ar_rescan	Dbg64_file_ar_rescan
3325aefb655Srie #define	Dbg_file_bind_entry	Dbg64_file_bind_entry
3335aefb655Srie #define	Dbg_file_bindings	Dbg64_file_bindings
33420272c2eSAli Bahrami #define	Dbg_file_bindings_done	Dbg64_file_bindings_done
33502ca3e02Srie #define	Dbg_file_cleanup	Dbg64_file_cleanup
3365aefb655Srie #define	Dbg_file_cntl		Dbg64_file_cntl
3375aefb655Srie #define	Dbg_file_config_dis	Dbg64_file_config_dis
3385aefb655Srie #define	Dbg_file_config_obj	Dbg64_file_config_obj
3395aefb655Srie #define	Dbg_file_del_rescan	Dbg64_file_del_rescan
3405aefb655Srie #define	Dbg_file_delete		Dbg64_file_delete
341f441771bSRod Evans #define	Dbg_file_deferred	Dbg64_file_deferred
3425aefb655Srie #define	Dbg_file_elf		Dbg64_file_elf
3435aefb655Srie #define	Dbg_file_filtee		Dbg64_file_filtee
3445aefb655Srie #define	Dbg_file_filter		Dbg64_file_filter
3455aefb655Srie #define	Dbg_file_fixname	Dbg64_file_fixname
3465aefb655Srie #define	Dbg_file_generic	Dbg64_file_generic
3475aefb655Srie #define	Dbg_file_hdl_action	Dbg64_file_hdl_action
3485aefb655Srie #define	Dbg_file_hdl_collect	Dbg64_file_hdl_collect
3495aefb655Srie #define	Dbg_file_hdl_title	Dbg64_file_hdl_title
3505aefb655Srie #define	Dbg_file_lazyload	Dbg64_file_lazyload
3515aefb655Srie #define	Dbg_file_ldso		Dbg64_file_ldso
35256deab07SRod Evans #define	Dbg_file_mmapobj	Dbg64_file_mmapobj
3535aefb655Srie #define	Dbg_file_mode_promote	Dbg64_file_mode_promote
3543906e0c2Srie #define	Dbg_file_modified	Dbg64_file_modified
3555aefb655Srie #define	Dbg_file_needed		Dbg64_file_needed
3565aefb655Srie #define	Dbg_file_output		Dbg64_file_output
3575aefb655Srie #define	Dbg_file_preload	Dbg64_file_preload
3585aefb655Srie #define	Dbg_file_prot		Dbg64_file_prot
3595aefb655Srie #define	Dbg_file_rejected	Dbg64_file_rejected
3605aefb655Srie #define	Dbg_file_reuse		Dbg64_file_reuse
3615aefb655Srie #define	Dbg_file_skip		Dbg64_file_skip
3625aefb655Srie 
3635aefb655Srie #define	Dbg_got_display		Dbg64_got_display
3645aefb655Srie 
3655aefb655Srie #define	Dbg_libs_audit		Dbg64_libs_audit
3665aefb655Srie #define	Dbg_libs_find		Dbg64_libs_find
3675aefb655Srie #define	Dbg_libs_found		Dbg64_libs_found
3683dbfc803SRod Evans #define	Dbg_libs_insecure	Dbg64_libs_insecure
3695aefb655Srie #define	Dbg_libs_init		Dbg64_libs_init
3705aefb655Srie #define	Dbg_libs_l		Dbg64_libs_l
3715aefb655Srie #define	Dbg_libs_path		Dbg64_libs_path
3725aefb655Srie #define	Dbg_libs_req		Dbg64_libs_req
3735aefb655Srie #define	Dbg_libs_update		Dbg64_libs_update
3745aefb655Srie #define	Dbg_libs_yp		Dbg64_libs_yp
3755aefb655Srie #define	Dbg_libs_ylu		Dbg64_libs_ylu
3765aefb655Srie 
37769112eddSAli Bahrami #define	Dbg_map_cexp_id		Dbg64_map_cexp_id
37869112eddSAli Bahrami #define	Dbg_map_dv		Dbg64_map_dv
37969112eddSAli Bahrami #define	Dbg_map_dv_entry	Dbg64_map_dv_entry
3805aefb655Srie #define	Dbg_map_ent		Dbg64_map_ent
38169112eddSAli Bahrami #define	Dbg_map_ent_ord_title	Dbg64_map_ent_ord_title
38269112eddSAli Bahrami #define	Dbg_map_hdr_noalloc	Dbg64_map_hdr_noalloc
3835aefb655Srie #define	Dbg_map_parse		Dbg64_map_parse
38469112eddSAli Bahrami #define	Dbg_map_pass		Dbg64_map_pass
38569112eddSAli Bahrami #define	Dbg_map_post_title	Dbg64_map_post_title
3865aefb655Srie #define	Dbg_map_seg		Dbg64_map_seg
38769112eddSAli Bahrami #define	Dbg_map_seg_order	Dbg64_map_seg_order
38869112eddSAli Bahrami #define	Dbg_map_seg_os_order	Dbg64_map_seg_os_order
3895aefb655Srie #define	Dbg_map_size_new	Dbg64_map_size_new
3905aefb655Srie #define	Dbg_map_size_old	Dbg64_map_size_old
39157ef7aa9SRod Evans #define	Dbg_map_sort_seg	Dbg64_map_sort_seg
39269112eddSAli Bahrami #define	Dbg_map_sort_title	Dbg64_map_sort_title
3935aefb655Srie #define	Dbg_map_symbol		Dbg64_map_symbol
3945aefb655Srie #define	Dbg_map_version		Dbg64_map_version
3955aefb655Srie 
3965aefb655Srie #define	Dbg_move_adjexpandreloc	Dbg64_move_adjexpandreloc
3975aefb655Srie #define	Dbg_move_adjmovereloc	Dbg64_move_adjmovereloc
39856deab07SRod Evans #define	Dbg_move_bad		Dbg64_move_bad
3995aefb655Srie #define	Dbg_move_data		Dbg64_move_data
4005aefb655Srie #define	Dbg_move_entry1		Dbg64_move_entry1
4015aefb655Srie #define	Dbg_move_entry2		Dbg64_move_entry2
4025aefb655Srie #define	Dbg_move_expand		Dbg64_move_expand
4035aefb655Srie #define	Dbg_move_input		Dbg64_move_input
4045aefb655Srie #define	Dbg_move_outmove	Dbg64_move_outmove
4055aefb655Srie #define	Dbg_move_outsctadj	Dbg64_move_outsctadj
4065aefb655Srie #define	Dbg_move_parexpn	Dbg64_move_parexpn
4075aefb655Srie 
4085aefb655Srie #define	Dbg_reloc_apply_reg	Dbg64_reloc_apply_reg
4095aefb655Srie #define	Dbg_reloc_apply_val	Dbg64_reloc_apply_val
4105aefb655Srie #define	Dbg_reloc_ars_entry	Dbg64_reloc_ars_entry
4115aefb655Srie #define	Dbg_reloc_copy		Dbg64_reloc_copy
4125aefb655Srie #define	Dbg_reloc_discard	Dbg64_reloc_discard
4135aefb655Srie #define	Dbg_reloc_doact		Dbg64_reloc_doact
4145aefb655Srie #define	Dbg_reloc_doact_title	Dbg64_reloc_doact_title
4155aefb655Srie #define	Dbg_reloc_dooutrel	Dbg64_reloc_dooutrel
4165aefb655Srie #define	Dbg_reloc_entry		Dbg64_reloc_entry
4175aefb655Srie #define	Dbg_reloc_error		Dbg64_reloc_error
4185aefb655Srie #define	Dbg_reloc_generate	Dbg64_reloc_generate
4195aefb655Srie #define	Dbg_reloc_in		Dbg64_reloc_in
4205aefb655Srie #define	Dbg_reloc_ors_entry	Dbg64_reloc_ors_entry
4215aefb655Srie #define	Dbg_reloc_out		Dbg64_reloc_out
4225aefb655Srie #define	Dbg_reloc_proc		Dbg64_reloc_proc
4235aefb655Srie #define	Dbg_reloc_run		Dbg64_reloc_run
4245aefb655Srie #define	Dbg_reloc_transition	Dbg64_reloc_transition
425d2ef9fe9Sab #define	Dbg_reloc_sloppycomdat	Dbg64_reloc_sloppycomdat
4265aefb655Srie 
4275aefb655Srie #define	Dbg_sec_added		Dbg64_sec_added
42857ef7aa9SRod Evans #define	Dbg_sec_backing		Dbg64_sec_backing
4295aefb655Srie #define	Dbg_sec_created		Dbg64_sec_created
4305aefb655Srie #define	Dbg_sec_discarded	Dbg64_sec_discarded
431cce0e03bSab #define	Dbg_sec_genstr_compress	Dbg64_sec_genstr_compress
4325aefb655Srie #define	Dbg_sec_group		Dbg64_sec_group
4330e233487SRod Evans #define	Dbg_sec_gnu_comdat	Dbg64_sec_gnu_comdat
4345aefb655Srie #define	Dbg_sec_in		Dbg64_sec_in
4355aefb655Srie #define	Dbg_sec_order_error	Dbg64_sec_order_error
4365aefb655Srie #define	Dbg_sec_order_list	Dbg64_sec_order_list
4370e233487SRod Evans #define	Dbg_sec_redirected	Dbg64_sec_redirected
4385aefb655Srie #define	Dbg_sec_strtab		Dbg64_sec_strtab
439cce0e03bSab #define	Dbg_sec_unsup_strmerge	Dbg64_sec_unsup_strmerge
4405aefb655Srie 
4415aefb655Srie #define	Dbg_seg_desc_entry	Dbg64_seg_desc_entry
4425aefb655Srie #define	Dbg_seg_entry		Dbg64_seg_entry
4435aefb655Srie #define	Dbg_seg_list		Dbg64_seg_list
4445aefb655Srie #define	Dbg_seg_os		Dbg64_seg_os
4455aefb655Srie #define	Dbg_seg_title		Dbg64_seg_title
4465aefb655Srie 
4477010c12aSrie #define	Dbg_shdr_modified	Dbg64_shdr_modified
4487010c12aSrie 
4495aefb655Srie #define	Dbg_statistics_ar	Dbg64_statistics_ar
4505aefb655Srie #define	Dbg_statistics_ld	Dbg64_statistics_ld
4515aefb655Srie 
4525aefb655Srie #define	Dbg_support_action	Dbg64_support_action
453