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 /* 23*20272c2eSAli Bahrami * Copyright 2010 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 /* 315aefb655Srie * Global include file for lddbg debugging. 327c478bd9Sstevel@tonic-gate * 335aefb655Srie * ld(1) and ld.so.1(1) carry out all diagnostic debugging calls via lazy 345aefb655Srie * loading the library liblddbg.so. Thus debugging is always enabled. The 355aefb655Srie * utility elfdump(1) is explicitly dependent upon this library. There are two 367c478bd9Sstevel@tonic-gate * categories of routines defined in this library: 377c478bd9Sstevel@tonic-gate * 387c478bd9Sstevel@tonic-gate * o Debugging routines that have specific linker knowledge, and test the 397c478bd9Sstevel@tonic-gate * class of debugging allowable before proceeding, start with the `Dbg_' 407c478bd9Sstevel@tonic-gate * prefix. 417c478bd9Sstevel@tonic-gate * 427c478bd9Sstevel@tonic-gate * o Lower level routines that provide generic ELF structure interpretation 437c478bd9Sstevel@tonic-gate * start with the `Elf_' prefix. These latter routines are the only 445aefb655Srie * routines used by the elfdump(1) utility. 457c478bd9Sstevel@tonic-gate */ 462017c965SRod Evans #include <sys/times.h> 477c478bd9Sstevel@tonic-gate #include <sgs.h> 487c478bd9Sstevel@tonic-gate #include <libld.h> 497c478bd9Sstevel@tonic-gate #include <rtld.h> 507c478bd9Sstevel@tonic-gate #include <gelf.h> 517c478bd9Sstevel@tonic-gate 527c478bd9Sstevel@tonic-gate #ifdef __cplusplus 537c478bd9Sstevel@tonic-gate extern "C" { 547c478bd9Sstevel@tonic-gate #endif 557c478bd9Sstevel@tonic-gate 567c478bd9Sstevel@tonic-gate /* 571dd9d86fSAli Bahrami * Define Dbg_*() interface values. These values direct the debugging routine 581dd9d86fSAli Bahrami * to generate different diagnostics, thus the strings themselves are maintained 598af2c5b9Srie * in the debugging library. 607c478bd9Sstevel@tonic-gate */ 617c478bd9Sstevel@tonic-gate #define DBG_SUP_ENVIRON 1 627c478bd9Sstevel@tonic-gate #define DBG_SUP_CMDLINE 2 637c478bd9Sstevel@tonic-gate 647c478bd9Sstevel@tonic-gate #define DBG_CONF_IGNORE 1 /* configuration processing errors */ 657c478bd9Sstevel@tonic-gate #define DBG_CONF_VERSION 2 667c478bd9Sstevel@tonic-gate #define DBG_CONF_PRCFAIL 3 677c478bd9Sstevel@tonic-gate #define DBG_CONF_CORRUPT 4 68c13de8f6Sab196087 #define DBG_CONF_ABIMISMATCH 5 697c478bd9Sstevel@tonic-gate 707c478bd9Sstevel@tonic-gate #define DBG_ORDER_INFO_RANGE 1 /* sh_link out of range */ 717c478bd9Sstevel@tonic-gate #define DBG_ORDER_INFO_ORDER 2 /* sh_info also ordered */ 727c478bd9Sstevel@tonic-gate #define DBG_ORDER_LINK_OUTRANGE 3 /* sh_link out of range */ 737c478bd9Sstevel@tonic-gate #define DBG_ORDER_FLAGS 4 /* sh_flags do not match */ 747c478bd9Sstevel@tonic-gate #define DBG_ORDER_CYCLIC 5 /* sh_link cyclic */ 757c478bd9Sstevel@tonic-gate #define DBG_ORDER_LINK_ERROR 6 /* sh_link (one) has an error */ 767c478bd9Sstevel@tonic-gate 777c478bd9Sstevel@tonic-gate #define DBG_INIT_SORT 1 /* calling init from sorted order */ 787c478bd9Sstevel@tonic-gate #define DBG_INIT_PEND 2 /* calling pending init */ 797c478bd9Sstevel@tonic-gate #define DBG_INIT_DYN 3 /* dynamically triggered init */ 807c478bd9Sstevel@tonic-gate #define DBG_INIT_DONE 4 /* init completed */ 817c478bd9Sstevel@tonic-gate 827c478bd9Sstevel@tonic-gate #define DBG_DLSYM_DEF 0 837c478bd9Sstevel@tonic-gate #define DBG_DLSYM_NEXT 1 847c478bd9Sstevel@tonic-gate #define DBG_DLSYM_DEFAULT 2 857c478bd9Sstevel@tonic-gate #define DBG_DLSYM_SELF 3 867c478bd9Sstevel@tonic-gate #define DBG_DLSYM_PROBE 4 8760758829Srie #define DBG_DLSYM_SINGLETON 5 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 968af2c5b9Srie /* 978af2c5b9Srie * Group handle operations - passed to Dbg_file_hdl_title(). Indicate why 988af2c5b9Srie * handle dependencies are being manipulated. 998af2c5b9Srie */ 1008af2c5b9Srie #define DBG_HDL_CREATE 0 /* handle creation */ 1018af2c5b9Srie #define DBG_HDL_ADD 1 /* addition to existing handle */ 1028af2c5b9Srie #define DBG_HDL_DELETE 2 /* deletion from a handle */ 1038af2c5b9Srie #define DBG_HDL_ORPHAN 3 /* handle being moved to orphan list */ 1048af2c5b9Srie #define DBG_HDL_REINST 4 /* handle reinstated from orphan list */ 1058af2c5b9Srie 1068af2c5b9Srie /* 1078af2c5b9Srie * Group handle dependency operations - passed to Dbg_file_hdl_action(). 108dae2dfb7Srie * Identify the dependencies that are associated with a handle. 1098af2c5b9Srie */ 1108af2c5b9Srie #define DBG_DEP_ADD 0 /* dependency added */ 1118af2c5b9Srie #define DBG_DEP_UPDATE 1 /* dependency updated */ 1128af2c5b9Srie #define DBG_DEP_DELETE 2 /* dependency deleted */ 1138af2c5b9Srie #define DBG_DEP_REMOVE 3 /* dependency removed from handle */ 1148af2c5b9Srie #define DBG_DEP_REMAIN 4 /* dependency must remain on handle */ 1158af2c5b9Srie #define DBG_DEP_ORPHAN 5 /* dependency must remain an orphan */ 1168af2c5b9Srie #define DBG_DEP_REINST 6 /* dependency reinstated from orphan */ 1177c478bd9Sstevel@tonic-gate 118dae2dfb7Srie /* 119dae2dfb7Srie * Binding information, indicating the result of a symbol binding. Can also 120dae2dfb7Srie * indicate the reference as being EXTERN or PARENT. Binding information is 121dae2dfb7Srie * used to augment diagnostic binding information (which in turn can be used by 122dae2dfb7Srie * lari(1)), and to enable ldd(1) -p processing. 123dae2dfb7Srie */ 1247c478bd9Sstevel@tonic-gate #define DBG_BINFO_FOUND 0x0001 /* information regarding binding */ 1257c478bd9Sstevel@tonic-gate #define DBG_BINFO_DIRECT 0x0002 /* bound directly */ 1267c478bd9Sstevel@tonic-gate #define DBG_BINFO_COPYREF 0x0004 /* bound to copy relocated reference */ 1277c478bd9Sstevel@tonic-gate #define DBG_BINFO_FILTEE 0x0008 /* bound to filtee */ 1287c478bd9Sstevel@tonic-gate #define DBG_BINFO_INTERPOSE 0x0010 /* bound to an identified interposer */ 1297c478bd9Sstevel@tonic-gate #define DBG_BINFO_PLTADDR 0x0020 /* bound to executables undefined plt */ 130dae2dfb7Srie #define DBG_BINFO_MSK 0x0fff 131dae2dfb7Srie 132dae2dfb7Srie #define DBG_BINFO_REF_EXTERN 0x1000 /* reference to EXTERN */ 133dae2dfb7Srie #define DBG_BINFO_REF_PARENT 0x2000 /* reference to PARENT */ 134dae2dfb7Srie #define DBG_BINFO_REF_MSK 0xf000 135dae2dfb7Srie 1367c478bd9Sstevel@tonic-gate 1377c478bd9Sstevel@tonic-gate #define DBG_CAP_INITIAL 0 1387c478bd9Sstevel@tonic-gate #define DBG_CAP_IGNORE 1 1397c478bd9Sstevel@tonic-gate #define DBG_CAP_OLD 2 1407c478bd9Sstevel@tonic-gate #define DBG_CAP_NEW 3 1417c478bd9Sstevel@tonic-gate #define DBG_CAP_RESOLVED 4 1427c478bd9Sstevel@tonic-gate 1437c478bd9Sstevel@tonic-gate #define DBG_REL_START 1 1447c478bd9Sstevel@tonic-gate #define DBG_REL_FINISH 2 1457c478bd9Sstevel@tonic-gate #define DBG_REL_NONE 3 1467c478bd9Sstevel@tonic-gate 1475aefb655Srie #define DBG_NL_STD 0 /* newline controllers - standard and */ 1485aefb655Srie #define DBG_NL_FRC 2 /* forced. */ 1497c478bd9Sstevel@tonic-gate 15037ffaf83SRod Evans #define DBG_BNDREJ_DIRECT 0 /* bind rejected, direct to nodirect */ 15137ffaf83SRod Evans #define DBG_BNDREJ_GROUP 1 /* bind rejected, group to nodirect */ 15237ffaf83SRod Evans #define DBG_BNDREJ_SINGLE 2 /* bind rejected, singleton without */ 15360758829Srie /* default search model */ 15460758829Srie #define DBG_BNDREJ_NUM DBG_BNDREJ_SINGLE 15560758829Srie 1567c478bd9Sstevel@tonic-gate /* 1575aefb655Srie * Define a debug descriptor, and a user macro that inspects the descriptor as 1585aefb655Srie * a means of triggering a class of diagnostic output. 1597c478bd9Sstevel@tonic-gate */ 1605aefb655Srie typedef struct { 1615aefb655Srie uint_t d_class; /* debugging classes */ 162e23c41c9SAli Bahrami uint_t d_extra; /* extra public information */ 163e23c41c9SAli Bahrami APlist *d_list; /* accepted link-map list names */ 1642017c965SRod Evans struct timeval d_totaltime; /* total time since entry - */ 1652017c965SRod Evans /* gettimeofday(3c) */ 1662017c965SRod Evans struct timeval d_deltatime; /* delta time since last diagnostic - */ 1672017c965SRod Evans /* gettimeofday(3c) */ 1685aefb655Srie } Dbg_desc; 1697c478bd9Sstevel@tonic-gate 1705aefb655Srie extern Dbg_desc *dbg_desc; 1715aefb655Srie 1725aefb655Srie #define DBG_ENABLED (dbg_desc->d_class) 1735aefb655Srie #define DBG_CALL(func) if (DBG_ENABLED) func 1747c478bd9Sstevel@tonic-gate 1757c478bd9Sstevel@tonic-gate /* 1767c478bd9Sstevel@tonic-gate * Most debugging tokens are interpreted within liblddbg, and thus any flags 1775aefb655Srie * within d_class are only meaningful to this library. The following flags 1785aefb655Srie * extend the d_class diagnostic, and are maintained in d_extra. These flags 1795aefb655Srie * may be interpreted by the debugging library itself or from the callers 1805aefb655Srie * dbg_print() routine. 1817c478bd9Sstevel@tonic-gate */ 182e23c41c9SAli Bahrami #define DBG_E_DETAIL 0x00000001 /* add detail to a class */ 183e23c41c9SAli Bahrami #define DBG_E_LONG 0x00000002 /* use long names (ie. no truncation) */ 184e23c41c9SAli Bahrami #define DBG_E_DEMANGLE 0x00000004 /* demangle symbol names */ 185e23c41c9SAli Bahrami #define DBG_E_STDNL 0x00000008 /* standard newline indicator */ 186e23c41c9SAli Bahrami #define DBG_E_HELP 0x00000010 /* help requested */ 187e23c41c9SAli Bahrami #define DBG_E_HELP_EXIT 0x00000020 /* hint: user should exit after help */ 1882017c965SRod Evans #define DBG_E_TTIME 0x00000040 /* prepend total time */ 1892017c965SRod Evans #define DBG_E_DTIME 0x00000080 /* prepend delta time */ 1902017c965SRod Evans #define DBG_E_RESET 0x00000100 /* reset times */ 1915aefb655Srie 192e23c41c9SAli Bahrami /* ld only */ 193e23c41c9SAli Bahrami #define DBG_E_SNAME 0x00001000 /* prepend simple name */ 194e23c41c9SAli Bahrami #define DBG_E_FNAME 0x00002000 /* prepend full name */ 195e23c41c9SAli Bahrami #define DBG_E_CLASS 0x00004000 /* prepend ELF class */ 1965aefb655Srie 197e23c41c9SAli Bahrami /* ld.so.1 only */ 198e23c41c9SAli Bahrami #define DBG_E_LMID 0x00100000 /* prepend link-map id */ 199e23c41c9SAli Bahrami #define DBG_E_LMID_LDSO 0x00200000 /* show ldso link-map list */ 200e23c41c9SAli Bahrami #define DBG_E_LMID_ALL 0x00400000 /* show all non-ldso link-map lists */ 201e23c41c9SAli Bahrami #define DBG_E_LMID_ALT 0x00800000 /* show all ALT link-map lists */ 202e23c41c9SAli Bahrami #define DBG_E_LMID_BASE 0x01000000 /* show BASE link-map list */ 203e23c41c9SAli Bahrami 2045aefb655Srie 2055aefb655Srie #define DBG_NOTDETAIL() !(dbg_desc->d_extra & DBG_E_DETAIL) 2065aefb655Srie #define DBG_NOTLONG() !(dbg_desc->d_extra & DBG_E_LONG) 2075aefb655Srie 2082017c965SRod Evans #define DBG_ISDEMANGLE() \ 2092017c965SRod Evans (dbg_desc->d_extra & DBG_E_DEMANGLE) 2102017c965SRod Evans 2112017c965SRod Evans #define DBG_TOTALTIME (dbg_desc->d_totaltime) 2122017c965SRod Evans #define DBG_DELTATIME (dbg_desc->d_deltatime) 2132017c965SRod Evans 2142017c965SRod Evans #define DBG_ISTTIME() (dbg_desc->d_extra & DBG_E_TTIME) 2152017c965SRod Evans #define DBG_ISDTIME() (dbg_desc->d_extra & DBG_E_DTIME) 2162017c965SRod Evans #define DBG_ISTIME() (dbg_desc->d_extra & (DBG_E_TTIME | DBG_E_DTIME)) 2172017c965SRod Evans #define DBG_NOTTIME() !(dbg_desc->d_extra & (DBG_E_TTIME | DBG_E_DTIME)) 2182017c965SRod Evans 2192017c965SRod Evans #define DBG_ISRESET() (dbg_desc->d_extra & DBG_E_RESET) 2202017c965SRod Evans #define DBG_ONRESET() (dbg_desc->d_extra |= DBG_E_RESET) 2212017c965SRod Evans #define DBG_OFFRESET() (dbg_desc->d_extra &= ~DBG_E_RESET) 2222017c965SRod Evans 2235aefb655Srie #define DBG_ISSNAME() (dbg_desc->d_extra & DBG_E_SNAME) 2245aefb655Srie #define DBG_ISFNAME() (dbg_desc->d_extra & DBG_E_FNAME) 2255aefb655Srie #define DBG_ISCLASS() (dbg_desc->d_extra & DBG_E_CLASS) 2265aefb655Srie #define DBG_ISLMID() (dbg_desc->d_extra & DBG_E_LMID) 2277c478bd9Sstevel@tonic-gate 2287c478bd9Sstevel@tonic-gate /* 2295aefb655Srie * Print routine, this must be supplied by the application. The initial 2305aefb655Srie * argument may provide a link-map list to associate with the format statement 2315aefb655Srie * that follows. 2327c478bd9Sstevel@tonic-gate */ 2335aefb655Srie /* PRINTFLIKE2 */ 2345aefb655Srie extern void dbg_print(Lm_list *, const char *, ...); 2357c478bd9Sstevel@tonic-gate 236e23c41c9SAli Bahrami /* 237e23c41c9SAli Bahrami * Initialization routine, called before any other Dbg routines to 238e23c41c9SAli Bahrami * establish the necessary state. 239e23c41c9SAli Bahrami */ 240e23c41c9SAli Bahrami typedef enum { DBG_CALLER_LD, DBG_CALLER_RTLD } dbg_setup_caller_t; 241e23c41c9SAli Bahrami extern int Dbg_setup(dbg_setup_caller_t, const char *, 242e23c41c9SAli Bahrami Dbg_desc *, const char **); 243e23c41c9SAli Bahrami 244e23c41c9SAli Bahrami /* Call dbg_print() to produce help output */ 245e23c41c9SAli Bahrami extern void Dbg_help(void); 2467c478bd9Sstevel@tonic-gate 2477c478bd9Sstevel@tonic-gate /* 2485aefb655Srie * Establish ELF32 and ELF64 class Dbg_*() interfaces. 2497c478bd9Sstevel@tonic-gate */ 2505aefb655Srie #if defined(_ELF64) 2517c478bd9Sstevel@tonic-gate 2525aefb655Srie #define Dbg_demangle_name Dbg64_demangle_name 2535aefb655Srie 2545aefb655Srie #define Dbg_bind_global Dbg64_bind_global 2555aefb655Srie #define Dbg_bind_plt_summary Dbg64_bind_plt_summary 2565aefb655Srie #define Dbg_bind_pltpad_from Dbg64_bind_pltpad_from 2575aefb655Srie #define Dbg_bind_pltpad_to Dbg64_bind_pltpad_to 25860758829Srie #define Dbg_bind_reject Dbg64_bind_reject 2595aefb655Srie #define Dbg_bind_weak Dbg64_bind_weak 2605aefb655Srie 2615aefb655Srie #define Dbg_cap_val_hw1 Dbg64_cap_val_hw1 2625aefb655Srie #define Dbg_cap_hw_candidate Dbg64_cap_hw_candidate 2635aefb655Srie #define Dbg_cap_hw_filter Dbg64_cap_hw_filter 2645aefb655Srie #define Dbg_cap_mapfile Dbg64_cap_mapfile 2655aefb655Srie #define Dbg_cap_sec_entry Dbg64_cap_sec_entry 2665aefb655Srie #define Dbg_cap_sec_title Dbg64_cap_sec_title 2675aefb655Srie 268*20272c2eSAli Bahrami #define Dbg_cb_iphdr_enter Dbg64_cb_iphdr_enter 269*20272c2eSAli Bahrami #define Dbg_cb_iphdr_callback Dbg64_cb_iphdr_callback 270*20272c2eSAli Bahrami #define Dbg_cb_iphdr_mapchange Dbg64_cb_iphdr_mapchange 271*20272c2eSAli Bahrami #define Dbg_cb_iphdr_unmap_ret Dbg64_cb_iphdr_unmap_ret 272*20272c2eSAli Bahrami 2735aefb655Srie #define Dbg_ent_entry Dbg64_ent_entry 2745aefb655Srie #define Dbg_ent_print Dbg64_ent_print 2755aefb655Srie 2765aefb655Srie #define Dbg_file_analyze Dbg64_file_analyze 2775aefb655Srie #define Dbg_file_aout Dbg64_file_aout 2785aefb655Srie #define Dbg_file_ar Dbg64_file_ar 2795aefb655Srie #define Dbg_file_ar_rescan Dbg64_file_ar_rescan 2805aefb655Srie #define Dbg_file_bind_entry Dbg64_file_bind_entry 2815aefb655Srie #define Dbg_file_bindings Dbg64_file_bindings 282*20272c2eSAli Bahrami #define Dbg_file_bindings_done Dbg64_file_bindings_done 28302ca3e02Srie #define Dbg_file_cleanup Dbg64_file_cleanup 2845aefb655Srie #define Dbg_file_cntl Dbg64_file_cntl 2855aefb655Srie #define Dbg_file_config_dis Dbg64_file_config_dis 2865aefb655Srie #define Dbg_file_config_obj Dbg64_file_config_obj 2875aefb655Srie #define Dbg_file_del_rescan Dbg64_file_del_rescan 2885aefb655Srie #define Dbg_file_delete Dbg64_file_delete 2895aefb655Srie #define Dbg_file_dlclose Dbg64_file_dlclose 2905aefb655Srie #define Dbg_file_dldump Dbg64_file_dldump 2915aefb655Srie #define Dbg_file_dlopen Dbg64_file_dlopen 2925aefb655Srie #define Dbg_file_elf Dbg64_file_elf 2935aefb655Srie #define Dbg_file_filtee Dbg64_file_filtee 2945aefb655Srie #define Dbg_file_filter Dbg64_file_filter 2955aefb655Srie #define Dbg_file_fixname Dbg64_file_fixname 2965aefb655Srie #define Dbg_file_generic Dbg64_file_generic 2975aefb655Srie #define Dbg_file_hdl_action Dbg64_file_hdl_action 2985aefb655Srie #define Dbg_file_hdl_collect Dbg64_file_hdl_collect 2995aefb655Srie #define Dbg_file_hdl_title Dbg64_file_hdl_title 3005aefb655Srie #define Dbg_file_lazyload Dbg64_file_lazyload 3015aefb655Srie #define Dbg_file_ldso Dbg64_file_ldso 30256deab07SRod Evans #define Dbg_file_mmapobj Dbg64_file_mmapobj 3035aefb655Srie #define Dbg_file_mode_promote Dbg64_file_mode_promote 3043906e0c2Srie #define Dbg_file_modified Dbg64_file_modified 3055aefb655Srie #define Dbg_file_needed Dbg64_file_needed 3065aefb655Srie #define Dbg_file_output Dbg64_file_output 3075aefb655Srie #define Dbg_file_preload Dbg64_file_preload 3085aefb655Srie #define Dbg_file_prot Dbg64_file_prot 3095aefb655Srie #define Dbg_file_rejected Dbg64_file_rejected 3105aefb655Srie #define Dbg_file_reuse Dbg64_file_reuse 3115aefb655Srie #define Dbg_file_skip Dbg64_file_skip 3125aefb655Srie 3135aefb655Srie #define Dbg_got_display Dbg64_got_display 3145aefb655Srie 3155aefb655Srie #define Dbg_libs_audit Dbg64_libs_audit 3165aefb655Srie #define Dbg_libs_find Dbg64_libs_find 3175aefb655Srie #define Dbg_libs_found Dbg64_libs_found 3183dbfc803SRod Evans #define Dbg_libs_insecure Dbg64_libs_insecure 3195aefb655Srie #define Dbg_libs_init Dbg64_libs_init 3205aefb655Srie #define Dbg_libs_l Dbg64_libs_l 3215aefb655Srie #define Dbg_libs_path Dbg64_libs_path 3225aefb655Srie #define Dbg_libs_req Dbg64_libs_req 3235aefb655Srie #define Dbg_libs_update Dbg64_libs_update 3245aefb655Srie #define Dbg_libs_yp Dbg64_libs_yp 3255aefb655Srie #define Dbg_libs_ylu Dbg64_libs_ylu 3265aefb655Srie 3275aefb655Srie #define Dbg_map_dash Dbg64_map_dash 3285aefb655Srie #define Dbg_map_ent Dbg64_map_ent 3295aefb655Srie #define Dbg_map_parse Dbg64_map_parse 3305aefb655Srie #define Dbg_map_pipe Dbg64_map_pipe 3315aefb655Srie #define Dbg_map_seg Dbg64_map_seg 3325aefb655Srie #define Dbg_map_set_atsign Dbg64_map_set_atsign 3335aefb655Srie #define Dbg_map_set_equal Dbg64_map_set_equal 3345aefb655Srie #define Dbg_map_size_new Dbg64_map_size_new 3355aefb655Srie #define Dbg_map_size_old Dbg64_map_size_old 33657ef7aa9SRod Evans #define Dbg_map_sort Dbg64_map_sort 33757ef7aa9SRod Evans #define Dbg_map_sort_seg Dbg64_map_sort_seg 3385aefb655Srie #define Dbg_map_symbol Dbg64_map_symbol 3395aefb655Srie #define Dbg_map_version Dbg64_map_version 3405aefb655Srie 3415aefb655Srie #define Dbg_move_adjexpandreloc Dbg64_move_adjexpandreloc 3425aefb655Srie #define Dbg_move_adjmovereloc Dbg64_move_adjmovereloc 34356deab07SRod Evans #define Dbg_move_bad Dbg64_move_bad 3445aefb655Srie #define Dbg_move_data Dbg64_move_data 3455aefb655Srie #define Dbg_move_entry1 Dbg64_move_entry1 3465aefb655Srie #define Dbg_move_entry2 Dbg64_move_entry2 3475aefb655Srie #define Dbg_move_expand Dbg64_move_expand 3485aefb655Srie #define Dbg_move_input Dbg64_move_input 3495aefb655Srie #define Dbg_move_outmove Dbg64_move_outmove 3505aefb655Srie #define Dbg_move_outsctadj Dbg64_move_outsctadj 3515aefb655Srie #define Dbg_move_parexpn Dbg64_move_parexpn 3525aefb655Srie 3535aefb655Srie #define Dbg_reloc_apply_reg Dbg64_reloc_apply_reg 3545aefb655Srie #define Dbg_reloc_apply_val Dbg64_reloc_apply_val 3555aefb655Srie #define Dbg_reloc_ars_entry Dbg64_reloc_ars_entry 3565aefb655Srie #define Dbg_reloc_copy Dbg64_reloc_copy 3575aefb655Srie #define Dbg_reloc_discard Dbg64_reloc_discard 3585aefb655Srie #define Dbg_reloc_doact Dbg64_reloc_doact 3595aefb655Srie #define Dbg_reloc_doact_title Dbg64_reloc_doact_title 3605aefb655Srie #define Dbg_reloc_dooutrel Dbg64_reloc_dooutrel 3615aefb655Srie #define Dbg_reloc_entry Dbg64_reloc_entry 3625aefb655Srie #define Dbg_reloc_error Dbg64_reloc_error 3635aefb655Srie #define Dbg_reloc_generate Dbg64_reloc_generate 3645aefb655Srie #define Dbg_reloc_in Dbg64_reloc_in 3655aefb655Srie #define Dbg_reloc_ors_entry Dbg64_reloc_ors_entry 3665aefb655Srie #define Dbg_reloc_out Dbg64_reloc_out 3675aefb655Srie #define Dbg_reloc_proc Dbg64_reloc_proc 3685aefb655Srie #define Dbg_reloc_run Dbg64_reloc_run 3695aefb655Srie #define Dbg_reloc_transition Dbg64_reloc_transition 370d2ef9fe9Sab196087 #define Dbg_reloc_sloppycomdat Dbg64_reloc_sloppycomdat 3715aefb655Srie 3725aefb655Srie #define Dbg_sec_added Dbg64_sec_added 37357ef7aa9SRod Evans #define Dbg_sec_backing Dbg64_sec_backing 3745aefb655Srie #define Dbg_sec_created Dbg64_sec_created 3755aefb655Srie #define Dbg_sec_discarded Dbg64_sec_discarded 376cce0e03bSab196087 #define Dbg_sec_genstr_compress Dbg64_sec_genstr_compress 3775aefb655Srie #define Dbg_sec_group Dbg64_sec_group 3780e233487SRod Evans #define Dbg_sec_gnu_comdat Dbg64_sec_gnu_comdat 3795aefb655Srie #define Dbg_sec_in Dbg64_sec_in 3805aefb655Srie #define Dbg_sec_order_error Dbg64_sec_order_error 3815aefb655Srie #define Dbg_sec_order_list Dbg64_sec_order_list 3820e233487SRod Evans #define Dbg_sec_redirected Dbg64_sec_redirected 3835aefb655Srie #define Dbg_sec_strtab Dbg64_sec_strtab 384cce0e03bSab196087 #define Dbg_sec_unsup_strmerge Dbg64_sec_unsup_strmerge 3855aefb655Srie 3865aefb655Srie #define Dbg_seg_desc_entry Dbg64_seg_desc_entry 3875aefb655Srie #define Dbg_seg_entry Dbg64_seg_entry 3885aefb655Srie #define Dbg_seg_list Dbg64_seg_list 3895aefb655Srie #define Dbg_seg_os Dbg64_seg_os 3905aefb655Srie #define Dbg_seg_title Dbg64_seg_title 3915aefb655Srie 3927010c12aSrie #define Dbg_shdr_modified Dbg64_shdr_modified 3937010c12aSrie 3945aefb655Srie #define Dbg_statistics_ar Dbg64_statistics_ar 3955aefb655Srie #define Dbg_statistics_ld Dbg64_statistics_ld 3965aefb655Srie 3975aefb655Srie #define Dbg_support_action Dbg64_support_action 3985aefb655Srie #define Dbg_support_load Dbg64_support_load 3995aefb655Srie #define Dbg_support_req Dbg64_support_req 400d2d5cf7cSAli Bahrami #define Dbg_support_vnone Dbg64_support_vnone 4015aefb655Srie 4025aefb655Srie #define Dbg_syminfo_entry Dbg64_syminfo_entry 4035aefb655Srie #define Dbg_syminfo_title Dbg64_syminfo_title 4045aefb655Srie 4055aefb655Srie #define Dbg_syms_ar_checking Dbg64_syms_ar_checking 4065aefb655Srie #define Dbg_syms_ar_entry Dbg64_syms_ar_entry 4075aefb655Srie #define Dbg_syms_ar_resolve Dbg64_syms_ar_resolve 4085aefb655Srie #define Dbg_syms_ar_title Dbg64_syms_ar_title 4095aefb655Srie #define Dbg_syms_created Dbg64_syms_created 4105aefb655Srie #define Dbg_syms_discarded Dbg64_syms_discarded 4115aefb655Srie #define Dbg_syms_dlsym Dbg64_syms_dlsym 41224b9abbaSab196087 #define Dbg_syms_dup_discarded Dbg64_syms_dup_discarded 413d579eb63Sab196087 #define Dbg_syms_dup_sort_addr Dbg64_syms_dup_sort_addr 4145aefb655Srie #define Dbg_syms_entered Dbg64_syms_entered 4155aefb655Srie #define Dbg_syms_entry Dbg64_syms_entry 4165aefb655Srie #define Dbg_syms_global Dbg64_syms_global 4175aefb655Srie #define Dbg_syms_ignore Dbg64_syms_ignore 418d840867fSab196087 #define Dbg_syms_ignore_gnuver Dbg64_syms_ignore_gnuver 4195aefb655Srie #define Dbg_syms_lazy_rescan Dbg64_syms_lazy_rescan 4205aefb655Srie #define Dbg_syms_lookup Dbg64_syms_lookup 4215aefb655Srie #define Dbg_syms_new Dbg64_syms_new 4225aefb655Srie #define Dbg_syms_old Dbg64_syms_old 4235aefb655Srie #define Dbg_syms_process Dbg64_syms_process 4245aefb655Srie #define Dbg_syms_reduce Dbg64_syms_reduce 4255aefb655Srie #define Dbg_syms_reloc Dbg64_syms_reloc 4265aefb655Srie #define Dbg_syms_resolved Dbg64_syms_resolved 4275aefb655Srie #define Dbg_syms_resolving Dbg64_syms_resolving 4285aefb655Srie #define Dbg_syms_sec_entry Dbg64_syms_sec_entry 4295aefb655Srie #define Dbg_syms_sec_title Dbg64_syms_sec_title 4305aefb655Srie #define Dbg_syms_spec_title Dbg64_syms_spec_title 4315aefb655Srie #define Dbg_syms_updated Dbg64_syms_updated 4325aefb655Srie #define Dbg_syms_up_title Dbg64_syms_up_title 433cdcc71c0SAli Bahrami #define Dbg_syms_wrap Dbg64_syms_wrap 4345aefb655Srie 4355aefb655Srie #define Dbg_util_call_array Dbg64_util_call_array 4365aefb655Srie #define Dbg_util_call_fini Dbg64_util_call_fini 4375aefb655Srie #define Dbg_util_call_init Dbg64_util_call_init 4385aefb655Srie #define Dbg_util_call_main Dbg64_util_call_main 4395aefb655Srie #define Dbg_util_collect Dbg64_util_collect 4405aefb655Srie #define Dbg_util_dbnotify Dbg64_util_dbnotify 4415aefb655Srie #define Dbg_util_edge_in Dbg64_util_edge_in 4425aefb655Srie #define Dbg_util_edge_out Dbg64_util_edge_out 4435aefb655Srie #define Dbg_util_intoolate Dbg64_util_intoolate 44410a4fa49Srie #define Dbg_util_lcinterface Dbg64_util_lcinterface 4455aefb655Srie #define Dbg_util_nl Dbg64_util_nl 4465aefb655Srie #define Dbg_util_no_init Dbg64_util_no_init 4475aefb655Srie #define Dbg_util_scc_entry Dbg64_util_scc_entry 4485aefb655Srie #define Dbg_util_scc_title Dbg64_util_scc_title 4495aefb655Srie #define Dbg_util_str Dbg64_util_str 4505aefb655Srie 4515aefb655Srie #define Dbg_unused_file Dbg64_unused_file 45210a4fa49Srie #define Dbg_unused_lcinterface Dbg64_unused_lcinterface 4539aa23310Srie #define Dbg_unused_path Dbg64_unused_path 4545aefb655Srie #define Dbg_unused_sec Dbg64_unused_sec 4555aefb655Srie #define Dbg_unused_unref Dbg64_unused_unref 4565aefb655Srie 4575aefb655Srie #define Dbg_ver_avail_entry Dbg64_ver_avail_entry 4585aefb655Srie #define Dbg_ver_avail_title Dbg64_ver_avail_title 4595aefb655Srie #define Dbg_ver_def_title Dbg64_ver_def_title 4605aefb655Srie #define Dbg_ver_desc_entry Dbg64_ver_desc_entry 461*20272c2eSAli Bahrami #define Dbg_ver_need_done Dbg64_ver_need_done 4625aefb655Srie #define Dbg_ver_need_entry Dbg64_ver_need_entry 4635aefb655Srie #define Dbg_ver_need_title Dbg64_ver_need_title 4645aefb655Srie #define Dbg_ver_nointerface Dbg64_ver_nointerface 4655aefb655Srie #define Dbg_ver_symbol Dbg64_ver_symbol 4665aefb655Srie 4675aefb655Srie #else 4685aefb655Srie 4695aefb655Srie #define Dbg_demangle_name Dbg32_demangle_name 4705aefb655Srie 4715aefb655Srie #define Dbg_bind_global Dbg32_bind_global 4725aefb655Srie #define Dbg_bind_plt_summary Dbg32_bind_plt_summary 47360758829Srie #define Dbg_bind_reject Dbg32_bind_reject 4745aefb655Srie #define Dbg_bind_weak Dbg32_bind_weak 4755aefb655Srie 4765aefb655Srie #define Dbg_cap_val_hw1 Dbg32_cap_val_hw1 4775aefb655Srie #define Dbg_cap_hw_candidate Dbg32_cap_hw_candidate 4785aefb655Srie #define Dbg_cap_hw_filter Dbg32_cap_hw_filter 4795aefb655Srie #define Dbg_cap_mapfile Dbg32_cap_mapfile 4805aefb655Srie #define Dbg_cap_sec_entry Dbg32_cap_sec_entry 4815aefb655Srie #define Dbg_cap_sec_title Dbg32_cap_sec_title 4825aefb655Srie 483*20272c2eSAli Bahrami #define Dbg_cb_iphdr_enter Dbg32_cb_iphdr_enter 484*20272c2eSAli Bahrami #define Dbg_cb_iphdr_callback Dbg32_cb_iphdr_callback 485*20272c2eSAli Bahrami #define Dbg_cb_iphdr_mapchange Dbg32_cb_iphdr_mapchange 486*20272c2eSAli Bahrami #define Dbg_cb_iphdr_unmap_ret Dbg32_cb_iphdr_unmap_ret 487*20272c2eSAli Bahrami 4885aefb655Srie #define Dbg_ent_entry Dbg32_ent_entry 4895aefb655Srie #define Dbg_ent_print Dbg32_ent_print 4905aefb655Srie 4915aefb655Srie #define Dbg_file_analyze Dbg32_file_analyze 4925aefb655Srie #define Dbg_file_aout Dbg32_file_aout 4935aefb655Srie #define Dbg_file_ar Dbg32_file_ar 4945aefb655Srie #define Dbg_file_ar_rescan Dbg32_file_ar_rescan 4955aefb655Srie #define Dbg_file_bind_entry Dbg32_file_bind_entry 4965aefb655Srie #define Dbg_file_bindings Dbg32_file_bindings 497*20272c2eSAli Bahrami #define Dbg_file_bindings_done Dbg32_file_bindings_done 49802ca3e02Srie #define Dbg_file_cleanup Dbg32_file_cleanup 4995aefb655Srie #define Dbg_file_cntl Dbg32_file_cntl 5005aefb655Srie #define Dbg_file_config_dis Dbg32_file_config_dis 5015aefb655Srie #define Dbg_file_config_obj Dbg32_file_config_obj 5025aefb655Srie #define Dbg_file_del_rescan Dbg32_file_del_rescan 5035aefb655Srie #define Dbg_file_delete Dbg32_file_delete 5045aefb655Srie #define Dbg_file_dlclose Dbg32_file_dlclose 5055aefb655Srie #define Dbg_file_dldump Dbg32_file_dldump 5065aefb655Srie #define Dbg_file_dlopen Dbg32_file_dlopen 5075aefb655Srie #define Dbg_file_elf Dbg32_file_elf 5085aefb655Srie #define Dbg_file_filtee Dbg32_file_filtee 5095aefb655Srie #define Dbg_file_filter Dbg32_file_filter 5105aefb655Srie #define Dbg_file_fixname Dbg32_file_fixname 5115aefb655Srie #define Dbg_file_generic Dbg32_file_generic 5125aefb655Srie #define Dbg_file_hdl_action Dbg32_file_hdl_action 5135aefb655Srie #define Dbg_file_hdl_collect Dbg32_file_hdl_collect 5145aefb655Srie #define Dbg_file_hdl_title Dbg32_file_hdl_title 5155aefb655Srie #define Dbg_file_lazyload Dbg32_file_lazyload 5165aefb655Srie #define Dbg_file_ldso Dbg32_file_ldso 51756deab07SRod Evans #define Dbg_file_mmapobj Dbg32_file_mmapobj 5185aefb655Srie #define Dbg_file_mode_promote Dbg32_file_mode_promote 5193906e0c2Srie #define Dbg_file_modified Dbg32_file_modified 5205aefb655Srie #define Dbg_file_needed Dbg32_file_needed 5215aefb655Srie #define Dbg_file_output Dbg32_file_output 5225aefb655Srie #define Dbg_file_preload Dbg32_file_preload 5235aefb655Srie #define Dbg_file_prot Dbg32_file_prot 5245aefb655Srie #define Dbg_file_rejected Dbg32_file_rejected 5255aefb655Srie #define Dbg_file_reuse Dbg32_file_reuse 5265aefb655Srie #define Dbg_file_skip Dbg32_file_skip 5275aefb655Srie 5285aefb655Srie #define Dbg_got_display Dbg32_got_display 5295aefb655Srie 5305aefb655Srie #define Dbg_libs_audit Dbg32_libs_audit 5315aefb655Srie #define Dbg_libs_find Dbg32_libs_find 5325aefb655Srie #define Dbg_libs_found Dbg32_libs_found 5333dbfc803SRod Evans #define Dbg_libs_insecure Dbg32_libs_insecure 5345aefb655Srie #define Dbg_libs_init Dbg32_libs_init 5355aefb655Srie #define Dbg_libs_l Dbg32_libs_l 5365aefb655Srie #define Dbg_libs_path Dbg32_libs_path 5375aefb655Srie #define Dbg_libs_req Dbg32_libs_req 5385aefb655Srie #define Dbg_libs_update Dbg32_libs_update 5395aefb655Srie #define Dbg_libs_yp Dbg32_libs_yp 5405aefb655Srie #define Dbg_libs_ylu Dbg32_libs_ylu 5415aefb655Srie 5425aefb655Srie #define Dbg_map_dash Dbg32_map_dash 5435aefb655Srie #define Dbg_map_ent Dbg32_map_ent 5445aefb655Srie #define Dbg_map_parse Dbg32_map_parse 5455aefb655Srie #define Dbg_map_pipe Dbg32_map_pipe 5465aefb655Srie #define Dbg_map_seg Dbg32_map_seg 5475aefb655Srie #define Dbg_map_set_atsign Dbg32_map_set_atsign 5485aefb655Srie #define Dbg_map_set_equal Dbg32_map_set_equal 5495aefb655Srie #define Dbg_map_size_new Dbg32_map_size_new 5505aefb655Srie #define Dbg_map_size_old Dbg32_map_size_old 55157ef7aa9SRod Evans #define Dbg_map_sort Dbg32_map_sort 55257ef7aa9SRod Evans #define Dbg_map_sort_seg Dbg32_map_sort_seg 5535aefb655Srie #define Dbg_map_symbol Dbg32_map_symbol 5545aefb655Srie #define Dbg_map_version Dbg32_map_version 5555aefb655Srie 5565aefb655Srie #define Dbg_move_adjexpandreloc Dbg32_move_adjexpandreloc 5575aefb655Srie #define Dbg_move_adjmovereloc Dbg32_move_adjmovereloc 55856deab07SRod Evans #define Dbg_move_bad Dbg32_move_bad 5595aefb655Srie #define Dbg_move_data Dbg32_move_data 5605aefb655Srie #define Dbg_move_entry1 Dbg32_move_entry1 5615aefb655Srie #define Dbg_move_entry2 Dbg32_move_entry2 5625aefb655Srie #define Dbg_move_expand Dbg32_move_expand 5635aefb655Srie #define Dbg_move_input Dbg32_move_input 5645aefb655Srie #define Dbg_move_outmove Dbg32_move_outmove 5655aefb655Srie #define Dbg_move_outsctadj Dbg32_move_outsctadj 5665aefb655Srie #define Dbg_move_parexpn Dbg32_move_parexpn 5675aefb655Srie 5685aefb655Srie #define Dbg_reloc_apply_reg Dbg32_reloc_apply_reg 5695aefb655Srie #define Dbg_reloc_apply_val Dbg32_reloc_apply_val 5705aefb655Srie #define Dbg_reloc_ars_entry Dbg32_reloc_ars_entry 5715aefb655Srie #define Dbg_reloc_copy Dbg32_reloc_copy 5725aefb655Srie #define Dbg_reloc_discard Dbg32_reloc_discard 5735aefb655Srie #define Dbg_reloc_doact Dbg32_reloc_doact 5745aefb655Srie #define Dbg_reloc_doact_title Dbg32_reloc_doact_title 5755aefb655Srie #define Dbg_reloc_dooutrel Dbg32_reloc_dooutrel 5765aefb655Srie #define Dbg_reloc_entry Dbg32_reloc_entry 5775aefb655Srie #define Dbg_reloc_error Dbg32_reloc_error 5785aefb655Srie #define Dbg_reloc_generate Dbg32_reloc_generate 5795aefb655Srie #define Dbg_reloc_in Dbg32_reloc_in 5805aefb655Srie #define Dbg_reloc_ors_entry Dbg32_reloc_ors_entry 5815aefb655Srie #define Dbg_reloc_out Dbg32_reloc_out 5825aefb655Srie #define Dbg_reloc_proc Dbg32_reloc_proc 5835aefb655Srie #define Dbg_reloc_run Dbg32_reloc_run 5845aefb655Srie #define Dbg_reloc_transition Dbg32_reloc_transition 585d2ef9fe9Sab196087 #define Dbg_reloc_sloppycomdat Dbg32_reloc_sloppycomdat 5865aefb655Srie 5875aefb655Srie #define Dbg_sec_added Dbg32_sec_added 58857ef7aa9SRod Evans #define Dbg_sec_backing Dbg32_sec_backing 5895aefb655Srie #define Dbg_sec_created Dbg32_sec_created 5905aefb655Srie #define Dbg_sec_discarded Dbg32_sec_discarded 591cce0e03bSab196087 #define Dbg_sec_genstr_compress Dbg32_sec_genstr_compress 5925aefb655Srie #define Dbg_sec_group Dbg32_sec_group 5930e233487SRod Evans #define Dbg_sec_gnu_comdat Dbg32_sec_gnu_comdat 5945aefb655Srie #define Dbg_sec_in Dbg32_sec_in 5955aefb655Srie #define Dbg_sec_order_error Dbg32_sec_order_error 5965aefb655Srie #define Dbg_sec_order_list Dbg32_sec_order_list 5970e233487SRod Evans #define Dbg_sec_redirected Dbg32_sec_redirected 5985aefb655Srie #define Dbg_sec_strtab Dbg32_sec_strtab 599cce0e03bSab196087 #define Dbg_sec_unsup_strmerge Dbg32_sec_unsup_strmerge 6005aefb655Srie 6015aefb655Srie #define Dbg_seg_desc_entry Dbg32_seg_desc_entry 6025aefb655Srie #define Dbg_seg_entry Dbg32_seg_entry 6035aefb655Srie #define Dbg_seg_list Dbg32_seg_list 6045aefb655Srie #define Dbg_seg_os Dbg32_seg_os 6055aefb655Srie #define Dbg_seg_title Dbg32_seg_title 6065aefb655Srie 6077010c12aSrie #define Dbg_shdr_modified Dbg32_shdr_modified 6087010c12aSrie 6095aefb655Srie #define Dbg_statistics_ar Dbg32_statistics_ar 6105aefb655Srie #define Dbg_statistics_ld Dbg32_statistics_ld 6115aefb655Srie 6125aefb655Srie #define Dbg_support_action Dbg32_support_action 6135aefb655Srie #define Dbg_support_load Dbg32_support_load 6145aefb655Srie #define Dbg_support_req Dbg32_support_req 615d2d5cf7cSAli Bahrami #define Dbg_support_vnone Dbg32_support_vnone 6165aefb655Srie 6175aefb655Srie #define Dbg_syminfo_entry Dbg32_syminfo_entry 6185aefb655Srie #define Dbg_syminfo_title Dbg32_syminfo_title 6195aefb655Srie 6205aefb655Srie #define Dbg_syms_ar_checking Dbg32_syms_ar_checking 6215aefb655Srie #define Dbg_syms_ar_entry Dbg32_syms_ar_entry 6225aefb655Srie #define Dbg_syms_ar_resolve Dbg32_syms_ar_resolve 6235aefb655Srie #define Dbg_syms_ar_title Dbg32_syms_ar_title 6245aefb655Srie #define Dbg_syms_created Dbg32_syms_created 6255aefb655Srie #define Dbg_syms_discarded Dbg32_syms_discarded 6265aefb655Srie #define Dbg_syms_dlsym Dbg32_syms_dlsym 62724b9abbaSab196087 #define Dbg_syms_dup_discarded Dbg32_syms_dup_discarded 628d579eb63Sab196087 #define Dbg_syms_dup_sort_addr Dbg32_syms_dup_sort_addr 6295aefb655Srie #define Dbg_syms_entered Dbg32_syms_entered 6305aefb655Srie #define Dbg_syms_entry Dbg32_syms_entry 6315aefb655Srie #define Dbg_syms_global Dbg32_syms_global 6325aefb655Srie #define Dbg_syms_ignore Dbg32_syms_ignore 633d840867fSab196087 #define Dbg_syms_ignore_gnuver Dbg32_syms_ignore_gnuver 6345aefb655Srie #define Dbg_syms_lazy_rescan Dbg32_syms_lazy_rescan 6355aefb655Srie #define Dbg_syms_lookup Dbg32_syms_lookup 6365aefb655Srie #define Dbg_syms_lookup_aout Dbg32_syms_lookup_aout 6375aefb655Srie #define Dbg_syms_new Dbg32_syms_new 6385aefb655Srie #define Dbg_syms_old Dbg32_syms_old 6395aefb655Srie #define Dbg_syms_process Dbg32_syms_process 6405aefb655Srie #define Dbg_syms_reduce Dbg32_syms_reduce 6415aefb655Srie #define Dbg_syms_reloc Dbg32_syms_reloc 6425aefb655Srie #define Dbg_syms_resolved Dbg32_syms_resolved 6435aefb655Srie #define Dbg_syms_resolving Dbg32_syms_resolving 6445aefb655Srie #define Dbg_syms_sec_entry Dbg32_syms_sec_entry 6455aefb655Srie #define Dbg_syms_sec_title Dbg32_syms_sec_title 6465aefb655Srie #define Dbg_syms_spec_title Dbg32_syms_spec_title 6475aefb655Srie #define Dbg_syms_updated Dbg32_syms_updated 6485aefb655Srie #define Dbg_syms_up_title Dbg32_syms_up_title 649cdcc71c0SAli Bahrami #define Dbg_syms_wrap Dbg32_syms_wrap 6505aefb655Srie 6515aefb655Srie #define Dbg_util_call_array Dbg32_util_call_array 6525aefb655Srie #define Dbg_util_call_fini Dbg32_util_call_fini 6535aefb655Srie #define Dbg_util_call_init Dbg32_util_call_init 6545aefb655Srie #define Dbg_util_call_main Dbg32_util_call_main 6555aefb655Srie #define Dbg_util_collect Dbg32_util_collect 6565aefb655Srie #define Dbg_util_dbnotify Dbg32_util_dbnotify 6575aefb655Srie #define Dbg_util_edge_in Dbg32_util_edge_in 6585aefb655Srie #define Dbg_util_edge_out Dbg32_util_edge_out 6595aefb655Srie #define Dbg_util_intoolate Dbg32_util_intoolate 66010a4fa49Srie #define Dbg_util_lcinterface Dbg32_util_lcinterface 6615aefb655Srie #define Dbg_util_nl Dbg32_util_nl 6625aefb655Srie #define Dbg_util_no_init Dbg32_util_no_init 6635aefb655Srie #define Dbg_util_scc_entry Dbg32_util_scc_entry 6645aefb655Srie #define Dbg_util_scc_title Dbg32_util_scc_title 6655aefb655Srie #define Dbg_util_str Dbg32_util_str 6665aefb655Srie 6675aefb655Srie #define Dbg_unused_file Dbg32_unused_file 66810a4fa49Srie #define Dbg_unused_lcinterface Dbg32_unused_lcinterface 6699aa23310Srie #define Dbg_unused_path Dbg32_unused_path 6705aefb655Srie #define Dbg_unused_sec Dbg32_unused_sec 6715aefb655Srie #define Dbg_unused_unref Dbg32_unused_unref 6725aefb655Srie 6735aefb655Srie #define Dbg_ver_avail_entry Dbg32_ver_avail_entry 6745aefb655Srie #define Dbg_ver_avail_title Dbg32_ver_avail_title 6755aefb655Srie #define Dbg_ver_def_title Dbg32_ver_def_title 6765aefb655Srie #define Dbg_ver_desc_entry Dbg32_ver_desc_entry 677*20272c2eSAli Bahrami #define Dbg_ver_need_done Dbg32_ver_need_done 6785aefb655Srie #define Dbg_ver_need_entry Dbg32_ver_need_entry 6795aefb655Srie #define Dbg_ver_need_title Dbg32_ver_need_title 6805aefb655Srie #define Dbg_ver_nointerface Dbg32_ver_nointerface 6815aefb655Srie #define Dbg_ver_symbol Dbg32_ver_symbol 6825aefb655Srie 6835aefb655Srie #endif 6845aefb655Srie 6855aefb655Srie /* 6865aefb655Srie * External Dbg_*() interface routines. 6875aefb655Srie */ 6882017c965SRod Evans extern void Dbg_args_file(Lm_list *, int, char *); 6892017c965SRod Evans extern void Dbg_args_option(Lm_list *, int, int, char *); 69092a02081SRod Evans extern void Dbg_args_str2chr(Lm_list *, int, const char *, int); 69192a02081SRod Evans extern void Dbg_args_Wldel(Lm_list *, int, const char *); 6927247f888Srie extern void Dbg_audit_ignore(Rt_map *); 6935aefb655Srie extern void Dbg_audit_interface(Lm_list *, const char *, const char *); 6945aefb655Srie extern void Dbg_audit_lib(Lm_list *, const char *); 6955aefb655Srie extern void Dbg_audit_object(Lm_list *, const char *, const char *); 6965aefb655Srie extern void Dbg_audit_symval(Lm_list *, const char *, const char *, 6975aefb655Srie const char *, Addr, Addr); 698c75e1b9dSrie extern void Dbg_audit_skip(Lm_list *, const char *, const char *); 6997247f888Srie extern void Dbg_audit_terminate(Lm_list *, const char *); 7005aefb655Srie extern void Dbg_audit_version(Lm_list *, const char *, ulong_t); 7015aefb655Srie 7022017c965SRod Evans extern void Dbg_basic_collect(Lm_list *); 7032017c965SRod Evans extern void Dbg_basic_create(Lm_list *); 7042017c965SRod Evans extern void Dbg_basic_finish(Lm_list *); 7052017c965SRod Evans extern void Dbg_basic_files(Lm_list *); 7062017c965SRod Evans extern void Dbg_basic_options(Lm_list *); 7072017c965SRod Evans extern void Dbg_basic_relocate(Lm_list *); 7082017c965SRod Evans extern void Dbg_basic_validate(Lm_list *); 7092017c965SRod Evans 7105aefb655Srie extern void Dbg_bind_global(Rt_map *, Addr, Off, Xword, Pltbindtype, 7115aefb655Srie Rt_map *, Addr, Off, const char *, uint_t); 7125aefb655Srie extern void Dbg_bind_plt_summary(Lm_list *, Half, Word, Word, Word, Word, 7135aefb655Srie Word, Word); 7145aefb655Srie #if defined(_ELF64) 7155aefb655Srie extern void Dbg_bind_pltpad_from(Rt_map *, Addr, const char *); 7165aefb655Srie extern void Dbg_bind_pltpad_to(Rt_map *, Addr, const char *, const char *); 7175aefb655Srie #endif 71860758829Srie extern void Dbg_bind_reject(Rt_map *, Rt_map *, const char *, int); 7195aefb655Srie extern void Dbg_bind_weak(Rt_map *, Addr, Addr, const char *); 7205aefb655Srie 7215aefb655Srie extern void Dbg_cap_hw_candidate(Lm_list *, const char *); 7225aefb655Srie extern void Dbg_cap_hw_filter(Lm_list *, const char *, Rt_map *); 7235aefb655Srie extern void Dbg_cap_mapfile(Lm_list *, Xword, Xword, Half); 7245aefb655Srie extern void Dbg_cap_sec_entry(Lm_list *, uint_t, Xword, Xword, Half); 725bb3b4f6cSRod Evans extern void Dbg_cap_sec_title(Lm_list *, const char *); 7265aefb655Srie extern void Dbg_cap_val_hw1(Lm_list *, Xword, Half); 7275aefb655Srie 728*20272c2eSAli Bahrami extern void Dbg_cb_iphdr_enter(Lm_list *, u_longlong_t, u_longlong_t); 729*20272c2eSAli Bahrami extern void Dbg_cb_iphdr_callback(Lm_list *, struct dl_phdr_info *); 730*20272c2eSAli Bahrami extern void Dbg_cb_iphdr_mapchange(Lm_list *, u_longlong_t, u_longlong_t); 731*20272c2eSAli Bahrami extern void Dbg_cb_iphdr_unmap_ret(Lm_list *); 732*20272c2eSAli Bahrami 7335aefb655Srie extern const char * 7345aefb655Srie Dbg_demangle_name(const char *); 7355aefb655Srie 7364f680cc6SAli Bahrami extern void Dbg_ent_entry(Lm_list *, uchar_t, Half, Ent_desc *); 7374f680cc6SAli Bahrami extern void Dbg_ent_print(Lm_list *, uchar_t, Half, Alist *, Boolean); 7385aefb655Srie 7397c478bd9Sstevel@tonic-gate extern void Dbg_file_analyze(Rt_map *); 74056deab07SRod Evans extern void Dbg_file_aout(Lm_list *, const char *, Addr, size_t, 74156deab07SRod Evans const char *, Aliste); 7425aefb655Srie extern void Dbg_file_ar(Lm_list *, const char *, int); 743551cffe3SAli Bahrami extern void Dbg_file_ar_rescan(Lm_list *, int, int); 7445aefb655Srie extern void Dbg_file_bind_entry(Lm_list *, Bnd_desc *); 7455aefb655Srie extern void Dbg_file_bindings(Rt_map *, int); 746*20272c2eSAli Bahrami extern void Dbg_file_bindings_done(Lm_list *); 74702ca3e02Srie extern void Dbg_file_cleanup(Lm_list *, const char *, Aliste); 7487c478bd9Sstevel@tonic-gate extern void Dbg_file_cntl(Lm_list *, Aliste, Aliste); 7495aefb655Srie extern void Dbg_file_config_dis(Lm_list *, const char *, int); 7505aefb655Srie extern void Dbg_file_config_obj(Lm_list *, const char *, const char *, 7517c478bd9Sstevel@tonic-gate const char *); 7525aefb655Srie extern void Dbg_file_del_rescan(Lm_list *); 7535aefb655Srie extern void Dbg_file_delete(Rt_map *); 7545aefb655Srie extern void Dbg_file_dlclose(Lm_list *, const char *, int); 7555aefb655Srie extern void Dbg_file_dldump(Rt_map *, const char *, int); 7569aa23310Srie extern void Dbg_file_dlopen(Rt_map *, const char *, int *, int); 75756deab07SRod Evans extern void Dbg_file_elf(Lm_list *, const char *, Addr, size_t, 75856deab07SRod Evans const char *, Aliste); 7595aefb655Srie extern void Dbg_file_filtee(Lm_list *, const char *, const char *, int); 7605aefb655Srie extern void Dbg_file_filter(Lm_list *, const char *, const char *, int); 7615aefb655Srie extern void Dbg_file_fixname(Lm_list *, const char *, const char *); 7625aefb655Srie extern void Dbg_file_generic(Lm_list *, Ifl_desc *); 76302ca3e02Srie extern void Dbg_file_hdl_action(Grp_hdl *, Rt_map *, int, uint_t); 7647c478bd9Sstevel@tonic-gate extern void Dbg_file_hdl_collect(Grp_hdl *, const char *); 7657c478bd9Sstevel@tonic-gate extern void Dbg_file_hdl_title(int); 7665aefb655Srie extern void Dbg_file_lazyload(Rt_map *, const char *, const char *); 7675aefb655Srie extern void Dbg_file_ldso(Rt_map *, char **, auxv_t *, const char *, 7685aefb655Srie Aliste); 76956deab07SRod Evans extern void Dbg_file_mmapobj(Lm_list *, const char *, mmapobj_result_t *, 77056deab07SRod Evans uint_t); 7715aefb655Srie extern void Dbg_file_mode_promote(Rt_map *, int); 7723906e0c2Srie extern void Dbg_file_modified(Lm_list *, const char *, const char *, 7733906e0c2Srie const char *, int, int, Elf *, Elf *); 7745aefb655Srie extern void Dbg_file_needed(Rt_map *, const char *); 7757c478bd9Sstevel@tonic-gate extern void Dbg_file_output(Ofl_desc *); 7765aefb655Srie extern void Dbg_file_preload(Lm_list *, const char *); 7775aefb655Srie extern void Dbg_file_prot(Rt_map *, int); 778ba2be530Sab196087 extern void Dbg_file_rejected(Lm_list *, Rej_desc *, Half mach); 7795aefb655Srie extern void Dbg_file_reuse(Lm_list *, const char *, const char *); 7805aefb655Srie extern void Dbg_file_skip(Lm_list *, const char *, const char *); 7815aefb655Srie 782ba2be530Sab196087 extern void Dbg_got_display(Ofl_desc *, Off, int, Word, size_t); 7835aefb655Srie 7845aefb655Srie extern void Dbg_libs_audit(Lm_list *, const char *, const char *); 7855aefb655Srie extern void Dbg_libs_find(Lm_list *, const char *); 7865aefb655Srie extern void Dbg_libs_found(Lm_list *, const char *, int); 7873dbfc803SRod Evans extern void Dbg_libs_insecure(Lm_list *, const char *, int); 78857ef7aa9SRod Evans extern void Dbg_libs_init(Lm_list *, APlist *, APlist *); 7895aefb655Srie extern void Dbg_libs_l(Lm_list *, const char *, const char *); 7909aa23310Srie extern void Dbg_libs_path(Lm_list *, const char *, uint_t, const char *); 7915aefb655Srie extern void Dbg_libs_req(Lm_list *, const char *, const char *, 7927c478bd9Sstevel@tonic-gate const char *); 79357ef7aa9SRod Evans extern void Dbg_libs_update(Lm_list *, APlist *, APlist *); 7945aefb655Srie extern void Dbg_libs_yp(Lm_list *, const char *); 7955aefb655Srie extern void Dbg_libs_ylu(Lm_list *, const char *, const char *, int); 7965aefb655Srie 7974a8d0ea7SAli Bahrami extern void Dbg_map_dash(Lm_list *, const char *); 7985aefb655Srie extern void Dbg_map_ent(Lm_list *, Boolean, Ent_desc *, Ofl_desc *); 7995aefb655Srie extern void Dbg_map_parse(Lm_list *, const char *); 8005aefb655Srie extern void Dbg_map_pipe(Lm_list *, Sg_desc *, const char *, const Word); 8015aefb655Srie extern void Dbg_map_seg(Ofl_desc *, int, Sg_desc *); 8025aefb655Srie extern void Dbg_map_set_atsign(Boolean); 8035aefb655Srie extern void Dbg_map_set_equal(Boolean); 8045aefb655Srie extern void Dbg_map_size_new(Lm_list *, const char *); 8055aefb655Srie extern void Dbg_map_size_old(Ofl_desc *, Sym_desc *); 80657ef7aa9SRod Evans extern void Dbg_map_sort(Lm_list *); 80757ef7aa9SRod Evans extern void Dbg_map_sort_seg(Lm_list *, Sg_desc *, int); 8085aefb655Srie extern void Dbg_map_symbol(Ofl_desc *, Sym_desc *); 8095aefb655Srie extern void Dbg_map_version(Lm_list *, const char *, const char *, int); 8105aefb655Srie 8115aefb655Srie extern void Dbg_move_adjexpandreloc(Lm_list *, Xword, const char *); 8125aefb655Srie extern void Dbg_move_adjmovereloc(Lm_list *, Xword, Xword, const char *); 81356deab07SRod Evans extern void Dbg_move_bad(Lm_list *, ulong_t, const char *, Addr); 8145aefb655Srie extern void Dbg_move_data(Rt_map *); 8155aefb655Srie extern void Dbg_move_entry1(Lm_list *, int, Move *, Sym_desc *); 8165aefb655Srie extern void Dbg_move_entry2(Lm_list *, Move *, Word, const char *); 8175aefb655Srie extern void Dbg_move_expand(Lm_list *, Move *, Addr); 8185aefb655Srie extern void Dbg_move_input(Lm_list *, const char *); 8195aefb655Srie extern void Dbg_move_outmove(Lm_list *, const char *); 8205aefb655Srie extern void Dbg_move_outsctadj(Lm_list *, Sym_desc *); 8215aefb655Srie extern void Dbg_move_parexpn(Lm_list *, const char *, const char *); 8225aefb655Srie 8235aefb655Srie extern void Dbg_reloc_apply_reg(Lm_list *, int, Half, Xword, Xword); 8245aefb655Srie extern void Dbg_reloc_apply_val(Lm_list *, int, Xword, Xword); 8255aefb655Srie extern void Dbg_reloc_ars_entry(Lm_list *, int, Word, Half, Rel_desc *); 8265aefb655Srie extern void Dbg_reloc_copy(Rt_map *, Rt_map *, const char *, int); 8275aefb655Srie extern void Dbg_reloc_discard(Lm_list *, Half, Rel_desc *); 8285aefb655Srie extern void Dbg_reloc_doact(Lm_list *, int, Half, Word, Word, Xword, Xword, 8295aefb655Srie const char *, Os_desc *); 8305aefb655Srie extern void Dbg_reloc_doact_title(Lm_list *); 8315aefb655Srie extern void Dbg_reloc_dooutrel(Lm_list *, Word); 8325aefb655Srie extern void Dbg_reloc_entry(Lm_list *, const char *, Half, Word, void *, 8335aefb655Srie const char *, const char *, const char *); 8345aefb655Srie extern void Dbg_reloc_error(Lm_list *, int, Half, Word, void *, 8357c478bd9Sstevel@tonic-gate const char *); 8365aefb655Srie extern void Dbg_reloc_generate(Lm_list *, Os_desc *, Word); 8375aefb655Srie extern void Dbg_reloc_in(Lm_list *, int, Half, Word, void *, const char *, 838e23c41c9SAli Bahrami Word, const char *); 8395aefb655Srie extern void Dbg_reloc_ors_entry(Lm_list *, int, Word, Half, Rel_desc *); 8405aefb655Srie extern void Dbg_reloc_out(Ofl_desc *, int, Word, void *, const char *, 8417c478bd9Sstevel@tonic-gate const char *); 8425aefb655Srie extern void Dbg_reloc_proc(Lm_list *, Os_desc *, Is_desc *, Is_desc *); 8435aefb655Srie extern void Dbg_reloc_run(Rt_map *, uint_t, int, int); 844051d39bbSrie extern void Dbg_reloc_transition(Lm_list *, Half, Word, Rel_desc *); 845e23c41c9SAli Bahrami extern void Dbg_reloc_sloppycomdat(Lm_list *, Sym_desc *); 8465aefb655Srie 8475aefb655Srie extern void Dbg_sec_added(Lm_list *, Os_desc *, Sg_desc *); 84857ef7aa9SRod Evans extern void Dbg_sec_backing(Lm_list *); 8495aefb655Srie extern void Dbg_sec_created(Lm_list *, Os_desc *, Sg_desc *); 8505aefb655Srie extern void Dbg_sec_discarded(Lm_list *, Is_desc *, Is_desc *); 851cce0e03bSab196087 extern void Dbg_sec_genstr_compress(Lm_list *, const char *, 852cce0e03bSab196087 Xword, Xword); 8535aefb655Srie extern void Dbg_sec_group(Lm_list *, Is_desc *, Group_desc *); 854e64d0ff9SAli Bahrami extern void Dbg_sec_gnu_comdat(Lm_list *, Is_desc *, Boolean, Boolean); 8555aefb655Srie extern void Dbg_sec_in(Lm_list *, Is_desc *); 8565aefb655Srie extern void Dbg_sec_order_error(Lm_list *, Ifl_desc *, Word, int); 8577c478bd9Sstevel@tonic-gate extern void Dbg_sec_order_list(Ofl_desc *, int); 858e23c41c9SAli Bahrami extern void Dbg_sec_redirected(Lm_list *, Is_desc *, const char *); 8595aefb655Srie extern void Dbg_sec_strtab(Lm_list *, Os_desc *, Str_tbl *); 860cce0e03bSab196087 extern void Dbg_sec_unsup_strmerge(Lm_list *, Is_desc *); 8615aefb655Srie 8624f680cc6SAli Bahrami extern void Dbg_seg_desc_entry(Lm_list *, uchar_t, Half, int, Sg_desc *); 8635aefb655Srie extern void Dbg_seg_entry(Ofl_desc *, int, Sg_desc *); 8644f680cc6SAli Bahrami extern void Dbg_seg_list(Lm_list *, uchar_t, Half, APlist *); 8657c478bd9Sstevel@tonic-gate extern void Dbg_seg_os(Ofl_desc *, Os_desc *, int); 8665aefb655Srie extern void Dbg_seg_title(Lm_list *); 8675aefb655Srie 8684f680cc6SAli Bahrami extern void Dbg_shdr_modified(Lm_list *, const char *, uchar_t, Half, 869e23c41c9SAli Bahrami Word, Shdr *, Shdr *, const char *); 8707010c12aSrie 8717c478bd9Sstevel@tonic-gate extern void Dbg_statistics_ar(Ofl_desc *); 8727c478bd9Sstevel@tonic-gate extern void Dbg_statistics_ld(Ofl_desc *); 8735aefb655Srie 8745aefb655Srie extern void Dbg_support_action(Lm_list *, const char *, const char *, 8755aefb655Srie Support_ndx, const char *); 8765aefb655Srie extern void Dbg_support_load(Lm_list *, const char *, const char *); 8775aefb655Srie extern void Dbg_support_req(Lm_list *, const char *, int); 878d2d5cf7cSAli Bahrami extern void Dbg_support_vnone(Lm_list *, const char *); 8795aefb655Srie 8805aefb655Srie extern void Dbg_syminfo_entry(Lm_list *, Word, Syminfo *, Sym *, 8817c478bd9Sstevel@tonic-gate const char *, Dyn *); 8825aefb655Srie extern void Dbg_syminfo_title(Lm_list *); 8835aefb655Srie 8845aefb655Srie extern void Dbg_syms_ar_checking(Lm_list *, Xword, Elf_Arsym *, 8855aefb655Srie const char *); 8865aefb655Srie extern void Dbg_syms_ar_entry(Lm_list *, Xword, Elf_Arsym *); 8875aefb655Srie extern void Dbg_syms_ar_resolve(Lm_list *, Xword, Elf_Arsym *, 8885aefb655Srie const char *, int); 8895aefb655Srie extern void Dbg_syms_ar_title(Lm_list *, const char *, int); 8905aefb655Srie extern void Dbg_syms_created(Lm_list *, const char *); 891a194faf8Srie extern void Dbg_syms_discarded(Lm_list *, Sym_desc *); 8929aa23310Srie extern void Dbg_syms_dlsym(Rt_map *, const char *, int *, const char *, 8939aa23310Srie int); 89424b9abbaSab196087 extern void Dbg_syms_dup_discarded(Lm_list *, Word ndx, Sym_desc *); 895d579eb63Sab196087 extern void Dbg_syms_dup_sort_addr(Lm_list *, const char *, const char *, 896d579eb63Sab196087 const char *, Addr); 8975aefb655Srie extern void Dbg_syms_entered(Ofl_desc *, Sym *, Sym_desc *); 8985aefb655Srie extern void Dbg_syms_entry(Lm_list *, Word, Sym_desc *); 8995aefb655Srie extern void Dbg_syms_global(Lm_list *, Word, const char *); 9005aefb655Srie extern void Dbg_syms_ignore(Ofl_desc *, Sym_desc *); 901d840867fSab196087 extern void Dbg_syms_ignore_gnuver(Rt_map *, const char *, Word, Versym); 9025aefb655Srie extern void Dbg_syms_lazy_rescan(Lm_list *, const char *); 9035aefb655Srie extern void Dbg_syms_lookup(Rt_map *, const char *, const char *); 9045aefb655Srie #if !(defined(_ELF64)) 9055aefb655Srie extern void Dbg_syms_lookup_aout(Lm_list *, const char *); 9065aefb655Srie #endif 9075aefb655Srie extern void Dbg_syms_new(Ofl_desc *, Sym *, Sym_desc *); 9085aefb655Srie extern void Dbg_syms_old(Ofl_desc *, Sym_desc *); 9095aefb655Srie extern void Dbg_syms_process(Lm_list *, Ifl_desc *); 9105aefb655Srie extern void Dbg_syms_reduce(Ofl_desc *, int, Sym_desc *, int, 9115aefb655Srie const char *); 9125aefb655Srie extern void Dbg_syms_reloc(Ofl_desc *, Sym_desc *); 9135aefb655Srie extern void Dbg_syms_resolved(Ofl_desc *, Sym_desc *); 9145aefb655Srie extern void Dbg_syms_resolving(Ofl_desc *, Word, const char *, int, int, 9155aefb655Srie Sym *, Sym *, Sym_desc *, Ifl_desc *); 9165aefb655Srie extern void Dbg_syms_sec_entry(Lm_list *, Word, Sg_desc *, Os_desc *); 9175aefb655Srie extern void Dbg_syms_sec_title(Lm_list *); 9185aefb655Srie extern void Dbg_syms_spec_title(Lm_list *); 9195aefb655Srie extern void Dbg_syms_updated(Ofl_desc *, Sym_desc *, const char *); 9205aefb655Srie extern void Dbg_syms_up_title(Lm_list *); 921cdcc71c0SAli Bahrami extern void Dbg_syms_wrap(Lm_list *, Word, const char *, const char *); 9225aefb655Srie 9235aefb655Srie extern void Dbg_tls_modactivity(Lm_list *, void *, uint_t); 924d326b23bSrie extern void Dbg_tls_static_block(Lm_list *, void *, ulong_t, ulong_t); 925d326b23bSrie extern void Dbg_tls_static_resv(Rt_map *, ulong_t, ulong_t); 9265aefb655Srie 9275aefb655Srie extern void Dbg_util_call_array(Rt_map *, void *, int, Word); 9285aefb655Srie extern void Dbg_util_call_fini(Rt_map *); 9295aefb655Srie extern void Dbg_util_call_init(Rt_map *, int); 9305aefb655Srie extern void Dbg_util_call_main(Rt_map *); 9315aefb655Srie extern void Dbg_util_collect(Rt_map *, int, int); 9325aefb655Srie extern void Dbg_util_dbnotify(Lm_list *, rd_event_e, r_state_e); 9335aefb655Srie extern void Dbg_util_edge_in(Lm_list *, Rt_map *, uint_t, Rt_map *, 9345aefb655Srie int, int); 9355aefb655Srie extern void Dbg_util_edge_out(Rt_map *, Rt_map *); 9365aefb655Srie extern void Dbg_util_intoolate(Rt_map *); 93710a4fa49Srie extern void Dbg_util_lcinterface(Rt_map *, int, char *); 9385aefb655Srie extern void Dbg_util_nl(Lm_list *, int); 9395aefb655Srie extern void Dbg_util_no_init(Rt_map *); 9405aefb655Srie extern void Dbg_util_scc_entry(Rt_map *, uint_t); 9415aefb655Srie extern void Dbg_util_scc_title(Lm_list *, int); 9422017c965SRod Evans extern void Dbg_util_str(Lm_list *, const char *); 9435aefb655Srie 9445aefb655Srie extern void Dbg_unused_file(Lm_list *, const char *, int, uint_t); 94510a4fa49Srie extern void Dbg_unused_lcinterface(Rt_map *, Rt_map *, int); 9469aa23310Srie extern void Dbg_unused_path(Lm_list *, const char *, uint_t, uint_t, 9479aa23310Srie const char *); 9485aefb655Srie extern void Dbg_unused_sec(Lm_list *, Is_desc *); 9495aefb655Srie extern void Dbg_unused_unref(Rt_map *, const char *); 9505aefb655Srie 9515aefb655Srie extern void Dbg_ver_avail_entry(Lm_list *, Ver_index *, const char *); 9525aefb655Srie extern void Dbg_ver_avail_title(Lm_list *, const char *); 9535aefb655Srie extern void Dbg_ver_def_title(Lm_list *, const char *); 9545aefb655Srie extern void Dbg_ver_desc_entry(Lm_list *, Ver_desc *); 955*20272c2eSAli Bahrami extern void Dbg_ver_need_done(Lm_list *); 9565aefb655Srie extern void Dbg_ver_need_entry(Lm_list *, Half, const char *, 9575aefb655Srie const char *); 9585aefb655Srie extern void Dbg_ver_need_title(Lm_list *, const char *); 9595aefb655Srie extern void Dbg_ver_nointerface(Lm_list *, const char *); 9605aefb655Srie extern void Dbg_ver_symbol(Lm_list *, const char *); 9617c478bd9Sstevel@tonic-gate 9627c478bd9Sstevel@tonic-gate /* 9635aefb655Srie * Define Elf_*() interface flags. 9647c478bd9Sstevel@tonic-gate */ 9655aefb655Srie #define ELF_DBG_ELFDUMP 1 9665aefb655Srie #define ELF_DBG_RTLD 2 9675aefb655Srie #define ELF_DBG_LD 3 968635216b6SRod Evans #define ELF_DBG_LD_ACT 4 9697c478bd9Sstevel@tonic-gate 9707c478bd9Sstevel@tonic-gate /* 9715aefb655Srie * Define generic Elf_*() interfaces. 9727c478bd9Sstevel@tonic-gate */ 9735aefb655Srie extern void Elf_syminfo_entry(Lm_list *, Word, Syminfo *, const char *, 9745aefb655Srie const char *); 9755aefb655Srie extern void Elf_syminfo_title(Lm_list *); 9767c478bd9Sstevel@tonic-gate 9775aefb655Srie /* 9785aefb655Srie * Establish ELF32 and ELF64 class Elf_*() interfaces. 9795aefb655Srie */ 9805aefb655Srie #if defined(_ELF64) 9815aefb655Srie 9825aefb655Srie #define Elf_cap_entry Elf64_cap_entry 9835aefb655Srie #define Elf_cap_title Elf64_cap_title 9845aefb655Srie 9855aefb655Srie #define Elf_demangle_name Elf64_demangle_name 9865aefb655Srie #define Elf_dyn_entry Elf64_dyn_entry 9873244bcaaSab196087 #define Elf_dyn_null_entry Elf64_dyn_null_entry 9885aefb655Srie #define Elf_dyn_title Elf64_dyn_title 9895aefb655Srie 9905aefb655Srie #define Elf_ehdr Elf64_ehdr 9915aefb655Srie 9925aefb655Srie #define Elf_got_entry Elf64_got_entry 9935aefb655Srie #define Elf_got_title Elf64_got_title 9945aefb655Srie 9955aefb655Srie #define Elf_reloc_apply_reg Elf64_reloc_apply_reg 9965aefb655Srie #define Elf_reloc_apply_val Elf64_reloc_apply_val 9975aefb655Srie #define Elf_reloc_entry_1 Elf64_reloc_entry_1 9985aefb655Srie #define Elf_reloc_entry_2 Elf64_reloc_entry_2 9995aefb655Srie #define Elf_reloc_title Elf64_reloc_title 10005aefb655Srie 10015aefb655Srie #define Elf_phdr Elf64_phdr 10025aefb655Srie 10035aefb655Srie #define Elf_shdr Elf64_shdr 10045aefb655Srie 10055aefb655Srie #define Elf_syms_table_entry Elf64_syms_table_entry 10065aefb655Srie #define Elf_syms_table_title Elf64_syms_table_title 10075aefb655Srie 10085aefb655Srie #define Elf_ver_def_title Elf64_ver_def_title 10095aefb655Srie #define Elf_ver_line_1 Elf64_ver_line_1 10105aefb655Srie #define Elf_ver_line_2 Elf64_ver_line_2 10115aefb655Srie #define Elf_ver_line_3 Elf64_ver_line_3 10125aefb655Srie #define Elf_ver_line_4 Elf64_ver_line_4 10135aefb655Srie #define Elf_ver_line_5 Elf64_ver_line_5 10145aefb655Srie #define Elf_ver_need_title Elf64_ver_need_title 10155aefb655Srie 10165aefb655Srie #else 10175aefb655Srie 10185aefb655Srie #define Elf_cap_entry Elf32_cap_entry 10195aefb655Srie #define Elf_cap_title Elf32_cap_title 10205aefb655Srie 10215aefb655Srie #define Elf_demangle_name Elf32_demangle_name 10225aefb655Srie #define Elf_dyn_entry Elf32_dyn_entry 10233244bcaaSab196087 #define Elf_dyn_null_entry Elf32_dyn_null_entry 10245aefb655Srie #define Elf_dyn_title Elf32_dyn_title 10255aefb655Srie 10265aefb655Srie #define Elf_ehdr Elf32_ehdr 10275aefb655Srie 10285aefb655Srie #define Elf_got_entry Elf32_got_entry 10295aefb655Srie #define Elf_got_title Elf32_got_title 10305aefb655Srie 10315aefb655Srie #define Elf_reloc_apply_reg Elf32_reloc_apply_reg 10325aefb655Srie #define Elf_reloc_apply_val Elf32_reloc_apply_val 10335aefb655Srie #define Elf_reloc_entry_1 Elf32_reloc_entry_1 10345aefb655Srie #define Elf_reloc_entry_2 Elf32_reloc_entry_2 10355aefb655Srie #define Elf_reloc_title Elf32_reloc_title 10365aefb655Srie 10375aefb655Srie #define Elf_phdr Elf32_phdr 10385aefb655Srie 10395aefb655Srie #define Elf_shdr Elf32_shdr 10405aefb655Srie 10415aefb655Srie #define Elf_syms_table_entry Elf32_syms_table_entry 10425aefb655Srie #define Elf_syms_table_title Elf32_syms_table_title 10435aefb655Srie 10445aefb655Srie #define Elf_ver_def_title Elf32_ver_def_title 10455aefb655Srie #define Elf_ver_line_1 Elf32_ver_line_1 10465aefb655Srie #define Elf_ver_line_2 Elf32_ver_line_2 10475aefb655Srie #define Elf_ver_line_3 Elf32_ver_line_3 10485aefb655Srie #define Elf_ver_line_4 Elf32_ver_line_4 10495aefb655Srie #define Elf_ver_line_5 Elf32_ver_line_5 10505aefb655Srie #define Elf_ver_need_title Elf32_ver_need_title 10515aefb655Srie 10525aefb655Srie #endif 10535aefb655Srie 10545aefb655Srie extern void Elf_cap_entry(Lm_list *, Cap *, int, Half); 10555aefb655Srie extern void Elf_cap_title(Lm_list *); 10565aefb655Srie 10575aefb655Srie extern const char \ 10585aefb655Srie *Elf_demangle_name(const char *); 10594f680cc6SAli Bahrami extern void Elf_dyn_entry(Lm_list *, Dyn *, int, const char *, 10604f680cc6SAli Bahrami uchar_t, Half); 10613244bcaaSab196087 extern void Elf_dyn_null_entry(Lm_list *, Dyn *, int, int); 10625aefb655Srie extern void Elf_dyn_title(Lm_list *); 10635aefb655Srie 10645aefb655Srie extern void Elf_ehdr(Lm_list *, Ehdr *, Shdr *); 10655aefb655Srie 1066ba2be530Sab196087 extern void Elf_got_entry(Lm_list *, Sword, Addr, Xword, Half, 1067ba2be530Sab196087 uchar_t, uchar_t, Word, void *, const char *); 10685aefb655Srie extern void Elf_got_title(Lm_list *); 10695aefb655Srie 10704f680cc6SAli Bahrami extern void Elf_phdr(Lm_list *, uchar_t, Half, Phdr *); 10715aefb655Srie 10725aefb655Srie extern void Elf_reloc_apply_val(Lm_list *, int, Xword, Xword); 10735aefb655Srie extern void Elf_reloc_apply_reg(Lm_list *, int, Half, Xword, Xword); 10745aefb655Srie extern void Elf_reloc_entry_1(Lm_list *, int, const char *, Half, Word, 10755aefb655Srie void *, const char *, const char *, const char *); 10765aefb655Srie extern void Elf_reloc_entry_2(Lm_list *, int, const char *, Word, 10775aefb655Srie const char *, Off, Sxword, const char *, const char *, 10787c478bd9Sstevel@tonic-gate const char *); 10795aefb655Srie extern void Elf_reloc_title(Lm_list *, int, Word); 10805aefb655Srie 10814f680cc6SAli Bahrami extern void Elf_shdr(Lm_list *, uchar_t, Half, Shdr *); 10825aefb655Srie 10834f680cc6SAli Bahrami extern void Elf_syms_table_entry(Lm_list *, int, const char *, uchar_t, 10844f680cc6SAli Bahrami Half, Sym *, Versym, int, const char *, const char *); 10855aefb655Srie extern void Elf_syms_table_title(Lm_list *, int); 10865aefb655Srie 10875aefb655Srie extern void Elf_ver_def_title(Lm_list *); 10885aefb655Srie extern void Elf_ver_line_1(Lm_list *, const char *, const char *, 10897c478bd9Sstevel@tonic-gate const char *, const char *); 10905aefb655Srie extern void Elf_ver_line_2(Lm_list *, const char *, const char *); 10915aefb655Srie extern void Elf_ver_line_3(Lm_list *, const char *, const char *, 10927c478bd9Sstevel@tonic-gate const char *); 10935aefb655Srie extern void Elf_ver_line_4(Lm_list *, const char *); 10945aefb655Srie extern void Elf_ver_line_5(Lm_list *, const char *, const char *); 1095d840867fSab196087 extern void Elf_ver_need_title(Lm_list *, int); 10967c478bd9Sstevel@tonic-gate 10973244bcaaSab196087 10987c478bd9Sstevel@tonic-gate #ifdef __cplusplus 10997c478bd9Sstevel@tonic-gate } 11007c478bd9Sstevel@tonic-gate #endif 11017c478bd9Sstevel@tonic-gate 11027c478bd9Sstevel@tonic-gate #endif /* _DEBUG_H */ 1103