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 67c13de8f6Sab196087 #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 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 13608278a5eSRod Evans /* 13708278a5eSRod Evans * ld.so.1(1) symbol capabilities processing. 13808278a5eSRod Evans */ 13908278a5eSRod Evans #define DBG_CAP_DEFAULT 0 14008278a5eSRod Evans #define DBG_CAP_USED 1 14108278a5eSRod Evans #define DBG_CAP_CANDIDATE 2 14208278a5eSRod Evans #define DBG_CAP_REJECTED 3 14308278a5eSRod Evans #define DBG_CAP_HW_1 4 14408278a5eSRod Evans #define DBG_CAP_SF_1 5 14508278a5eSRod Evans #define DBG_CAP_HW_2 6 14608278a5eSRod Evans #define DBG_CAP_PLAT 7 14708278a5eSRod Evans #define DBG_CAP_MACH 8 1487c478bd9Sstevel@tonic-gate 1497c478bd9Sstevel@tonic-gate #define DBG_REL_START 1 1507c478bd9Sstevel@tonic-gate #define DBG_REL_FINISH 2 1517c478bd9Sstevel@tonic-gate #define DBG_REL_NONE 3 1527c478bd9Sstevel@tonic-gate 1535aefb655Srie #define DBG_NL_STD 0 /* newline controllers - standard and */ 1545aefb655Srie #define DBG_NL_FRC 2 /* forced. */ 1557c478bd9Sstevel@tonic-gate 15637ffaf83SRod Evans #define DBG_BNDREJ_DIRECT 0 /* bind rejected, direct to nodirect */ 15737ffaf83SRod Evans #define DBG_BNDREJ_GROUP 1 /* bind rejected, group to nodirect */ 15837ffaf83SRod Evans #define DBG_BNDREJ_SINGLE 2 /* bind rejected, singleton without */ 15960758829Srie /* default search model */ 16060758829Srie #define DBG_BNDREJ_NUM DBG_BNDREJ_SINGLE 16160758829Srie 1627c478bd9Sstevel@tonic-gate /* 16369112eddSAli Bahrami * Dbg_state_str() is used to obtain commonly used "state transition" 16469112eddSAli Bahrami * strings used in various debugging output. 16569112eddSAli Bahrami */ 16669112eddSAli Bahrami #define DBG_STATE_ADD 0 /* add */ 16769112eddSAli Bahrami #define DBG_STATE_CURRENT 1 /* current */ 16869112eddSAli Bahrami #define DBG_STATE_EXCLUDE 2 /* exclude */ 16969112eddSAli Bahrami #define DBG_STATE_IGNORED 3 /* ignored */ 17069112eddSAli Bahrami #define DBG_STATE_MOD_BEFORE 4 /* modify (before) */ 17169112eddSAli Bahrami #define DBG_STATE_MOD_AFTER 5 /* modify (after) */ 17269112eddSAli Bahrami #define DBG_STATE_NEW 6 /* new */ 17369112eddSAli Bahrami #define DBG_STATE_NEW_IMPLICIT 7 /* new (implicit) */ 17408278a5eSRod Evans #define DBG_STATE_RESET 8 /* reset */ 17508278a5eSRod Evans #define DBG_STATE_ORIGINAL 9 /* original */ 17669112eddSAli Bahrami #define DBG_STATE_RESOLVED 10 /* resolved */ 17769112eddSAli Bahrami 17869112eddSAli Bahrami #define DBG_STATE_NUM 11 17969112eddSAli Bahrami typedef uint_t dbg_state_t; 18069112eddSAli Bahrami extern const char *Dbg_state_str(dbg_state_t); 18169112eddSAli Bahrami 18269112eddSAli Bahrami /* 1835aefb655Srie * Define a debug descriptor, and a user macro that inspects the descriptor as 1845aefb655Srie * a means of triggering a class of diagnostic output. 1857c478bd9Sstevel@tonic-gate */ 1865aefb655Srie typedef struct { 1875aefb655Srie uint_t d_class; /* debugging classes */ 188e23c41c9SAli Bahrami uint_t d_extra; /* extra public information */ 189e23c41c9SAli Bahrami APlist *d_list; /* accepted link-map list names */ 1902017c965SRod Evans struct timeval d_totaltime; /* total time since entry - */ 1912017c965SRod Evans /* gettimeofday(3c) */ 1922017c965SRod Evans struct timeval d_deltatime; /* delta time since last diagnostic - */ 1932017c965SRod Evans /* gettimeofday(3c) */ 1945aefb655Srie } Dbg_desc; 1957c478bd9Sstevel@tonic-gate 1965aefb655Srie extern Dbg_desc *dbg_desc; 1975aefb655Srie 19869112eddSAli Bahrami /* 19969112eddSAli Bahrami * Macros used to avoid calls to liblddbg unless debugging is enabled. 20069112eddSAli Bahrami * liblddbg is lazy loaded --- this prevents it from happening unless 20169112eddSAli Bahrami * it will actually be used. 20269112eddSAli Bahrami */ 2035aefb655Srie #define DBG_ENABLED (dbg_desc->d_class) 2045aefb655Srie #define DBG_CALL(func) if (DBG_ENABLED) func 2057c478bd9Sstevel@tonic-gate 2067c478bd9Sstevel@tonic-gate /* 2077c478bd9Sstevel@tonic-gate * Most debugging tokens are interpreted within liblddbg, and thus any flags 2085aefb655Srie * within d_class are only meaningful to this library. The following flags 2095aefb655Srie * extend the d_class diagnostic, and are maintained in d_extra. These flags 2105aefb655Srie * may be interpreted by the debugging library itself or from the callers 2115aefb655Srie * dbg_print() routine. 2127c478bd9Sstevel@tonic-gate */ 213e23c41c9SAli Bahrami #define DBG_E_DETAIL 0x00000001 /* add detail to a class */ 214e23c41c9SAli Bahrami #define DBG_E_LONG 0x00000002 /* use long names (ie. no truncation) */ 215e23c41c9SAli Bahrami #define DBG_E_DEMANGLE 0x00000004 /* demangle symbol names */ 216e23c41c9SAli Bahrami #define DBG_E_STDNL 0x00000008 /* standard newline indicator */ 217e23c41c9SAli Bahrami #define DBG_E_HELP 0x00000010 /* help requested */ 218e23c41c9SAli Bahrami #define DBG_E_HELP_EXIT 0x00000020 /* hint: user should exit after help */ 2192017c965SRod Evans #define DBG_E_TTIME 0x00000040 /* prepend total time */ 2202017c965SRod Evans #define DBG_E_DTIME 0x00000080 /* prepend delta time */ 2212017c965SRod Evans #define DBG_E_RESET 0x00000100 /* reset times */ 2225aefb655Srie 223e23c41c9SAli Bahrami /* ld only */ 224e23c41c9SAli Bahrami #define DBG_E_SNAME 0x00001000 /* prepend simple name */ 225e23c41c9SAli Bahrami #define DBG_E_FNAME 0x00002000 /* prepend full name */ 226e23c41c9SAli Bahrami #define DBG_E_CLASS 0x00004000 /* prepend ELF class */ 2275aefb655Srie 228e23c41c9SAli Bahrami /* ld.so.1 only */ 229e23c41c9SAli Bahrami #define DBG_E_LMID 0x00100000 /* prepend link-map id */ 230e23c41c9SAli Bahrami #define DBG_E_LMID_LDSO 0x00200000 /* show ldso link-map list */ 231e23c41c9SAli Bahrami #define DBG_E_LMID_ALL 0x00400000 /* show all non-ldso link-map lists */ 232e23c41c9SAli Bahrami #define DBG_E_LMID_ALT 0x00800000 /* show all ALT link-map lists */ 233e23c41c9SAli Bahrami #define DBG_E_LMID_BASE 0x01000000 /* show BASE link-map list */ 234e23c41c9SAli Bahrami 2355aefb655Srie 2365aefb655Srie #define DBG_NOTDETAIL() !(dbg_desc->d_extra & DBG_E_DETAIL) 2375aefb655Srie #define DBG_NOTLONG() !(dbg_desc->d_extra & DBG_E_LONG) 2385aefb655Srie 2392017c965SRod Evans #define DBG_ISDEMANGLE() \ 2402017c965SRod Evans (dbg_desc->d_extra & DBG_E_DEMANGLE) 2412017c965SRod Evans 2422017c965SRod Evans #define DBG_TOTALTIME (dbg_desc->d_totaltime) 2432017c965SRod Evans #define DBG_DELTATIME (dbg_desc->d_deltatime) 2442017c965SRod Evans 2452017c965SRod Evans #define DBG_ISTTIME() (dbg_desc->d_extra & DBG_E_TTIME) 2462017c965SRod Evans #define DBG_ISDTIME() (dbg_desc->d_extra & DBG_E_DTIME) 2472017c965SRod Evans #define DBG_ISTIME() (dbg_desc->d_extra & (DBG_E_TTIME | DBG_E_DTIME)) 2482017c965SRod Evans #define DBG_NOTTIME() !(dbg_desc->d_extra & (DBG_E_TTIME | DBG_E_DTIME)) 2492017c965SRod Evans 2502017c965SRod Evans #define DBG_ISRESET() (dbg_desc->d_extra & DBG_E_RESET) 2512017c965SRod Evans #define DBG_ONRESET() (dbg_desc->d_extra |= DBG_E_RESET) 2522017c965SRod Evans #define DBG_OFFRESET() (dbg_desc->d_extra &= ~DBG_E_RESET) 2532017c965SRod Evans 2545aefb655Srie #define DBG_ISSNAME() (dbg_desc->d_extra & DBG_E_SNAME) 2555aefb655Srie #define DBG_ISFNAME() (dbg_desc->d_extra & DBG_E_FNAME) 2565aefb655Srie #define DBG_ISCLASS() (dbg_desc->d_extra & DBG_E_CLASS) 2575aefb655Srie #define DBG_ISLMID() (dbg_desc->d_extra & DBG_E_LMID) 2587c478bd9Sstevel@tonic-gate 2597c478bd9Sstevel@tonic-gate /* 2605aefb655Srie * Print routine, this must be supplied by the application. The initial 2615aefb655Srie * argument may provide a link-map list to associate with the format statement 2625aefb655Srie * that follows. 2637c478bd9Sstevel@tonic-gate */ 2645aefb655Srie /* PRINTFLIKE2 */ 2655aefb655Srie extern void dbg_print(Lm_list *, const char *, ...); 2667c478bd9Sstevel@tonic-gate 267e23c41c9SAli Bahrami /* 268e23c41c9SAli Bahrami * Initialization routine, called before any other Dbg routines to 269e23c41c9SAli Bahrami * establish the necessary state. 270e23c41c9SAli Bahrami */ 271e23c41c9SAli Bahrami typedef enum { DBG_CALLER_LD, DBG_CALLER_RTLD } dbg_setup_caller_t; 272e23c41c9SAli Bahrami extern int Dbg_setup(dbg_setup_caller_t, const char *, 273e23c41c9SAli Bahrami Dbg_desc *, const char **); 274e23c41c9SAli Bahrami 27569112eddSAli Bahrami /* Call dbg_print() to produce linker version output */ 27669112eddSAli Bahrami extern void Dbg_version(void); 27769112eddSAli Bahrami 278e23c41c9SAli Bahrami /* Call dbg_print() to produce help output */ 279e23c41c9SAli Bahrami extern void Dbg_help(void); 2807c478bd9Sstevel@tonic-gate 2817c478bd9Sstevel@tonic-gate /* 2825aefb655Srie * Establish ELF32 and ELF64 class Dbg_*() interfaces. 2837c478bd9Sstevel@tonic-gate */ 2845aefb655Srie #if defined(_ELF64) 2857c478bd9Sstevel@tonic-gate 2865aefb655Srie #define Dbg_demangle_name Dbg64_demangle_name 2875aefb655Srie 2885aefb655Srie #define Dbg_bind_global Dbg64_bind_global 2895aefb655Srie #define Dbg_bind_plt_summary Dbg64_bind_plt_summary 2905aefb655Srie #define Dbg_bind_pltpad_from Dbg64_bind_pltpad_from 2915aefb655Srie #define Dbg_bind_pltpad_to Dbg64_bind_pltpad_to 29260758829Srie #define Dbg_bind_reject Dbg64_bind_reject 2935aefb655Srie #define Dbg_bind_weak Dbg64_bind_weak 2945aefb655Srie 29508278a5eSRod Evans #define Dbg_cap_candidate Dbg64_cap_candidate 29608278a5eSRod Evans #define Dbg_cap_filter Dbg64_cap_filter 29708278a5eSRod Evans #define Dbg_cap_id Dbg64_cap_id 29869112eddSAli Bahrami #define Dbg_cap_mapfile_title Dbg64_cap_mapfile_title 29908278a5eSRod Evans #define Dbg_cap_post_title Dbg64_cap_post_title 3005aefb655Srie #define Dbg_cap_sec_title Dbg64_cap_sec_title 30108278a5eSRod Evans #define Dbg_cap_val Dbg64_cap_val 30208278a5eSRod Evans #define Dbg_cap_ptr_entry Dbg64_cap_ptr_entry 30308278a5eSRod Evans #define Dbg_cap_val_entry Dbg64_cap_val_entry 3045aefb655Srie 30598c080d5SRod Evans #define Dbg_dl_dladdr Dbg64_dl_dladdr 30698c080d5SRod Evans #define Dbg_dl_dlclose Dbg64_dl_dlclose 30798c080d5SRod Evans #define Dbg_dl_dldump Dbg64_dl_dldump 30898c080d5SRod Evans #define Dbg_dl_dlerror Dbg64_dl_dlerror 30998c080d5SRod Evans #define Dbg_dl_dlinfo Dbg64_dl_dlinfo 31098c080d5SRod Evans #define Dbg_dl_dlopen Dbg64_dl_dlopen 31198c080d5SRod Evans #define Dbg_dl_dlsym Dbg64_dl_dlsym 31298c080d5SRod Evans #define Dbg_dl_iphdr_enter Dbg64_dl_iphdr_enter 31398c080d5SRod Evans #define Dbg_dl_iphdr_callback Dbg64_dl_iphdr_callback 31498c080d5SRod Evans #define Dbg_dl_iphdr_mapchange Dbg64_dl_iphdr_mapchange 31598c080d5SRod Evans #define Dbg_dl_iphdr_unmap_ret Dbg64_dl_iphdr_unmap_ret 31620272c2eSAli Bahrami 3175aefb655Srie #define Dbg_ent_entry Dbg64_ent_entry 3185aefb655Srie #define Dbg_ent_print Dbg64_ent_print 3195aefb655Srie 3205aefb655Srie #define Dbg_file_analyze Dbg64_file_analyze 3215aefb655Srie #define Dbg_file_aout Dbg64_file_aout 3225aefb655Srie #define Dbg_file_ar Dbg64_file_ar 3235aefb655Srie #define Dbg_file_ar_rescan Dbg64_file_ar_rescan 3245aefb655Srie #define Dbg_file_bind_entry Dbg64_file_bind_entry 3255aefb655Srie #define Dbg_file_bindings Dbg64_file_bindings 32620272c2eSAli Bahrami #define Dbg_file_bindings_done Dbg64_file_bindings_done 32702ca3e02Srie #define Dbg_file_cleanup Dbg64_file_cleanup 3285aefb655Srie #define Dbg_file_cntl Dbg64_file_cntl 3295aefb655Srie #define Dbg_file_config_dis Dbg64_file_config_dis 3305aefb655Srie #define Dbg_file_config_obj Dbg64_file_config_obj 3315aefb655Srie #define Dbg_file_del_rescan Dbg64_file_del_rescan 3325aefb655Srie #define Dbg_file_delete Dbg64_file_delete 333*f441771bSRod Evans #define Dbg_file_deferred Dbg64_file_deferred 3345aefb655Srie #define Dbg_file_elf Dbg64_file_elf 3355aefb655Srie #define Dbg_file_filtee Dbg64_file_filtee 3365aefb655Srie #define Dbg_file_filter Dbg64_file_filter 3375aefb655Srie #define Dbg_file_fixname Dbg64_file_fixname 3385aefb655Srie #define Dbg_file_generic Dbg64_file_generic 3395aefb655Srie #define Dbg_file_hdl_action Dbg64_file_hdl_action 3405aefb655Srie #define Dbg_file_hdl_collect Dbg64_file_hdl_collect 3415aefb655Srie #define Dbg_file_hdl_title Dbg64_file_hdl_title 3425aefb655Srie #define Dbg_file_lazyload Dbg64_file_lazyload 3435aefb655Srie #define Dbg_file_ldso Dbg64_file_ldso 34456deab07SRod Evans #define Dbg_file_mmapobj Dbg64_file_mmapobj 3455aefb655Srie #define Dbg_file_mode_promote Dbg64_file_mode_promote 3463906e0c2Srie #define Dbg_file_modified Dbg64_file_modified 3475aefb655Srie #define Dbg_file_needed Dbg64_file_needed 3485aefb655Srie #define Dbg_file_output Dbg64_file_output 3495aefb655Srie #define Dbg_file_preload Dbg64_file_preload 3505aefb655Srie #define Dbg_file_prot Dbg64_file_prot 3515aefb655Srie #define Dbg_file_rejected Dbg64_file_rejected 3525aefb655Srie #define Dbg_file_reuse Dbg64_file_reuse 3535aefb655Srie #define Dbg_file_skip Dbg64_file_skip 3545aefb655Srie 3555aefb655Srie #define Dbg_got_display Dbg64_got_display 3565aefb655Srie 3575aefb655Srie #define Dbg_libs_audit Dbg64_libs_audit 3585aefb655Srie #define Dbg_libs_find Dbg64_libs_find 3595aefb655Srie #define Dbg_libs_found Dbg64_libs_found 3603dbfc803SRod Evans #define Dbg_libs_insecure Dbg64_libs_insecure 3615aefb655Srie #define Dbg_libs_init Dbg64_libs_init 3625aefb655Srie #define Dbg_libs_l Dbg64_libs_l 3635aefb655Srie #define Dbg_libs_path Dbg64_libs_path 3645aefb655Srie #define Dbg_libs_req Dbg64_libs_req 3655aefb655Srie #define Dbg_libs_update Dbg64_libs_update 3665aefb655Srie #define Dbg_libs_yp Dbg64_libs_yp 3675aefb655Srie #define Dbg_libs_ylu Dbg64_libs_ylu 3685aefb655Srie 36969112eddSAli Bahrami #define Dbg_map_cexp_id Dbg64_map_cexp_id 37069112eddSAli Bahrami #define Dbg_map_dv Dbg64_map_dv 37169112eddSAli Bahrami #define Dbg_map_dv_entry Dbg64_map_dv_entry 3725aefb655Srie #define Dbg_map_ent Dbg64_map_ent 37369112eddSAli Bahrami #define Dbg_map_ent_ord_title Dbg64_map_ent_ord_title 37469112eddSAli Bahrami #define Dbg_map_hdr_noalloc Dbg64_map_hdr_noalloc 3755aefb655Srie #define Dbg_map_parse Dbg64_map_parse 37669112eddSAli Bahrami #define Dbg_map_pass Dbg64_map_pass 37769112eddSAli Bahrami #define Dbg_map_post_title Dbg64_map_post_title 3785aefb655Srie #define Dbg_map_seg Dbg64_map_seg 37969112eddSAli Bahrami #define Dbg_map_seg_order Dbg64_map_seg_order 38069112eddSAli Bahrami #define Dbg_map_seg_os_order Dbg64_map_seg_os_order 3815aefb655Srie #define Dbg_map_size_new Dbg64_map_size_new 3825aefb655Srie #define Dbg_map_size_old Dbg64_map_size_old 38357ef7aa9SRod Evans #define Dbg_map_sort_seg Dbg64_map_sort_seg 38469112eddSAli Bahrami #define Dbg_map_sort_title Dbg64_map_sort_title 3855aefb655Srie #define Dbg_map_symbol Dbg64_map_symbol 3865aefb655Srie #define Dbg_map_version Dbg64_map_version 3875aefb655Srie 3885aefb655Srie #define Dbg_move_adjexpandreloc Dbg64_move_adjexpandreloc 3895aefb655Srie #define Dbg_move_adjmovereloc Dbg64_move_adjmovereloc 39056deab07SRod Evans #define Dbg_move_bad Dbg64_move_bad 3915aefb655Srie #define Dbg_move_data Dbg64_move_data 3925aefb655Srie #define Dbg_move_entry1 Dbg64_move_entry1 3935aefb655Srie #define Dbg_move_entry2 Dbg64_move_entry2 3945aefb655Srie #define Dbg_move_expand Dbg64_move_expand 3955aefb655Srie #define Dbg_move_input Dbg64_move_input 3965aefb655Srie #define Dbg_move_outmove Dbg64_move_outmove 3975aefb655Srie #define Dbg_move_outsctadj Dbg64_move_outsctadj 3985aefb655Srie #define Dbg_move_parexpn Dbg64_move_parexpn 3995aefb655Srie 4005aefb655Srie #define Dbg_reloc_apply_reg Dbg64_reloc_apply_reg 4015aefb655Srie #define Dbg_reloc_apply_val Dbg64_reloc_apply_val 4025aefb655Srie #define Dbg_reloc_ars_entry Dbg64_reloc_ars_entry 4035aefb655Srie #define Dbg_reloc_copy Dbg64_reloc_copy 4045aefb655Srie #define Dbg_reloc_discard Dbg64_reloc_discard 4055aefb655Srie #define Dbg_reloc_doact Dbg64_reloc_doact 4065aefb655Srie #define Dbg_reloc_doact_title Dbg64_reloc_doact_title 4075aefb655Srie #define Dbg_reloc_dooutrel Dbg64_reloc_dooutrel 4085aefb655Srie #define Dbg_reloc_entry Dbg64_reloc_entry 4095aefb655Srie #define Dbg_reloc_error Dbg64_reloc_error 4105aefb655Srie #define Dbg_reloc_generate Dbg64_reloc_generate 4115aefb655Srie #define Dbg_reloc_in Dbg64_reloc_in 4125aefb655Srie #define Dbg_reloc_ors_entry Dbg64_reloc_ors_entry 4135aefb655Srie #define Dbg_reloc_out Dbg64_reloc_out 4145aefb655Srie #define Dbg_reloc_proc Dbg64_reloc_proc 4155aefb655Srie #define Dbg_reloc_run Dbg64_reloc_run 4165aefb655Srie #define Dbg_reloc_transition Dbg64_reloc_transition 417d2ef9fe9Sab196087 #define Dbg_reloc_sloppycomdat Dbg64_reloc_sloppycomdat 4185aefb655Srie 4195aefb655Srie #define Dbg_sec_added Dbg64_sec_added 42057ef7aa9SRod Evans #define Dbg_sec_backing Dbg64_sec_backing 4215aefb655Srie #define Dbg_sec_created Dbg64_sec_created 4225aefb655Srie #define Dbg_sec_discarded Dbg64_sec_discarded 423cce0e03bSab196087 #define Dbg_sec_genstr_compress Dbg64_sec_genstr_compress 4245aefb655Srie #define Dbg_sec_group Dbg64_sec_group 4250e233487SRod Evans #define Dbg_sec_gnu_comdat Dbg64_sec_gnu_comdat 4265aefb655Srie #define Dbg_sec_in Dbg64_sec_in 4275aefb655Srie #define Dbg_sec_order_error Dbg64_sec_order_error 4285aefb655Srie #define Dbg_sec_order_list Dbg64_sec_order_list 4290e233487SRod Evans #define Dbg_sec_redirected Dbg64_sec_redirected 4305aefb655Srie #define Dbg_sec_strtab Dbg64_sec_strtab 431cce0e03bSab196087 #define Dbg_sec_unsup_strmerge Dbg64_sec_unsup_strmerge 4325aefb655Srie 4335aefb655Srie #define Dbg_seg_desc_entry Dbg64_seg_desc_entry 4345aefb655Srie #define Dbg_seg_entry Dbg64_seg_entry 4355aefb655Srie #define Dbg_seg_list Dbg64_seg_list 4365aefb655Srie #define Dbg_seg_os Dbg64_seg_os 4375aefb655Srie #define Dbg_seg_title Dbg64_seg_title 4385aefb655Srie 4397010c12aSrie #define Dbg_shdr_modified Dbg64_shdr_modified 4407010c12aSrie 4415aefb655Srie #define Dbg_statistics_ar Dbg64_statistics_ar 4425aefb655Srie #define Dbg_statistics_ld Dbg64_statistics_ld 4435aefb655Srie 4445aefb655Srie #define Dbg_support_action Dbg64_support_action 4455aefb655Srie #define Dbg_support_load Dbg64_support_load 4465aefb655Srie #define Dbg_support_req Dbg64_support_req 447d2d5cf7cSAli Bahrami #define Dbg_support_vnone Dbg64_support_vnone 4485aefb655Srie 4495aefb655Srie #define Dbg_syminfo_entry Dbg64_syminfo_entry 4505aefb655Srie #define Dbg_syminfo_title Dbg64_syminfo_title 4515aefb655Srie 4525aefb655Srie #define Dbg_syms_ar_checking Dbg64_syms_ar_checking 453dc0f59e5SAli Bahrami #define Dbg_syms_ar_force Dbg64_syms_ar_force 4545aefb655Srie #define Dbg_syms_ar_resolve Dbg64_syms_ar_resolve 455dc0f59e5SAli Bahrami #define Dbg_syms_ar_skip Dbg64_syms_ar_skip 4565aefb655Srie #define Dbg_syms_ar_title Dbg64_syms_ar_title 45708278a5eSRod Evans #define Dbg_syms_cap_convert Dbg64_syms_cap_convert 45808278a5eSRod Evans #define Dbg_syms_cap_local Dbg64_syms_cap_local 45908278a5eSRod Evans #define Dbg_syms_cap_lookup Dbg64_syms_cap_lookup 46008278a5eSRod Evans #define Dbg_syms_cap_title Dbg64_syms_cap_title 4615aefb655Srie #define Dbg_syms_created Dbg64_syms_created 4625aefb655Srie #define Dbg_syms_discarded Dbg64_syms_discarded 46324b9abbaSab196087 #define Dbg_syms_dup_discarded Dbg64_syms_dup_discarded 464d579eb63Sab196087 #define Dbg_syms_dup_sort_addr Dbg64_syms_dup_sort_addr 4655aefb655Srie #define Dbg_syms_entered Dbg64_syms_entered 4665aefb655Srie #define Dbg_syms_entry Dbg64_syms_entry 4675aefb655Srie #define Dbg_syms_global Dbg64_syms_global 4685aefb655Srie #define Dbg_syms_ignore Dbg64_syms_ignore 469d840867fSab196087 #define Dbg_syms_ignore_gnuver Dbg64_syms_ignore_gnuver 4705aefb655Srie #define Dbg_syms_lazy_rescan Dbg64_syms_lazy_rescan 4715aefb655Srie #define Dbg_syms_lookup Dbg64_syms_lookup 4725aefb655Srie #define Dbg_syms_new Dbg64_syms_new 4735aefb655Srie #define Dbg_syms_old Dbg64_syms_old 4745aefb655Srie #define Dbg_syms_process Dbg64_syms_process 4755aefb655Srie #define Dbg_syms_reduce Dbg64_syms_reduce 4765aefb655Srie #define Dbg_syms_reloc Dbg64_syms_reloc 4775aefb655Srie #define Dbg_syms_resolved Dbg64_syms_resolved 4785aefb655Srie #define Dbg_syms_resolving Dbg64_syms_resolving 4795aefb655Srie #define Dbg_syms_sec_entry Dbg64_syms_sec_entry 4805aefb655Srie #define Dbg_syms_sec_title Dbg64_syms_sec_title 4815aefb655Srie #define Dbg_syms_spec_title Dbg64_syms_spec_title 4825aefb655Srie #define Dbg_syms_updated Dbg64_syms_updated 4835aefb655Srie #define Dbg_syms_up_title Dbg64_syms_up_title 484cdcc71c0SAli Bahrami #define Dbg_syms_wrap Dbg64_syms_wrap 4855aefb655Srie 4865aefb655Srie #define Dbg_util_call_array Dbg64_util_call_array 4875aefb655Srie #define Dbg_util_call_fini Dbg64_util_call_fini 4885aefb655Srie #define Dbg_util_call_init Dbg64_util_call_init 4895aefb655Srie #define Dbg_util_call_main Dbg64_util_call_main 4905aefb655Srie #define Dbg_util_collect Dbg64_util_collect 4915aefb655Srie #define Dbg_util_dbnotify Dbg64_util_dbnotify 4925aefb655Srie #define Dbg_util_edge_in Dbg64_util_edge_in 4935aefb655Srie #define Dbg_util_edge_out Dbg64_util_edge_out 4945aefb655Srie #define Dbg_util_intoolate Dbg64_util_intoolate 49510a4fa49Srie #define Dbg_util_lcinterface Dbg64_util_lcinterface 4965aefb655Srie #define Dbg_util_nl Dbg64_util_nl 4975aefb655Srie #define Dbg_util_no_init Dbg64_util_no_init 4985aefb655Srie #define Dbg_util_scc_entry Dbg64_util_scc_entry 4995aefb655Srie #define Dbg_util_scc_title Dbg64_util_scc_title 5005aefb655Srie #define Dbg_util_str Dbg64_util_str 5015aefb655Srie 5025aefb655Srie #define Dbg_unused_file Dbg64_unused_file 50310a4fa49Srie #define Dbg_unused_lcinterface Dbg64_unused_lcinterface 5049aa23310Srie #define Dbg_unused_path Dbg64_unused_path 5055aefb655Srie #define Dbg_unused_sec Dbg64_unused_sec 5065aefb655Srie #define Dbg_unused_unref Dbg64_unused_unref 5075aefb655Srie 5085aefb655Srie #define Dbg_ver_avail_entry Dbg64_ver_avail_entry 5095aefb655Srie #define Dbg_ver_avail_title Dbg64_ver_avail_title 5105aefb655Srie #define Dbg_ver_def_title Dbg64_ver_def_title 5115aefb655Srie #define Dbg_ver_desc_entry Dbg64_ver_desc_entry 51220272c2eSAli Bahrami #define Dbg_ver_need_done Dbg64_ver_need_done 5135aefb655Srie #define Dbg_ver_need_entry Dbg64_ver_need_entry 5145aefb655Srie #define Dbg_ver_need_title Dbg64_ver_need_title 5155aefb655Srie #define Dbg_ver_nointerface Dbg64_ver_nointerface 5165aefb655Srie #define Dbg_ver_symbol Dbg64_ver_symbol 5175aefb655Srie 5185aefb655Srie #else 5195aefb655Srie 5205aefb655Srie #define Dbg_demangle_name Dbg32_demangle_name 5215aefb655Srie 5225aefb655Srie #define Dbg_bind_global Dbg32_bind_global 5235aefb655Srie #define Dbg_bind_plt_summary Dbg32_bind_plt_summary 52460758829Srie #define Dbg_bind_reject Dbg32_bind_reject 5255aefb655Srie #define Dbg_bind_weak Dbg32_bind_weak 5265aefb655Srie 52708278a5eSRod Evans #define Dbg_cap_candidate Dbg32_cap_candidate 52808278a5eSRod Evans #define Dbg_cap_filter Dbg32_cap_filter 52908278a5eSRod Evans #define Dbg_cap_id Dbg32_cap_id 53069112eddSAli Bahrami #define Dbg_cap_mapfile_title Dbg32_cap_mapfile_title 53108278a5eSRod Evans #define Dbg_cap_post_title Dbg32_cap_post_title 5325aefb655Srie #define Dbg_cap_sec_title Dbg32_cap_sec_title 53308278a5eSRod Evans #define Dbg_cap_val Dbg32_cap_val 53408278a5eSRod Evans #define Dbg_cap_ptr_entry Dbg32_cap_ptr_entry 53508278a5eSRod Evans #define Dbg_cap_val_entry Dbg32_cap_val_entry 5365aefb655Srie 53798c080d5SRod Evans #define Dbg_dl_dladdr Dbg32_dl_dladdr 53898c080d5SRod Evans #define Dbg_dl_dlclose Dbg32_dl_dlclose 53998c080d5SRod Evans #define Dbg_dl_dldump Dbg32_dl_dldump 54098c080d5SRod Evans #define Dbg_dl_dlerror Dbg32_dl_dlerror 54198c080d5SRod Evans #define Dbg_dl_dlinfo Dbg32_dl_dlinfo 54298c080d5SRod Evans #define Dbg_dl_dlopen Dbg32_dl_dlopen 54398c080d5SRod Evans #define Dbg_dl_dlsym Dbg32_dl_dlsym 54498c080d5SRod Evans #define Dbg_dl_iphdr_enter Dbg32_dl_iphdr_enter 54598c080d5SRod Evans #define Dbg_dl_iphdr_callback Dbg32_dl_iphdr_callback 54698c080d5SRod Evans #define Dbg_dl_iphdr_mapchange Dbg32_dl_iphdr_mapchange 54798c080d5SRod Evans #define Dbg_dl_iphdr_unmap_ret Dbg32_dl_iphdr_unmap_ret 54820272c2eSAli Bahrami 5495aefb655Srie #define Dbg_ent_entry Dbg32_ent_entry 5505aefb655Srie #define Dbg_ent_print Dbg32_ent_print 5515aefb655Srie 5525aefb655Srie #define Dbg_file_analyze Dbg32_file_analyze 5535aefb655Srie #define Dbg_file_aout Dbg32_file_aout 5545aefb655Srie #define Dbg_file_ar Dbg32_file_ar 5555aefb655Srie #define Dbg_file_ar_rescan Dbg32_file_ar_rescan 5565aefb655Srie #define Dbg_file_bind_entry Dbg32_file_bind_entry 5575aefb655Srie #define Dbg_file_bindings Dbg32_file_bindings 55820272c2eSAli Bahrami #define Dbg_file_bindings_done Dbg32_file_bindings_done 55902ca3e02Srie #define Dbg_file_cleanup Dbg32_file_cleanup 5605aefb655Srie #define Dbg_file_cntl Dbg32_file_cntl 5615aefb655Srie #define Dbg_file_config_dis Dbg32_file_config_dis 5625aefb655Srie #define Dbg_file_config_obj Dbg32_file_config_obj 5635aefb655Srie #define Dbg_file_del_rescan Dbg32_file_del_rescan 5645aefb655Srie #define Dbg_file_delete Dbg32_file_delete 565*f441771bSRod Evans #define Dbg_file_deferred Dbg32_file_deferred 5665aefb655Srie #define Dbg_file_elf Dbg32_file_elf 5675aefb655Srie #define Dbg_file_filtee Dbg32_file_filtee 5685aefb655Srie #define Dbg_file_filter Dbg32_file_filter 5695aefb655Srie #define Dbg_file_fixname Dbg32_file_fixname 5705aefb655Srie #define Dbg_file_generic Dbg32_file_generic 5715aefb655Srie #define Dbg_file_hdl_action Dbg32_file_hdl_action 5725aefb655Srie #define Dbg_file_hdl_collect Dbg32_file_hdl_collect 5735aefb655Srie #define Dbg_file_hdl_title Dbg32_file_hdl_title 5745aefb655Srie #define Dbg_file_lazyload Dbg32_file_lazyload 5755aefb655Srie #define Dbg_file_ldso Dbg32_file_ldso 57656deab07SRod Evans #define Dbg_file_mmapobj Dbg32_file_mmapobj 5775aefb655Srie #define Dbg_file_mode_promote Dbg32_file_mode_promote 5783906e0c2Srie #define Dbg_file_modified Dbg32_file_modified 5795aefb655Srie #define Dbg_file_needed Dbg32_file_needed 5805aefb655Srie #define Dbg_file_output Dbg32_file_output 5815aefb655Srie #define Dbg_file_preload Dbg32_file_preload 5825aefb655Srie #define Dbg_file_prot Dbg32_file_prot 5835aefb655Srie #define Dbg_file_rejected Dbg32_file_rejected 5845aefb655Srie #define Dbg_file_reuse Dbg32_file_reuse 5855aefb655Srie #define Dbg_file_skip Dbg32_file_skip 5865aefb655Srie 5875aefb655Srie #define Dbg_got_display Dbg32_got_display 5885aefb655Srie 5895aefb655Srie #define Dbg_libs_audit Dbg32_libs_audit 5905aefb655Srie #define Dbg_libs_find Dbg32_libs_find 5915aefb655Srie #define Dbg_libs_found Dbg32_libs_found 5923dbfc803SRod Evans #define Dbg_libs_insecure Dbg32_libs_insecure 5935aefb655Srie #define Dbg_libs_init Dbg32_libs_init 5945aefb655Srie #define Dbg_libs_l Dbg32_libs_l 5955aefb655Srie #define Dbg_libs_path Dbg32_libs_path 5965aefb655Srie #define Dbg_libs_req Dbg32_libs_req 5975aefb655Srie #define Dbg_libs_update Dbg32_libs_update 5985aefb655Srie #define Dbg_libs_yp Dbg32_libs_yp 5995aefb655Srie #define Dbg_libs_ylu Dbg32_libs_ylu 6005aefb655Srie 60169112eddSAli Bahrami #define Dbg_map_cexp_id Dbg32_map_cexp_id 60269112eddSAli Bahrami #define Dbg_map_dv Dbg32_map_dv 60369112eddSAli Bahrami #define Dbg_map_dv_entry Dbg32_map_dv_entry 6045aefb655Srie #define Dbg_map_ent Dbg32_map_ent 60569112eddSAli Bahrami #define Dbg_map_ent_ord_title Dbg32_map_ent_ord_title 60669112eddSAli Bahrami #define Dbg_map_hdr_noalloc Dbg32_map_hdr_noalloc 6075aefb655Srie #define Dbg_map_parse Dbg32_map_parse 60869112eddSAli Bahrami #define Dbg_map_pass Dbg32_map_pass 60969112eddSAli Bahrami #define Dbg_map_post_title Dbg32_map_post_title 6105aefb655Srie #define Dbg_map_seg Dbg32_map_seg 61169112eddSAli Bahrami #define Dbg_map_seg_order Dbg32_map_seg_order 61269112eddSAli Bahrami #define Dbg_map_seg_os_order Dbg32_map_seg_os_order 6135aefb655Srie #define Dbg_map_size_new Dbg32_map_size_new 6145aefb655Srie #define Dbg_map_size_old Dbg32_map_size_old 61557ef7aa9SRod Evans #define Dbg_map_sort_seg Dbg32_map_sort_seg 61669112eddSAli Bahrami #define Dbg_map_sort_title Dbg32_map_sort_title 6175aefb655Srie #define Dbg_map_symbol Dbg32_map_symbol 6185aefb655Srie #define Dbg_map_version Dbg32_map_version 6195aefb655Srie 6205aefb655Srie #define Dbg_move_adjexpandreloc Dbg32_move_adjexpandreloc 6215aefb655Srie #define Dbg_move_adjmovereloc Dbg32_move_adjmovereloc 62256deab07SRod Evans #define Dbg_move_bad Dbg32_move_bad 6235aefb655Srie #define Dbg_move_data Dbg32_move_data 6245aefb655Srie #define Dbg_move_entry1 Dbg32_move_entry1 6255aefb655Srie #define Dbg_move_entry2 Dbg32_move_entry2 6265aefb655Srie #define Dbg_move_expand Dbg32_move_expand 6275aefb655Srie #define Dbg_move_input Dbg32_move_input 6285aefb655Srie #define Dbg_move_outmove Dbg32_move_outmove 6295aefb655Srie #define Dbg_move_outsctadj Dbg32_move_outsctadj 6305aefb655Srie #define Dbg_move_parexpn Dbg32_move_parexpn 6315aefb655Srie 6325aefb655Srie #define Dbg_reloc_apply_reg Dbg32_reloc_apply_reg 6335aefb655Srie #define Dbg_reloc_apply_val Dbg32_reloc_apply_val 6345aefb655Srie #define Dbg_reloc_ars_entry Dbg32_reloc_ars_entry 6355aefb655Srie #define Dbg_reloc_copy Dbg32_reloc_copy 6365aefb655Srie #define Dbg_reloc_discard Dbg32_reloc_discard 6375aefb655Srie #define Dbg_reloc_doact Dbg32_reloc_doact 6385aefb655Srie #define Dbg_reloc_doact_title Dbg32_reloc_doact_title 6395aefb655Srie #define Dbg_reloc_dooutrel Dbg32_reloc_dooutrel 6405aefb655Srie #define Dbg_reloc_entry Dbg32_reloc_entry 6415aefb655Srie #define Dbg_reloc_error Dbg32_reloc_error 6425aefb655Srie #define Dbg_reloc_generate Dbg32_reloc_generate 6435aefb655Srie #define Dbg_reloc_in Dbg32_reloc_in 6445aefb655Srie #define Dbg_reloc_ors_entry Dbg32_reloc_ors_entry 6455aefb655Srie #define Dbg_reloc_out Dbg32_reloc_out 6465aefb655Srie #define Dbg_reloc_proc Dbg32_reloc_proc 6475aefb655Srie #define Dbg_reloc_run Dbg32_reloc_run 6485aefb655Srie #define Dbg_reloc_transition Dbg32_reloc_transition 649d2ef9fe9Sab196087 #define Dbg_reloc_sloppycomdat Dbg32_reloc_sloppycomdat 6505aefb655Srie 6515aefb655Srie #define Dbg_sec_added Dbg32_sec_added 65257ef7aa9SRod Evans #define Dbg_sec_backing Dbg32_sec_backing 6535aefb655Srie #define Dbg_sec_created Dbg32_sec_created 6545aefb655Srie #define Dbg_sec_discarded Dbg32_sec_discarded 655cce0e03bSab196087 #define Dbg_sec_genstr_compress Dbg32_sec_genstr_compress 6565aefb655Srie #define Dbg_sec_group Dbg32_sec_group 6570e233487SRod Evans #define Dbg_sec_gnu_comdat Dbg32_sec_gnu_comdat 6585aefb655Srie #define Dbg_sec_in Dbg32_sec_in 6595aefb655Srie #define Dbg_sec_order_error Dbg32_sec_order_error 6605aefb655Srie #define Dbg_sec_order_list Dbg32_sec_order_list 6610e233487SRod Evans #define Dbg_sec_redirected Dbg32_sec_redirected 6625aefb655Srie #define Dbg_sec_strtab Dbg32_sec_strtab 663cce0e03bSab196087 #define Dbg_sec_unsup_strmerge Dbg32_sec_unsup_strmerge 6645aefb655Srie 6655aefb655Srie #define Dbg_seg_desc_entry Dbg32_seg_desc_entry 6665aefb655Srie #define Dbg_seg_entry Dbg32_seg_entry 6675aefb655Srie #define Dbg_seg_list Dbg32_seg_list 6685aefb655Srie #define Dbg_seg_os Dbg32_seg_os 6695aefb655Srie #define Dbg_seg_title Dbg32_seg_title 6705aefb655Srie 6717010c12aSrie #define Dbg_shdr_modified Dbg32_shdr_modified 6727010c12aSrie 6735aefb655Srie #define Dbg_statistics_ar Dbg32_statistics_ar 6745aefb655Srie #define Dbg_statistics_ld Dbg32_statistics_ld 6755aefb655Srie 6765aefb655Srie #define Dbg_support_action Dbg32_support_action 6775aefb655Srie #define Dbg_support_load Dbg32_support_load 6785aefb655Srie #define Dbg_support_req Dbg32_support_req 679d2d5cf7cSAli Bahrami #define Dbg_support_vnone Dbg32_support_vnone 6805aefb655Srie 6815aefb655Srie #define Dbg_syminfo_entry Dbg32_syminfo_entry 6825aefb655Srie #define Dbg_syminfo_title Dbg32_syminfo_title 6835aefb655Srie 6845aefb655Srie #define Dbg_syms_ar_checking Dbg32_syms_ar_checking 685dc0f59e5SAli Bahrami #define Dbg_syms_ar_force Dbg32_syms_ar_force 6865aefb655Srie #define Dbg_syms_ar_resolve Dbg32_syms_ar_resolve 687dc0f59e5SAli Bahrami #define Dbg_syms_ar_skip Dbg32_syms_ar_skip 6885aefb655Srie #define Dbg_syms_ar_title Dbg32_syms_ar_title 68908278a5eSRod Evans #define Dbg_syms_cap_convert Dbg32_syms_cap_convert 69008278a5eSRod Evans #define Dbg_syms_cap_local Dbg32_syms_cap_local 69108278a5eSRod Evans #define Dbg_syms_cap_lookup Dbg32_syms_cap_lookup 69208278a5eSRod Evans #define Dbg_syms_cap_title Dbg32_syms_cap_title 6935aefb655Srie #define Dbg_syms_created Dbg32_syms_created 6945aefb655Srie #define Dbg_syms_discarded Dbg32_syms_discarded 69524b9abbaSab196087 #define Dbg_syms_dup_discarded Dbg32_syms_dup_discarded 696d579eb63Sab196087 #define Dbg_syms_dup_sort_addr Dbg32_syms_dup_sort_addr 6975aefb655Srie #define Dbg_syms_entered Dbg32_syms_entered 6985aefb655Srie #define Dbg_syms_entry Dbg32_syms_entry 6995aefb655Srie #define Dbg_syms_global Dbg32_syms_global 7005aefb655Srie #define Dbg_syms_ignore Dbg32_syms_ignore 701d840867fSab196087 #define Dbg_syms_ignore_gnuver Dbg32_syms_ignore_gnuver 7025aefb655Srie #define Dbg_syms_lazy_rescan Dbg32_syms_lazy_rescan 7035aefb655Srie #define Dbg_syms_lookup Dbg32_syms_lookup 7045aefb655Srie #define Dbg_syms_lookup_aout Dbg32_syms_lookup_aout 7055aefb655Srie #define Dbg_syms_new Dbg32_syms_new 7065aefb655Srie #define Dbg_syms_old Dbg32_syms_old 7075aefb655Srie #define Dbg_syms_process Dbg32_syms_process 7085aefb655Srie #define Dbg_syms_reduce Dbg32_syms_reduce 7095aefb655Srie #define Dbg_syms_reloc Dbg32_syms_reloc 7105aefb655Srie #define Dbg_syms_resolved Dbg32_syms_resolved 7115aefb655Srie #define Dbg_syms_resolving Dbg32_syms_resolving 7125aefb655Srie #define Dbg_syms_sec_entry Dbg32_syms_sec_entry 7135aefb655Srie #define Dbg_syms_sec_title Dbg32_syms_sec_title 7145aefb655Srie #define Dbg_syms_spec_title Dbg32_syms_spec_title 7155aefb655Srie #define Dbg_syms_updated Dbg32_syms_updated 7165aefb655Srie #define Dbg_syms_up_title Dbg32_syms_up_title 717cdcc71c0SAli Bahrami #define Dbg_syms_wrap Dbg32_syms_wrap 7185aefb655Srie 7195aefb655Srie #define Dbg_util_call_array Dbg32_util_call_array 7205aefb655Srie #define Dbg_util_call_fini Dbg32_util_call_fini 7215aefb655Srie #define Dbg_util_call_init Dbg32_util_call_init 7225aefb655Srie #define Dbg_util_call_main Dbg32_util_call_main 7235aefb655Srie #define Dbg_util_collect Dbg32_util_collect 7245aefb655Srie #define Dbg_util_dbnotify Dbg32_util_dbnotify 7255aefb655Srie #define Dbg_util_edge_in Dbg32_util_edge_in 7265aefb655Srie #define Dbg_util_edge_out Dbg32_util_edge_out 7275aefb655Srie #define Dbg_util_intoolate Dbg32_util_intoolate 72810a4fa49Srie #define Dbg_util_lcinterface Dbg32_util_lcinterface 7295aefb655Srie #define Dbg_util_nl Dbg32_util_nl 7305aefb655Srie #define Dbg_util_no_init Dbg32_util_no_init 7315aefb655Srie #define Dbg_util_scc_entry Dbg32_util_scc_entry 7325aefb655Srie #define Dbg_util_scc_title Dbg32_util_scc_title 7335aefb655Srie #define Dbg_util_str Dbg32_util_str 7345aefb655Srie 7355aefb655Srie #define Dbg_unused_file Dbg32_unused_file 73610a4fa49Srie #define Dbg_unused_lcinterface Dbg32_unused_lcinterface 7379aa23310Srie #define Dbg_unused_path Dbg32_unused_path 7385aefb655Srie #define Dbg_unused_sec Dbg32_unused_sec 7395aefb655Srie #define Dbg_unused_unref Dbg32_unused_unref 7405aefb655Srie 7415aefb655Srie #define Dbg_ver_avail_entry Dbg32_ver_avail_entry 7425aefb655Srie #define Dbg_ver_avail_title Dbg32_ver_avail_title 7435aefb655Srie #define Dbg_ver_def_title Dbg32_ver_def_title 7445aefb655Srie #define Dbg_ver_desc_entry Dbg32_ver_desc_entry 74520272c2eSAli Bahrami #define Dbg_ver_need_done Dbg32_ver_need_done 7465aefb655Srie #define Dbg_ver_need_entry Dbg32_ver_need_entry 7475aefb655Srie #define Dbg_ver_need_title Dbg32_ver_need_title 7485aefb655Srie #define Dbg_ver_nointerface Dbg32_ver_nointerface 7495aefb655Srie #define Dbg_ver_symbol Dbg32_ver_symbol 7505aefb655Srie 7515aefb655Srie #endif 7525aefb655Srie 7535aefb655Srie /* 7545aefb655Srie * External Dbg_*() interface routines. 7555aefb655Srie */ 7562017c965SRod Evans extern void Dbg_args_file(Lm_list *, int, char *); 7572017c965SRod Evans extern void Dbg_args_option(Lm_list *, int, int, char *); 75892a02081SRod Evans extern void Dbg_args_str2chr(Lm_list *, int, const char *, int); 75992a02081SRod Evans extern void Dbg_args_Wldel(Lm_list *, int, const char *); 7607247f888Srie extern void Dbg_audit_ignore(Rt_map *); 7615aefb655Srie extern void Dbg_audit_interface(Lm_list *, const char *, const char *); 7625aefb655Srie extern void Dbg_audit_lib(Lm_list *, const char *); 7635aefb655Srie extern void Dbg_audit_object(Lm_list *, const char *, const char *); 7645aefb655Srie extern void Dbg_audit_symval(Lm_list *, const char *, const char *, 7655aefb655Srie const char *, Addr, Addr); 766c75e1b9dSrie extern void Dbg_audit_skip(Lm_list *, const char *, const char *); 7677247f888Srie extern void Dbg_audit_terminate(Lm_list *, const char *); 7685aefb655Srie extern void Dbg_audit_version(Lm_list *, const char *, ulong_t); 7695aefb655Srie 7702017c965SRod Evans extern void Dbg_basic_collect(Lm_list *); 7712017c965SRod Evans extern void Dbg_basic_create(Lm_list *); 7722017c965SRod Evans extern void Dbg_basic_finish(Lm_list *); 7732017c965SRod Evans extern void Dbg_basic_files(Lm_list *); 7742017c965SRod Evans extern void Dbg_basic_options(Lm_list *); 7752017c965SRod Evans extern void Dbg_basic_relocate(Lm_list *); 7762017c965SRod Evans extern void Dbg_basic_validate(Lm_list *); 7772017c965SRod Evans 7785aefb655Srie extern void Dbg_bind_global(Rt_map *, Addr, Off, Xword, Pltbindtype, 7795aefb655Srie Rt_map *, Addr, Off, const char *, uint_t); 7805aefb655Srie extern void Dbg_bind_plt_summary(Lm_list *, Half, Word, Word, Word, Word, 7815aefb655Srie Word, Word); 7825aefb655Srie #if defined(_ELF64) 7835aefb655Srie extern void Dbg_bind_pltpad_from(Rt_map *, Addr, const char *); 7845aefb655Srie extern void Dbg_bind_pltpad_to(Rt_map *, Addr, const char *, const char *); 7855aefb655Srie #endif 78660758829Srie extern void Dbg_bind_reject(Rt_map *, Rt_map *, const char *, int); 7875aefb655Srie extern void Dbg_bind_weak(Rt_map *, Addr, Addr, const char *); 7885aefb655Srie 78908278a5eSRod Evans extern void Dbg_cap_candidate(Lm_list *, const char *); 79008278a5eSRod Evans extern void Dbg_cap_filter(Lm_list *, const char *, Rt_map *); 79108278a5eSRod Evans extern void Dbg_cap_id(Lm_list *, Lineno, const char *, const char *); 79269112eddSAli Bahrami extern void Dbg_cap_mapfile_title(Lm_list *, Lineno); 79308278a5eSRod Evans extern void Dbg_cap_post_title(Lm_list *, int *); 794bb3b4f6cSRod Evans extern void Dbg_cap_sec_title(Lm_list *, const char *); 79508278a5eSRod Evans extern void Dbg_cap_val(Lm_list *, Syscapset *, Syscapset *, Half); 79608278a5eSRod Evans extern void Dbg_cap_ptr_entry(Lm_list *, dbg_state_t, Xword, const char *); 79708278a5eSRod Evans extern void Dbg_cap_val_entry(Lm_list *, dbg_state_t, Xword, Xword, Half); 7985aefb655Srie 79998c080d5SRod Evans extern void Dbg_dl_dladdr(Rt_map *, void *); 80098c080d5SRod Evans extern void Dbg_dl_dlclose(Rt_map *, const char *, int); 80198c080d5SRod Evans extern void Dbg_dl_dldump(Rt_map *, const char *, const char *, int); 80298c080d5SRod Evans extern void Dbg_dl_dlerror(Rt_map *, const char *); 80398c080d5SRod Evans extern void Dbg_dl_dlinfo(Rt_map *, const char *, int, void *); 80498c080d5SRod Evans extern void Dbg_dl_dlopen(Rt_map *, const char *, int *, int); 80598c080d5SRod Evans extern void Dbg_dl_dlsym(Rt_map *, const char *, int *, const char *, int); 80698c080d5SRod Evans extern void Dbg_dl_iphdr_enter(Rt_map *, u_longlong_t, u_longlong_t); 80798c080d5SRod Evans extern void Dbg_dl_iphdr_callback(Lm_list *, struct dl_phdr_info *); 80898c080d5SRod Evans extern void Dbg_dl_iphdr_mapchange(Lm_list *, u_longlong_t, u_longlong_t); 80998c080d5SRod Evans extern void Dbg_dl_iphdr_unmap_ret(Lm_list *); 81020272c2eSAli Bahrami 8115aefb655Srie extern const char * 8125aefb655Srie Dbg_demangle_name(const char *); 8135aefb655Srie 8144f680cc6SAli Bahrami extern void Dbg_ent_entry(Lm_list *, uchar_t, Half, Ent_desc *); 81569112eddSAli Bahrami extern void Dbg_ent_print(Lm_list *, uchar_t, Half, APlist *); 8165aefb655Srie 8177c478bd9Sstevel@tonic-gate extern void Dbg_file_analyze(Rt_map *); 81856deab07SRod Evans extern void Dbg_file_aout(Lm_list *, const char *, Addr, size_t, 81956deab07SRod Evans const char *, Aliste); 820dc0f59e5SAli Bahrami extern void Dbg_file_ar(Lm_list *, const char *, Boolean); 821551cffe3SAli Bahrami extern void Dbg_file_ar_rescan(Lm_list *, int, int); 8225aefb655Srie extern void Dbg_file_bind_entry(Lm_list *, Bnd_desc *); 8235aefb655Srie extern void Dbg_file_bindings(Rt_map *, int); 82420272c2eSAli Bahrami extern void Dbg_file_bindings_done(Lm_list *); 82502ca3e02Srie extern void Dbg_file_cleanup(Lm_list *, const char *, Aliste); 8267c478bd9Sstevel@tonic-gate extern void Dbg_file_cntl(Lm_list *, Aliste, Aliste); 8275aefb655Srie extern void Dbg_file_config_dis(Lm_list *, const char *, int); 8285aefb655Srie extern void Dbg_file_config_obj(Lm_list *, const char *, const char *, 8297c478bd9Sstevel@tonic-gate const char *); 8305aefb655Srie extern void Dbg_file_del_rescan(Lm_list *); 8315aefb655Srie extern void Dbg_file_delete(Rt_map *); 832*f441771bSRod Evans extern void Dbg_file_deferred(Lm_list *, const char *, const char *); 83356deab07SRod Evans extern void Dbg_file_elf(Lm_list *, const char *, Addr, size_t, 83456deab07SRod Evans const char *, Aliste); 8355aefb655Srie extern void Dbg_file_filtee(Lm_list *, const char *, const char *, int); 8365aefb655Srie extern void Dbg_file_filter(Lm_list *, const char *, const char *, int); 8375aefb655Srie extern void Dbg_file_fixname(Lm_list *, const char *, const char *); 8385aefb655Srie extern void Dbg_file_generic(Lm_list *, Ifl_desc *); 83902ca3e02Srie extern void Dbg_file_hdl_action(Grp_hdl *, Rt_map *, int, uint_t); 8407c478bd9Sstevel@tonic-gate extern void Dbg_file_hdl_collect(Grp_hdl *, const char *); 8417c478bd9Sstevel@tonic-gate extern void Dbg_file_hdl_title(int); 8425aefb655Srie extern void Dbg_file_lazyload(Rt_map *, const char *, const char *); 8435aefb655Srie extern void Dbg_file_ldso(Rt_map *, char **, auxv_t *, const char *, 8445aefb655Srie Aliste); 84556deab07SRod Evans extern void Dbg_file_mmapobj(Lm_list *, const char *, mmapobj_result_t *, 84656deab07SRod Evans uint_t); 8475aefb655Srie extern void Dbg_file_mode_promote(Rt_map *, int); 8483906e0c2Srie extern void Dbg_file_modified(Lm_list *, const char *, const char *, 8493906e0c2Srie const char *, int, int, Elf *, Elf *); 8505aefb655Srie extern void Dbg_file_needed(Rt_map *, const char *); 8517c478bd9Sstevel@tonic-gate extern void Dbg_file_output(Ofl_desc *); 8525aefb655Srie extern void Dbg_file_preload(Lm_list *, const char *); 8535aefb655Srie extern void Dbg_file_prot(Rt_map *, int); 854ba2be530Sab196087 extern void Dbg_file_rejected(Lm_list *, Rej_desc *, Half mach); 8555aefb655Srie extern void Dbg_file_reuse(Lm_list *, const char *, const char *); 8565aefb655Srie extern void Dbg_file_skip(Lm_list *, const char *, const char *); 8575aefb655Srie 858ba2be530Sab196087 extern void Dbg_got_display(Ofl_desc *, Off, int, Word, size_t); 8595aefb655Srie 8605aefb655Srie extern void Dbg_libs_audit(Lm_list *, const char *, const char *); 8615aefb655Srie extern void Dbg_libs_find(Lm_list *, const char *); 8625aefb655Srie extern void Dbg_libs_found(Lm_list *, const char *, int); 8633dbfc803SRod Evans extern void Dbg_libs_insecure(Lm_list *, const char *, int); 86457ef7aa9SRod Evans extern void Dbg_libs_init(Lm_list *, APlist *, APlist *); 8655aefb655Srie extern void Dbg_libs_l(Lm_list *, const char *, const char *); 8669aa23310Srie extern void Dbg_libs_path(Lm_list *, const char *, uint_t, const char *); 8675aefb655Srie extern void Dbg_libs_req(Lm_list *, const char *, const char *, 8687c478bd9Sstevel@tonic-gate const char *); 86957ef7aa9SRod Evans extern void Dbg_libs_update(Lm_list *, APlist *, APlist *); 8705aefb655Srie extern void Dbg_libs_yp(Lm_list *, const char *); 8715aefb655Srie extern void Dbg_libs_ylu(Lm_list *, const char *, const char *, int); 8725aefb655Srie 87369112eddSAli Bahrami extern void Dbg_map_cexp_id(Lm_list *, Boolean, const char *, Lineno, 87469112eddSAli Bahrami const char *); 87569112eddSAli Bahrami extern void Dbg_map_dv(Lm_list *, const char *, Lineno); 87669112eddSAli Bahrami extern void Dbg_map_dv_entry(Lm_list *, Lineno, int, const char *); 87769112eddSAli Bahrami extern void Dbg_map_ent(Lm_list *, Ent_desc *, Ofl_desc *, Lineno); 87869112eddSAli Bahrami extern void Dbg_map_ent_ord_title(Lm_list *, const char *); 87969112eddSAli Bahrami extern void Dbg_map_hdr_noalloc(Lm_list *, Lineno); 88069112eddSAli Bahrami extern void Dbg_map_parse(Lm_list *, const char *, int); 88169112eddSAli Bahrami extern void Dbg_map_pass(Lm_list *, Boolean, const char *, Lineno, 88269112eddSAli Bahrami const char *); 88369112eddSAli Bahrami extern void Dbg_map_post_title(Lm_list *); 88469112eddSAli Bahrami extern void Dbg_map_seg(Ofl_desc *, dbg_state_t, int, Sg_desc *, Lineno); 88569112eddSAli Bahrami extern void Dbg_map_seg_order(Ofl_desc *, uchar_t, Half, dbg_state_t, 88669112eddSAli Bahrami Lineno); 88769112eddSAli Bahrami extern void Dbg_map_seg_os_order(Lm_list *, Sg_desc *, const char *, 88869112eddSAli Bahrami Word, Lineno); 88969112eddSAli Bahrami extern void Dbg_map_size_new(Lm_list *, const char *, const char *, Lineno); 89069112eddSAli Bahrami extern void Dbg_map_size_old(Ofl_desc *, Sym_desc *, const char *, Lineno); 89169112eddSAli Bahrami extern void Dbg_map_sort_title(Lm_list *, Boolean); 89269112eddSAli Bahrami extern void Dbg_map_sort_seg(Lm_list *, uchar_t, Half, Sg_desc *); 8935aefb655Srie extern void Dbg_map_symbol(Ofl_desc *, Sym_desc *); 8945aefb655Srie extern void Dbg_map_version(Lm_list *, const char *, const char *, int); 8955aefb655Srie 8965aefb655Srie extern void Dbg_move_adjexpandreloc(Lm_list *, Xword, const char *); 8975aefb655Srie extern void Dbg_move_adjmovereloc(Lm_list *, Xword, Xword, const char *); 89856deab07SRod Evans extern void Dbg_move_bad(Lm_list *, ulong_t, const char *, Addr); 8995aefb655Srie extern void Dbg_move_data(Rt_map *); 9005aefb655Srie extern void Dbg_move_entry1(Lm_list *, int, Move *, Sym_desc *); 9015aefb655Srie extern void Dbg_move_entry2(Lm_list *, Move *, Word, const char *); 9025aefb655Srie extern void Dbg_move_expand(Lm_list *, Move *, Addr); 9035aefb655Srie extern void Dbg_move_input(Lm_list *, const char *); 9045aefb655Srie extern void Dbg_move_outmove(Lm_list *, const char *); 9055aefb655Srie extern void Dbg_move_outsctadj(Lm_list *, Sym_desc *); 9065aefb655Srie extern void Dbg_move_parexpn(Lm_list *, const char *, const char *); 9075aefb655Srie 9085aefb655Srie extern void Dbg_reloc_apply_reg(Lm_list *, int, Half, Xword, Xword); 9095aefb655Srie extern void Dbg_reloc_apply_val(Lm_list *, int, Xword, Xword); 9105aefb655Srie extern void Dbg_reloc_ars_entry(Lm_list *, int, Word, Half, Rel_desc *); 9115aefb655Srie extern void Dbg_reloc_copy(Rt_map *, Rt_map *, const char *, int); 9125aefb655Srie extern void Dbg_reloc_discard(Lm_list *, Half, Rel_desc *); 913bf994817SAli Bahrami extern void Dbg_reloc_doact(Lm_list *, int, Half, Word, Rel_desc *, 914bf994817SAli Bahrami Xword, Xword, rel_desc_sname_func_t); 9155aefb655Srie extern void Dbg_reloc_doact_title(Lm_list *); 9165aefb655Srie extern void Dbg_reloc_dooutrel(Lm_list *, Word); 9175aefb655Srie extern void Dbg_reloc_entry(Lm_list *, const char *, Half, Word, void *, 9185aefb655Srie const char *, const char *, const char *); 9195aefb655Srie extern void Dbg_reloc_error(Lm_list *, int, Half, Word, void *, 9207c478bd9Sstevel@tonic-gate const char *); 9215aefb655Srie extern void Dbg_reloc_generate(Lm_list *, Os_desc *, Word); 9225aefb655Srie extern void Dbg_reloc_in(Lm_list *, int, Half, Word, void *, const char *, 923e23c41c9SAli Bahrami Word, const char *); 9245aefb655Srie extern void Dbg_reloc_ors_entry(Lm_list *, int, Word, Half, Rel_desc *); 9255aefb655Srie extern void Dbg_reloc_out(Ofl_desc *, int, Word, void *, const char *, 9267c478bd9Sstevel@tonic-gate const char *); 9275aefb655Srie extern void Dbg_reloc_proc(Lm_list *, Os_desc *, Is_desc *, Is_desc *); 9285aefb655Srie extern void Dbg_reloc_run(Rt_map *, uint_t, int, int); 929bf994817SAli Bahrami extern void Dbg_reloc_transition(Lm_list *, Half, Word, Rel_desc *, 930bf994817SAli Bahrami rel_desc_sname_func_t); 931e23c41c9SAli Bahrami extern void Dbg_reloc_sloppycomdat(Lm_list *, Sym_desc *); 9325aefb655Srie 9335aefb655Srie extern void Dbg_sec_added(Lm_list *, Os_desc *, Sg_desc *); 93457ef7aa9SRod Evans extern void Dbg_sec_backing(Lm_list *); 9355aefb655Srie extern void Dbg_sec_created(Lm_list *, Os_desc *, Sg_desc *); 9365aefb655Srie extern void Dbg_sec_discarded(Lm_list *, Is_desc *, Is_desc *); 937cce0e03bSab196087 extern void Dbg_sec_genstr_compress(Lm_list *, const char *, 938cce0e03bSab196087 Xword, Xword); 9395aefb655Srie extern void Dbg_sec_group(Lm_list *, Is_desc *, Group_desc *); 940e64d0ff9SAli Bahrami extern void Dbg_sec_gnu_comdat(Lm_list *, Is_desc *, Boolean, Boolean); 9415aefb655Srie extern void Dbg_sec_in(Lm_list *, Is_desc *); 9425aefb655Srie extern void Dbg_sec_order_error(Lm_list *, Ifl_desc *, Word, int); 9437c478bd9Sstevel@tonic-gate extern void Dbg_sec_order_list(Ofl_desc *, int); 944e23c41c9SAli Bahrami extern void Dbg_sec_redirected(Lm_list *, Is_desc *, const char *); 9455aefb655Srie extern void Dbg_sec_strtab(Lm_list *, Os_desc *, Str_tbl *); 946cce0e03bSab196087 extern void Dbg_sec_unsup_strmerge(Lm_list *, Is_desc *); 9475aefb655Srie 94869112eddSAli Bahrami extern void Dbg_seg_desc_entry(Lm_list *, uchar_t, Half, int, Sg_desc *, 94969112eddSAli Bahrami Boolean); 9505aefb655Srie extern void Dbg_seg_entry(Ofl_desc *, int, Sg_desc *); 9514f680cc6SAli Bahrami extern void Dbg_seg_list(Lm_list *, uchar_t, Half, APlist *); 9527c478bd9Sstevel@tonic-gate extern void Dbg_seg_os(Ofl_desc *, Os_desc *, int); 9535aefb655Srie extern void Dbg_seg_title(Lm_list *); 9545aefb655Srie 9554f680cc6SAli Bahrami extern void Dbg_shdr_modified(Lm_list *, const char *, uchar_t, Half, 956e23c41c9SAli Bahrami Word, Shdr *, Shdr *, const char *); 9577010c12aSrie 9587c478bd9Sstevel@tonic-gate extern void Dbg_statistics_ar(Ofl_desc *); 9597c478bd9Sstevel@tonic-gate extern void Dbg_statistics_ld(Ofl_desc *); 9605aefb655Srie 9615aefb655Srie extern void Dbg_support_action(Lm_list *, const char *, const char *, 9625aefb655Srie Support_ndx, const char *); 9635aefb655Srie extern void Dbg_support_load(Lm_list *, const char *, const char *); 9645aefb655Srie extern void Dbg_support_req(Lm_list *, const char *, int); 965d2d5cf7cSAli Bahrami extern void Dbg_support_vnone(Lm_list *, const char *); 9665aefb655Srie 9675aefb655Srie extern void Dbg_syminfo_entry(Lm_list *, Word, Syminfo *, Sym *, 9687c478bd9Sstevel@tonic-gate const char *, Dyn *); 9695aefb655Srie extern void Dbg_syminfo_title(Lm_list *); 9705aefb655Srie 971dc0f59e5SAli Bahrami extern void Dbg_syms_ar_checking(Lm_list *, const char *, const char *, 972dc0f59e5SAli Bahrami Elf_Arsym *); 973dc0f59e5SAli Bahrami extern void Dbg_syms_ar_force(Lm_list *, const char *, const char *); 974dc0f59e5SAli Bahrami extern void Dbg_syms_ar_resolve(Lm_list *, const char *, const char *, 975dc0f59e5SAli Bahrami Elf_Arsym *); 976dc0f59e5SAli Bahrami extern void Dbg_syms_ar_skip(Lm_list *, const char *, Elf_Arsym *); 977dc0f59e5SAli Bahrami extern void Dbg_syms_ar_title(Lm_list *, const char *, Boolean); 97808278a5eSRod Evans extern void Dbg_syms_cap_convert(Ofl_desc *, Word, const char *, Sym *); 97908278a5eSRod Evans extern void Dbg_syms_cap_local(Ofl_desc *, Word, const char *, Sym *, 98008278a5eSRod Evans Sym_desc *); 98108278a5eSRod Evans extern void Dbg_syms_cap_lookup(Rt_map *, uint_t, const char *, uint_t, 98208278a5eSRod Evans Half, Syscapset *); 98308278a5eSRod Evans extern void Dbg_syms_cap_title(Ofl_desc *); 9845aefb655Srie extern void Dbg_syms_created(Lm_list *, const char *); 985a194faf8Srie extern void Dbg_syms_discarded(Lm_list *, Sym_desc *); 98624b9abbaSab196087 extern void Dbg_syms_dup_discarded(Lm_list *, Word ndx, Sym_desc *); 987d579eb63Sab196087 extern void Dbg_syms_dup_sort_addr(Lm_list *, const char *, const char *, 988d579eb63Sab196087 const char *, Addr); 9895aefb655Srie extern void Dbg_syms_entered(Ofl_desc *, Sym *, Sym_desc *); 9905aefb655Srie extern void Dbg_syms_entry(Lm_list *, Word, Sym_desc *); 9915aefb655Srie extern void Dbg_syms_global(Lm_list *, Word, const char *); 9925aefb655Srie extern void Dbg_syms_ignore(Ofl_desc *, Sym_desc *); 993d840867fSab196087 extern void Dbg_syms_ignore_gnuver(Rt_map *, const char *, Word, Versym); 9945aefb655Srie extern void Dbg_syms_lazy_rescan(Lm_list *, const char *); 9955aefb655Srie extern void Dbg_syms_lookup(Rt_map *, const char *, const char *); 9965aefb655Srie #if !(defined(_ELF64)) 9975aefb655Srie extern void Dbg_syms_lookup_aout(Lm_list *, const char *); 9985aefb655Srie #endif 9995aefb655Srie extern void Dbg_syms_new(Ofl_desc *, Sym *, Sym_desc *); 10005aefb655Srie extern void Dbg_syms_old(Ofl_desc *, Sym_desc *); 10015aefb655Srie extern void Dbg_syms_process(Lm_list *, Ifl_desc *); 10025aefb655Srie extern void Dbg_syms_reduce(Ofl_desc *, int, Sym_desc *, int, 10035aefb655Srie const char *); 10045aefb655Srie extern void Dbg_syms_reloc(Ofl_desc *, Sym_desc *); 10055aefb655Srie extern void Dbg_syms_resolved(Ofl_desc *, Sym_desc *); 10065aefb655Srie extern void Dbg_syms_resolving(Ofl_desc *, Word, const char *, int, int, 10075aefb655Srie Sym *, Sym *, Sym_desc *, Ifl_desc *); 10085aefb655Srie extern void Dbg_syms_sec_entry(Lm_list *, Word, Sg_desc *, Os_desc *); 10095aefb655Srie extern void Dbg_syms_sec_title(Lm_list *); 10105aefb655Srie extern void Dbg_syms_spec_title(Lm_list *); 10115aefb655Srie extern void Dbg_syms_updated(Ofl_desc *, Sym_desc *, const char *); 10125aefb655Srie extern void Dbg_syms_up_title(Lm_list *); 1013cdcc71c0SAli Bahrami extern void Dbg_syms_wrap(Lm_list *, Word, const char *, const char *); 10145aefb655Srie 10155aefb655Srie extern void Dbg_tls_modactivity(Lm_list *, void *, uint_t); 1016d326b23bSrie extern void Dbg_tls_static_block(Lm_list *, void *, ulong_t, ulong_t); 1017d326b23bSrie extern void Dbg_tls_static_resv(Rt_map *, ulong_t, ulong_t); 10185aefb655Srie 10195aefb655Srie extern void Dbg_util_call_array(Rt_map *, void *, int, Word); 10205aefb655Srie extern void Dbg_util_call_fini(Rt_map *); 10215aefb655Srie extern void Dbg_util_call_init(Rt_map *, int); 10225aefb655Srie extern void Dbg_util_call_main(Rt_map *); 10235aefb655Srie extern void Dbg_util_collect(Rt_map *, int, int); 10245aefb655Srie extern void Dbg_util_dbnotify(Lm_list *, rd_event_e, r_state_e); 10255aefb655Srie extern void Dbg_util_edge_in(Lm_list *, Rt_map *, uint_t, Rt_map *, 10265aefb655Srie int, int); 10275aefb655Srie extern void Dbg_util_edge_out(Rt_map *, Rt_map *); 10285aefb655Srie extern void Dbg_util_intoolate(Rt_map *); 102910a4fa49Srie extern void Dbg_util_lcinterface(Rt_map *, int, char *); 10305aefb655Srie extern void Dbg_util_nl(Lm_list *, int); 10315aefb655Srie extern void Dbg_util_no_init(Rt_map *); 10325aefb655Srie extern void Dbg_util_scc_entry(Rt_map *, uint_t); 10335aefb655Srie extern void Dbg_util_scc_title(Lm_list *, int); 10342017c965SRod Evans extern void Dbg_util_str(Lm_list *, const char *); 10355aefb655Srie 10365aefb655Srie extern void Dbg_unused_file(Lm_list *, const char *, int, uint_t); 103710a4fa49Srie extern void Dbg_unused_lcinterface(Rt_map *, Rt_map *, int); 10389aa23310Srie extern void Dbg_unused_path(Lm_list *, const char *, uint_t, uint_t, 10399aa23310Srie const char *); 10405aefb655Srie extern void Dbg_unused_sec(Lm_list *, Is_desc *); 10415aefb655Srie extern void Dbg_unused_unref(Rt_map *, const char *); 10425aefb655Srie 10435aefb655Srie extern void Dbg_ver_avail_entry(Lm_list *, Ver_index *, const char *); 10445aefb655Srie extern void Dbg_ver_avail_title(Lm_list *, const char *); 10455aefb655Srie extern void Dbg_ver_def_title(Lm_list *, const char *); 10465aefb655Srie extern void Dbg_ver_desc_entry(Lm_list *, Ver_desc *); 104720272c2eSAli Bahrami extern void Dbg_ver_need_done(Lm_list *); 10485aefb655Srie extern void Dbg_ver_need_entry(Lm_list *, Half, const char *, 10495aefb655Srie const char *); 10505aefb655Srie extern void Dbg_ver_need_title(Lm_list *, const char *); 10515aefb655Srie extern void Dbg_ver_nointerface(Lm_list *, const char *); 10525aefb655Srie extern void Dbg_ver_symbol(Lm_list *, const char *); 10537c478bd9Sstevel@tonic-gate 10547c478bd9Sstevel@tonic-gate /* 10555aefb655Srie * Define Elf_*() interface flags. 10567c478bd9Sstevel@tonic-gate */ 10575aefb655Srie #define ELF_DBG_ELFDUMP 1 10585aefb655Srie #define ELF_DBG_RTLD 2 10595aefb655Srie #define ELF_DBG_LD 3 1060635216b6SRod Evans #define ELF_DBG_LD_ACT 4 10617c478bd9Sstevel@tonic-gate 10627c478bd9Sstevel@tonic-gate /* 10635aefb655Srie * Define generic Elf_*() interfaces. 10647c478bd9Sstevel@tonic-gate */ 10655aefb655Srie extern void Elf_syminfo_entry(Lm_list *, Word, Syminfo *, const char *, 10665aefb655Srie const char *); 10675aefb655Srie extern void Elf_syminfo_title(Lm_list *); 10687c478bd9Sstevel@tonic-gate 10695aefb655Srie /* 10705aefb655Srie * Establish ELF32 and ELF64 class Elf_*() interfaces. 10715aefb655Srie */ 10725aefb655Srie #if defined(_ELF64) 10735aefb655Srie 10745aefb655Srie #define Elf_cap_entry Elf64_cap_entry 10755aefb655Srie #define Elf_cap_title Elf64_cap_title 10765aefb655Srie 10775aefb655Srie #define Elf_demangle_name Elf64_demangle_name 10785aefb655Srie #define Elf_dyn_entry Elf64_dyn_entry 10793244bcaaSab196087 #define Elf_dyn_null_entry Elf64_dyn_null_entry 10805aefb655Srie #define Elf_dyn_title Elf64_dyn_title 10815aefb655Srie 10825aefb655Srie #define Elf_ehdr Elf64_ehdr 10835aefb655Srie 10845aefb655Srie #define Elf_got_entry Elf64_got_entry 10855aefb655Srie #define Elf_got_title Elf64_got_title 10865aefb655Srie 10875aefb655Srie #define Elf_reloc_apply_reg Elf64_reloc_apply_reg 10885aefb655Srie #define Elf_reloc_apply_val Elf64_reloc_apply_val 10895aefb655Srie #define Elf_reloc_entry_1 Elf64_reloc_entry_1 10905aefb655Srie #define Elf_reloc_entry_2 Elf64_reloc_entry_2 10915aefb655Srie #define Elf_reloc_title Elf64_reloc_title 10925aefb655Srie 10935aefb655Srie #define Elf_phdr Elf64_phdr 10945aefb655Srie 10955aefb655Srie #define Elf_shdr Elf64_shdr 10965aefb655Srie 10975aefb655Srie #define Elf_syms_table_entry Elf64_syms_table_entry 10985aefb655Srie #define Elf_syms_table_title Elf64_syms_table_title 10995aefb655Srie 11005aefb655Srie #define Elf_ver_def_title Elf64_ver_def_title 11015aefb655Srie #define Elf_ver_line_1 Elf64_ver_line_1 11025aefb655Srie #define Elf_ver_line_2 Elf64_ver_line_2 11035aefb655Srie #define Elf_ver_line_3 Elf64_ver_line_3 11045aefb655Srie #define Elf_ver_line_4 Elf64_ver_line_4 11055aefb655Srie #define Elf_ver_line_5 Elf64_ver_line_5 11065aefb655Srie #define Elf_ver_need_title Elf64_ver_need_title 11075aefb655Srie 11085aefb655Srie #else 11095aefb655Srie 11105aefb655Srie #define Elf_cap_entry Elf32_cap_entry 11115aefb655Srie #define Elf_cap_title Elf32_cap_title 11125aefb655Srie 11135aefb655Srie #define Elf_demangle_name Elf32_demangle_name 11145aefb655Srie #define Elf_dyn_entry Elf32_dyn_entry 11153244bcaaSab196087 #define Elf_dyn_null_entry Elf32_dyn_null_entry 11165aefb655Srie #define Elf_dyn_title Elf32_dyn_title 11175aefb655Srie 11185aefb655Srie #define Elf_ehdr Elf32_ehdr 11195aefb655Srie 11205aefb655Srie #define Elf_got_entry Elf32_got_entry 11215aefb655Srie #define Elf_got_title Elf32_got_title 11225aefb655Srie 11235aefb655Srie #define Elf_reloc_apply_reg Elf32_reloc_apply_reg 11245aefb655Srie #define Elf_reloc_apply_val Elf32_reloc_apply_val 11255aefb655Srie #define Elf_reloc_entry_1 Elf32_reloc_entry_1 11265aefb655Srie #define Elf_reloc_entry_2 Elf32_reloc_entry_2 11275aefb655Srie #define Elf_reloc_title Elf32_reloc_title 11285aefb655Srie 11295aefb655Srie #define Elf_phdr Elf32_phdr 11305aefb655Srie 11315aefb655Srie #define Elf_shdr Elf32_shdr 11325aefb655Srie 11335aefb655Srie #define Elf_syms_table_entry Elf32_syms_table_entry 11345aefb655Srie #define Elf_syms_table_title Elf32_syms_table_title 11355aefb655Srie 11365aefb655Srie #define Elf_ver_def_title Elf32_ver_def_title 11375aefb655Srie #define Elf_ver_line_1 Elf32_ver_line_1 11385aefb655Srie #define Elf_ver_line_2 Elf32_ver_line_2 11395aefb655Srie #define Elf_ver_line_3 Elf32_ver_line_3 11405aefb655Srie #define Elf_ver_line_4 Elf32_ver_line_4 11415aefb655Srie #define Elf_ver_line_5 Elf32_ver_line_5 11425aefb655Srie #define Elf_ver_need_title Elf32_ver_need_title 11435aefb655Srie 11445aefb655Srie #endif 11455aefb655Srie 114608278a5eSRod Evans extern void Elf_cap_entry(Lm_list *, Cap *, int, const char *, size_t, 114708278a5eSRod Evans Half); 11485aefb655Srie extern void Elf_cap_title(Lm_list *); 11495aefb655Srie 11505aefb655Srie extern const char \ 11515aefb655Srie *Elf_demangle_name(const char *); 11524f680cc6SAli Bahrami extern void Elf_dyn_entry(Lm_list *, Dyn *, int, const char *, 11534f680cc6SAli Bahrami uchar_t, Half); 11543244bcaaSab196087 extern void Elf_dyn_null_entry(Lm_list *, Dyn *, int, int); 11555aefb655Srie extern void Elf_dyn_title(Lm_list *); 11565aefb655Srie 11575aefb655Srie extern void Elf_ehdr(Lm_list *, Ehdr *, Shdr *); 11585aefb655Srie 1159ba2be530Sab196087 extern void Elf_got_entry(Lm_list *, Sword, Addr, Xword, Half, 1160ba2be530Sab196087 uchar_t, uchar_t, Word, void *, const char *); 11615aefb655Srie extern void Elf_got_title(Lm_list *); 11625aefb655Srie 11634f680cc6SAli Bahrami extern void Elf_phdr(Lm_list *, uchar_t, Half, Phdr *); 11645aefb655Srie 11655aefb655Srie extern void Elf_reloc_apply_val(Lm_list *, int, Xword, Xword); 11665aefb655Srie extern void Elf_reloc_apply_reg(Lm_list *, int, Half, Xword, Xword); 11675aefb655Srie extern void Elf_reloc_entry_1(Lm_list *, int, const char *, Half, Word, 11685aefb655Srie void *, const char *, const char *, const char *); 11695aefb655Srie extern void Elf_reloc_entry_2(Lm_list *, int, const char *, Word, 11705aefb655Srie const char *, Off, Sxword, const char *, const char *, 11717c478bd9Sstevel@tonic-gate const char *); 11725aefb655Srie extern void Elf_reloc_title(Lm_list *, int, Word); 11735aefb655Srie 11744f680cc6SAli Bahrami extern void Elf_shdr(Lm_list *, uchar_t, Half, Shdr *); 11755aefb655Srie 11764f680cc6SAli Bahrami extern void Elf_syms_table_entry(Lm_list *, int, const char *, uchar_t, 11774f680cc6SAli Bahrami Half, Sym *, Versym, int, const char *, const char *); 11785aefb655Srie extern void Elf_syms_table_title(Lm_list *, int); 11795aefb655Srie 11805aefb655Srie extern void Elf_ver_def_title(Lm_list *); 11815aefb655Srie extern void Elf_ver_line_1(Lm_list *, const char *, const char *, 11827c478bd9Sstevel@tonic-gate const char *, const char *); 11835aefb655Srie extern void Elf_ver_line_2(Lm_list *, const char *, const char *); 11845aefb655Srie extern void Elf_ver_line_3(Lm_list *, const char *, const char *, 11857c478bd9Sstevel@tonic-gate const char *); 11865aefb655Srie extern void Elf_ver_line_4(Lm_list *, const char *); 11875aefb655Srie extern void Elf_ver_line_5(Lm_list *, const char *, const char *); 1188d840867fSab196087 extern void Elf_ver_need_title(Lm_list *, int); 11897c478bd9Sstevel@tonic-gate 11903244bcaaSab196087 11917c478bd9Sstevel@tonic-gate #ifdef __cplusplus 11927c478bd9Sstevel@tonic-gate } 11937c478bd9Sstevel@tonic-gate #endif 11947c478bd9Sstevel@tonic-gate 11957c478bd9Sstevel@tonic-gate #endif /* _DEBUG_H */ 1196