1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9 * or http://www.opensolaris.org/os/licensing. 10 * See the License for the specific language governing permissions 11 * and limitations under the License. 12 * 13 * When distributing Covered Code, include this CDDL HEADER in each 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15 * If applicable, add the following below this CDDL HEADER, with the 16 * fields enclosed by brackets "[]" replaced with your own identifying 17 * information: Portions Copyright [yyyy] [name of copyright owner] 18 19 * CDDL HEADER END 20 */ 21/* LINTLIBRARY */ 22/* PROTOLIB1 */ 23 24/* 25 * Copyright 2010 Sun Microsystems, Inc. All rights reserved. 26 * Use is subject to license terms. 27 */ 28 29#include <sys/types.h> 30#include <sys/auxv.h> 31#include <debug.h> 32 33int Dbg_setup(dbg_setup_caller_t, const char *, Dbg_desc *, const char **); 34const char * 35 Dbg_demangle_name(const char *); 36 37void Dbg_args_file(Lm_list *, int, char *); 38void Dbg_args_option(Lm_list *, int, int, char *); 39void Dbg_args_str2chr(Lm_list *, int, const char *, int); 40void Dbg_args_Wldel(Lm_list *, int, const char *); 41void Dbg_audit_ignore(Rt_map *); 42void Dbg_audit_interface(Lm_list *, const char *, const char *); 43void Dbg_audit_lib(Lm_list *, const char *); 44void Dbg_audit_object(Lm_list *, const char *, const char *); 45void Dbg_audit_symval(Lm_list *, const char *, const char *, const char *, 46 Addr, Addr); 47void Dbg_audit_skip(Lm_list *, const char *, const char *); 48void Dbg_audit_terminate(Lm_list *, const char *); 49void Dbg_audit_version(Lm_list *, const char *, ulong_t); 50 51void Dbg_basic_collect(Lm_list *); 52void Dbg_basic_create(Lm_list *); 53void Dbg_basic_files(Lm_list *); 54void Dbg_basic_finish(Lm_list *); 55void Dbg_basic_options(Lm_list *); 56void Dbg_basic_relocate(Lm_list *); 57void Dbg_basic_validate(Lm_list *); 58 59void Dbg_tls_modactivity(Lm_list *, void *, uint_t); 60void Dbg_tls_static_block(Lm_list *, void *, ulong_t, ulong_t); 61void Dbg_tls_static_resv(Rt_map *, ulong_t, ulong_t); 62 63void Dbg32_bind_global(Rt_map *, Elf32_Addr, Elf32_Off, Elf32_Word, 64 Pltbindtype, Rt_map *, Elf32_Addr, Elf32_Off, const char *, uint_t); 65void Dbg64_bind_global(Rt_map *, Elf64_Addr, Elf64_Off, Elf64_Xword, 66 Pltbindtype, Rt_map *, Elf64_Addr, Elf64_Off, const char *, uint_t); 67void Dbg64_bind_pltpad_to(Rt_map *, Addr, const char *, const char *); 68void Dbg64_bind_pltpad_from(Rt_map *, Addr, const char *); 69void Dbg32_bind_reject(Rt_map *, Rt_map *, const char *, int); 70void Dbg64_bind_reject(Rt_map *, Rt_map *, const char *, int); 71void Dbg32_bind_weak(Rt_map *, Elf32_Addr, Elf32_Addr, const char *); 72void Dbg64_bind_weak(Rt_map *, Elf64_Addr, Elf64_Addr, const char *); 73 74void Dbg32_cap_hw_candidate(Lm_list *, const char *); 75void Dbg64_cap_hw_candidate(Lm_list *, const char *); 76void Dbg32_cap_hw_filter(Lm_list *, const char *, Rt_map *); 77void Dbg64_cap_hw_filter(Lm_list *, const char *, Rt_map *); 78void Dbg32_cap_mapfile(Lm_list *, Elf32_Word, Elf32_Word, Elf32_Half); 79void Dbg64_cap_mapfile(Lm_list *, Elf64_Xword, Elf64_Xword, Elf64_Half); 80void Dbg32_cap_sec_entry(Lm_list *, uint_t, Elf32_Word, Elf32_Word, 81 Elf32_Half); 82void Dbg64_cap_sec_entry(Lm_list *, uint_t, Elf64_Xword, Elf64_Xword, 83 Elf64_Half); 84void Dbg32_cap_sec_title(Lm_list *, const char *); 85void Dbg64_cap_sec_title(Lm_list *, const char *); 86void Dbg32_cap_val_hw1(Lm_list *, Elf32_Word, Elf32_Half); 87void Dbg64_cap_val_hw1(Lm_list *, Elf64_Xword, Elf64_Half); 88 89void Dbg32_cb_iphdr_callback(Lm_list *, struct dl_phdr_info *); 90void Dbg64_cb_iphdr_callback(Lm_list *, struct dl_phdr_info *); 91void Dbg32_cb_iphdr_enter(Lm_list *, u_longlong_t, u_longlong_t); 92void Dbg64_cb_iphdr_enter(Lm_list *, u_longlong_t, u_longlong_t); 93void Dbg32_cb_iphdr_mapchange(Lm_list *, u_longlong_t, u_longlong_t); 94void Dbg64_cb_iphdr_mapchange(Lm_list *, u_longlong_t, u_longlong_t); 95void Dbg32_cb_iphdr_unmap_ret(Lm_list *); 96void Dbg64_cb_iphdr_unmap_ret(Lm_list *); 97 98void Dbg32_ent_print(Lm_list *, uchar_t, Elf32_Half, Alist *, Boolean); 99void Dbg64_ent_print(Lm_list *, uchar_t, Elf64_Half, Alist *, Boolean); 100 101void Dbg32_file_analyze(Rt_map *); 102void Dbg64_file_analyze64(Rt_map *); 103void Dbg32_file_aout(Lm_list *, const char *, Addr, size_t, const char *, 104 Aliste); 105void Dbg64_file_aout(Lm_list *, const char *, Addr, size_t, const char *, 106 Aliste); 107void Dbg32_file_archive(Lm_list *, const char *, int); 108void Dbg64_file_archive(Lm_list *, const char *, int); 109void Dbg32_file_bind_entry(Lm_list *, Bnd_desc *); 110void Dbg64_file_bind_entry(Lm_list *, Bnd_desc *); 111void Dbg32_file_bindings(Rt_map *, int); 112void Dbg64_file_bindings(Rt_map *, int); 113void Dbg32_file_bindings_done(Lm_list *); 114void Dbg64_file_bindings_done(Lm_list *); 115void Dbg32_file_config_dis(Lm_list *, const char *, int); 116void Dbg64_file_config_dis(Lm_list *, const char *, int); 117void Dbg32_file_config_obj(Lm_list *, const char *, const char *, 118 const char *); 119void Dbg64_file_config_obj(Lm_list *, const char *, const char *, 120 const char *); 121void Dbg32_file_cntl(Lm_list *, Aliste, Aliste); 122void Dbg64_file_cntl(Lm_list *, Aliste, Aliste); 123void Dbg32_file_cleanup(Lm_list *, const char *, Aliste); 124void Dbg64_file_cleanup(Lm_list *, const char *, Aliste); 125void Dbg32_file_del_rescan(Lm_list *); 126void Dbg64_file_del_rescan(Lm_list *); 127void Dbg32_file_delete(Rt_map *); 128void Dbg64_file_delete(Rt_map *); 129void Dbg32_file_dlclose(Lm_list *, const char *, int); 130void Dbg64_file_dlclose(Lm_list *, const char *, int); 131void Dbg32_file_dldump(Rt_map *, const char *, int); 132void Dbg64_file_dldump(Rt_map *, const char *, int); 133void Dbg32_file_dlopen(Rt_map *, const char *, int *, int); 134void Dbg64_file_dlopen(Rt_map *, const char *, int *, int); 135void Dbg32_file_elf(Lm_list *, const char *, Addr, size_t, const char *, 136 Aliste); 137void Dbg64_file_elf(Lm_list *, const char *, Addr, size_t, const char *, 138 Aliste); 139void Dbg32_file_filtee(Lm_list *, const char *, const char *, int); 140void Dbg64_file_filtee(Lm_list *, const char *, const char *, int); 141void Dbg32_file_filter(Lm_list *, const char *, const char *, int); 142void Dbg64_file_filter(Lm_list *, const char *, const char *, int); 143void Dbg64_file_fixname(Lm_list *, const char *, const char *); 144void Dbg32_file_fixname(Lm_list *, const char *, const char *); 145void Dbg32_file_hdl_action(Grp_hdl *, Rt_map *, int, uint_t); 146void Dbg64_file_hdl_action(Grp_hdl *, Rt_map *, int, uint_t); 147void Dbg32_file_hdl_collect(Grp_hdl *, const char *); 148void Dbg64_file_hdl_collect(Grp_hdl *, const char *); 149void Dbg32_file_hdl_title(int); 150void Dbg64_file_hdl_title(int); 151void Dbg64_file_lazyload(Rt_map *, const char *, const char *); 152void Dbg32_file_lazyload(Rt_map *, const char *, const char *); 153void Dbg32_file_ldso(Rt_map *, char **, auxv_t *, const char *, Aliste); 154void Dbg64_file_ldso(Rt_map *, char **, auxv_t *, const char *, Aliste); 155void Dbg32_file_mmapobj(Lm_list *, const char *, mmapobj_result_t *, uint_t); 156void Dbg64_file_mmapobj(Lm_list *, const char *, mmapobj_result_t *, uint_t); 157void Dbg32_file_mode_promote(Rt_map *, int); 158void Dbg64_file_mode_promote(Rt_map *, int); 159void Dbg32_file_modified(Lm_list *, const char *, const char *, const char *, 160 int, int, Elf *, Elf *); 161void Dbg64_file_modified(Lm_list *, const char *, const char *, const char *, 162 int, int, Elf *, Elf *); 163void Dbg32_file_needed(Rt_map *, const char *); 164void Dbg64_file_needed(Rt_map *, const char *); 165void Dbg32_file_output(Ofl_desc *); 166void Dbg64_file_output64(Ofl_desc *); 167void Dbg32_file_preload(Lm_list *, const char *); 168void Dbg64_file_preload(Lm_list *, const char *); 169void Dbg32_file_prot(Rt_map *, int); 170void Dbg64_file_prot(Rt_map *, int); 171void Dbg32_file_rejected(Lm_list *, Rej_desc *, Elf32_Half); 172void Dbg64_file_rejected(Lm_list *, Rej_desc *, Elf32_Half); 173void Dbg32_file_reuse(Lm_list *, const char *, const char *); 174void Dbg64_file_reuse(Lm_list *, const char *, const char *); 175void Dbg32_file_skip(Lm_list *, const char *, const char *); 176void Dbg64_file_skip(Lm_list *, const char *, const char *); 177 178void Dbg32_got_display(Ofl_desc *, Elf32_Off, int, 179 Elf32_Word, size_t m_got_entsize); 180void Dbg64_got_display(Ofl_desc *, Elf64_Off, int, 181 Elf64_Word, size_t m_got_entsize); 182 183void Dbg32_libs_audit(Lm_list *, const char *, const char *); 184void Dbg64_libs_audit(Lm_list *, const char *, const char *); 185void Dbg32_libs_find(Lm_list *, const char *); 186void Dbg64_libs_find(Lm_list *, const char *); 187void Dbg32_libs_found(Lm_list *, const char *, int); 188void Dbg64_libs_found(Lm_list *, const char *, int); 189void Dbg32_libs_insecure(Lm_list *, const char *, int); 190void Dbg64_libs_insecure(Lm_list *, const char *, int); 191void Dbg32_libs_init(Lm_list *, APlist *, APlist *); 192void Dbg64_libs_init(Lm_list *, APlist *, APlist *); 193void Dbg32_libs_l(Lm_list *, const char *, const char *); 194void Dbg64_libs_l(Lm_list *, const char *, const char *); 195void Dbg32_libs_path(Lm_list *, const char *, uint_t, const char *); 196void Dbg64_libs_path(Lm_list *, const char *, uint_t, const char *); 197void Dbg32_libs_req(Lm_list *, const char *, const char *, const char *); 198void Dbg64_libs_req(Lm_list *, const char *, const char *, const char *); 199void Dbg32_libs_update(Lm_list *, APlist *, APlist *); 200void Dbg64_libs_update(Lm_list *, APlist *, APlist *); 201void Dbg32_libs_yp(Lm_list *, const char *); 202void Dbg64_libs_yp(Lm_list *, const char *); 203void Dbg32_libs_ylu(Lm_list *, const char *, const char *, int); 204void Dbg64_libs_ylu(Lm_list *, const char *, const char *, int); 205 206void Dbg32_map_dash(Lm_list *, const char *); 207void Dbg64_map_dash(Lm_list *, const char *); 208void Dbg32_map_ent(Lm_list *, Boolean, Ent_desc *, Ofl_desc *); 209void Dbg64_map_ent(Lm_list *, Boolean, Ent_desc *, Ofl_desc *); 210void Dbg32_map_parse(Lm_list *, const char *); 211void Dbg64_map_parse(Lm_list *, const char *); 212void Dbg32_map_pipe(Lm_list *, Sg_desc *, const char *, Elf32_Word); 213void Dbg64_map_pipe(Lm_list *, Sg_desc *, const char *, Elf64_Word); 214void Dbg32_map_set_atsign(Boolean); 215void Dbg64_map_set_atsign(Boolean); 216void Dbg32_map_seg(Ofl_desc *, int, Sg_desc *); 217void Dbg64_map_seg(Ofl_desc *, int, Sg_desc *); 218void Dbg32_map_set_equal(Boolean); 219void Dbg64_map_set_equal(Boolean); 220void Dbg32_map_size_new(Lm_list *, const char *); 221void Dbg64_map_size_new(Lm_list *, const char *); 222void Dbg32_map_size_old(Ofl_desc *, Sym_desc *); 223void Dbg64_map_size_old(Ofl_desc *, Sym_desc *); 224void Dbg32_map_sort(Lm_list *); 225void Dbg64_map_sort(Lm_list *); 226void Dbg32_map_sort_seg(Lm_list *, Sg_desc *, int); 227void Dbg64_map_sort_seg(Lm_list *, Sg_desc *, int); 228void Dbg32_map_symbol(Ofl_desc *, Sym_desc *); 229void Dbg64_map_symbol(Ofl_desc *, Sym_desc *); 230void Dbg32_map_version(Lm_list *, const char *, const char *, int); 231void Dbg64_map_version(Lm_list *, const char *, const char *, int); 232 233void Dbg32_move_adjexpandreloc(Lm_list *, Elf32_Word, const char *); 234void Dbg64_move_adjexpandreloc(Lm_list *, Elf64_Xword, const char *); 235void Dbg32_move_adjmovereloc(Lm_list *, Elf32_Word, Elf32_Word, 236 const char *); 237void Dbg64_move_adjmovereloc(Lm_list *, Elf64_Xword, Elf64_Xword, 238 const char *); 239void Dbg32_move_bad(Lm_list *, ulong_t, const char *, Addr); 240void Dbg64_move_bad(Lm_list *, ulong_t, const char *, Addr); 241void Dbg32_move_data(Rt_map *); 242void Dbg64_move_data(Rt_map *); 243void Dbg32_move_entry1(Lm_list *, int, Move *, Sym_desc *); 244void Dbg64_move_entry1(Lm_list *, int, Move *, Sym_desc *); 245void Dbg32_move_entry2(Lm_list *, Elf32_Move *, Elf32_Word, const char *); 246void Dbg64_move_entry2(Lm_list *, Elf64_Move *, Elf64_Word, const char *); 247void Dbg32_move_expand(Lm_list *, Elf32_Move *, Elf32_Addr); 248void Dbg64_move_expand(Lm_list *, Elf64_Move *, Elf64_Addr); 249void Dbg32_move_input(Lm_list *, const char *); 250void Dbg64_move_input(Lm_list *, const char *); 251void Dbg32_move_outmove(Lm_list *, const char *); 252void Dbg64_move_outmove(Lm_list *, const char *); 253void Dbg32_move_outsctadj(Lm_list *, Sym_desc *); 254void Dbg64_move_outsctadj(Lm_list *, Sym_desc *); 255void Dbg32_move_parexpn(Lm_list *, const char *, const char *); 256void Dbg64_move_parexpn(Lm_list *, const char *, const char *); 257 258void Dbg32_reloc_apply_reg(Lm_list *, int, Elf32_Half, Elf32_Word, 259 Elf32_Word); 260void Dbg64_reloc_apply_reg(Lm_list *, int, Elf64_Half, Elf64_Xword, 261 Elf64_Xword); 262void Dbg32_reloc_apply_val(Lm_list *, int, Elf32_Word, Elf32_Word); 263void Dbg64_reloc_apply_val(Lm_list *, int, Elf64_Xword, Elf64_Xword); 264void Dbg32_reloc_ars_entry(Lm_list *, int, Elf32_Word, Elf32_Half, Rel_desc *); 265void Dbg64_reloc_ars_entry(Lm_list *, int, Elf64_Word, Elf64_Half, Rel_desc *); 266void Dbg32_reloc_copy(Rt_map *, Rt_map *, const char *, int); 267void Dbg64_reloc_copy(Rt_map *, Rt_map *, const char *, int); 268void Dbg32_reloc_discard(Lm_list *, Elf32_Half, Rel_desc *); 269void Dbg64_reloc_discard(Lm_list *, Elf64_Half, Rel_desc *); 270void Dbg32_reloc_doact(Lm_list *, int, Elf32_Half, Elf32_Word, Elf32_Word, 271 Elf32_Word, Elf32_Word, const char *, Os_desc *); 272void Dbg64_reloc_doact(Lm_list *, int, Elf64_Half, Elf64_Word, Elf64_Word, 273 Elf64_Xword, Elf64_Xword, const char *, Os_desc *); 274void Dbg32_reloc_doact_title(Lm_list *); 275void Dbg64_reloc_doact_title(Lm_list *); 276void Dbg32_reloc_dooutrel(Lm_list *, Elf32_Word); 277void Dbg64_reloc_dooutrel(Lm_list *, Elf64_Word); 278void Dbg32_reloc_entry(Lm_list *, const char *, Elf32_Half, Elf32_Word, 279 void *, const char *, const char *, const char *); 280void Dbg64_reloc_entry(Lm_list *, const char *, Elf64_Half, Elf64_Word, 281 void *, const char *, const char *, const char *); 282void Dbg32_reloc_error(Lm_list *, int, Elf32_Half, Elf32_Word, void *, 283 const char *); 284void Dbg64_reloc_error(Lm_list *, int, Elf64_Half, Elf64_Word, void *, 285 const char *); 286void Dbg32_reloc_generate(Lm_list *, Os_desc *, Elf32_Word); 287void Dbg64_reloc_generate(Lm_list *, Os_desc *, Elf64_Word); 288void Dbg32_reloc_in(Lm_list *, int, Elf32_Half, Elf32_Word, void *, 289 const char *, Elf32_Word, const char *); 290void Dbg64_reloc_in(Lm_list *, int, Elf64_Half, Elf64_Word, void *, 291 const char *, Elf64_Word, const char *); 292void Dbg32_reloc_ors_entry(Lm_list *, int, Elf32_Word, Elf32_Half, Rel_desc *); 293void Dbg64_reloc_ors_entry(Lm_list *, int, Elf64_Word, Elf64_Half, Rel_desc *); 294void Dbg32_reloc_out(Ofl_desc *, int, Elf32_Word, void *, const char *, 295 const char *); 296void Dbg64_reloc_out(Ofl_desc *, int, Elf64_Word, void *, const char *, 297 const char *); 298void Dbg32_reloc_proc(Lm_list *, Os_desc *, Is_desc *, Is_desc *); 299void Dbg64_reloc_proc(Lm_list *, Os_desc *, Is_desc *, Is_desc *); 300void Dbg32_reloc_run(Rt_map *, uint_t, int, int); 301void Dbg64_reloc_run(Rt_map *, uint_t, int, int); 302void Dbg32_reloc_transition(Lm_list *, Elf32_Half, Elf32_Word, Rel_desc *); 303void Dbg64_reloc_transition(Lm_list *, Elf64_Half, Elf64_Word, Rel_desc *); 304 305void Dbg32_sec_added(Lm_list *, Os_desc *, Sg_desc *); 306void Dbg64_sec_added(Lm_list *, Os_desc *, Sg_desc *); 307void Dbg32_sec_backing(Lm_list *); 308void Dbg64_sec_backing(Lm_list *); 309void Dbg32_sec_created(Lm_list *, Os_desc *, Sg_desc *); 310void Dbg64_sec_created(Lm_list *, Os_desc *, Sg_desc *); 311void Dbg32_sec_discarded(Lm_list *, Is_desc *, Is_desc *); 312void Dbg64_sec_discarded(Lm_list *, Is_desc *, Is_desc *); 313void Dbg32_sec_group(Lm_list *, Is_desc *, Group_desc *); 314void Dbg64_sec_group(Lm_list *, Is_desc *, Group_desc *); 315void Dbg32_sec_gnu_comdat(Lm_list *, Is_desc *, Boolean, Boolean); 316void Dbg64_sec_gnu_comdat(Lm_list *, Is_desc *, Boolean, Boolean); 317void Dbg32_sec_in(Lm_list *, Is_desc *); 318void Dbg64_sec_in(Lm_list *, Is_desc *); 319void Dbg32_sec_order_error(Lm_list *, Ifl_desc *, Elf32_Word, int); 320void Dbg64_sec_order_error(Lm_list *, Ifl_desc *, Elf64_Word, int); 321void Dbg32_sec_order_list(Ofl_desc *, int); 322void Dbg64_sec_order_list(Ofl_desc *, int); 323void Dbg32_sec_redirected(Lm_list *, Is_desc *, const char *); 324void Dbg64_sec_redirected(Lm_list *, Is_desc *, const char *); 325void Dbg32_sec_strtab(Lm_list *, Os_desc *, Str_tbl *); 326void Dbg64_sec_strtab(Lm_list *, Os_desc *, Str_tbl *); 327 328void Dbg32_seg_desc_entry(Lm_list *, uchar_t, Elf32_Half, int, Sg_desc *); 329void Dbg64_seg_desc_entry(Lm_list *, uchar_t, Elf64_Half, int, Sg_desc *); 330void Dbg32_seg_entry(Ofl_desc *, int, Sg_desc *); 331void Dbg64_seg_entry(Ofl_desc *, int, Sg_desc *); 332void Dbg32_seg_list(Lm_list *, uchar_t, Elf32_Half, APlist *); 333void Dbg64_seg_list(Lm_list *, uchar_t, Elf64_Half, APlist *); 334void Dbg32_seg_os(Ofl_desc *, Os_desc *, int); 335void Dbg64_seg_os(Ofl_desc *, Os_desc *, int); 336void Dbg32_seg_title(Lm_list *); 337void Dbg64_seg_title(Lm_list *); 338 339void Dbg32_shdr_modified(Lm_list *, const char *, uchar_t, Half, 340 Elf32_Word, Shdr *, Shdr *, const char *); 341void Dbg64_shdr_modified(Lm_list *, const char *, uchar_t, Half, 342 Elf64_Word, Shdr *, Shdr *, const char *); 343 344void Dbg32_statistics_ar(Ofl_desc *); 345void Dbg64_statistics_ar(Ofl_desc *); 346void Dbg32_statistics_ld(Ofl_desc *); 347void Dbg64_statistics_ld(Ofl_desc *); 348 349void Dbg32_support_action(Lm_list *, const char *, const char *, Support_ndx, 350 const char *); 351void Dbg64_support_action(Lm_list *, const char *, const char *, Support_ndx, 352 const char *); 353void Dbg32_support_load(Lm_list *, const char *, const char *); 354void Dbg64_support_load(Lm_list *, const char *, const char *); 355void Dbg32_support_req(Lm_list *, const char *, int); 356void Dbg64_support_req(Lm_list *, const char *, int); 357 358void Dbg32_syminfo_entry(Lm_list *, Elf32_Word, Syminfo *, Sym *, const char *, 359 Dyn *); 360void Dbg64_syminfo_entry(Lm_list *, Elf64_Word, Syminfo *, Sym *, const char *, 361 Dyn *); 362void Dbg32_syminfo_title(Lm_list *); 363void Dbg64_syminfo_title(Lm_list *); 364 365void Dbg32_syms_ar_checking(Lm_list *, Xword, Elf_Arsym *, const char *); 366void Dbg64_syms_ar_checking(Lm_list *, Xword, Elf_Arsym *, const char *); 367void Dbg32_syms_ar_entry(Lm_list *, Xword, Elf_Arsym *); 368void Dbg64_syms_ar_entry(Lm_list *, Xword, Elf_Arsym *); 369void Dbg32_syms_ar_resolve(Lm_list *, Xword, Elf_Arsym *, const char *, int); 370void Dbg64_syms_ar_resolve(Lm_list *, Xword, Elf_Arsym *, const char *, int); 371void Dbg32_syms_ar_title(Lm_list *, const char *, int); 372void Dbg64_syms_ar_title(Lm_list *, const char *, int); 373void Dbg32_syms_created(Lm_list *, const char *); 374void Dbg64_syms_created(Lm_list *, const char *); 375void Dbg32_syms_discarded(Lm_list *, Sym_desc *); 376void Dbg64_syms_discarded(Lm_list *, Sym_desc *); 377void Dbg32_syms_dlsym(Rt_map *, const char *, int *, const char *, int); 378void Dbg64_syms_dlsym(Rt_map *, const char *, int *, const char *, int); 379void Dbg32_syms_entered(Ofl_desc *, Sym *, Sym_desc *); 380void Dbg64_syms_entered(Ofl_desc *, Sym *, Sym_desc *); 381void Dbg32_syms_entry(Lm_list *, Elf32_Word, Sym_desc *); 382void Dbg64_syms_entry(Lm_list *, Elf64_Word, Sym_desc *); 383void Dbg32_syms_global(Lm_list *, Elf32_Word, const char *); 384void Dbg64_syms_global(Lm_list *, Elf64_Word, const char *); 385void Dbg32_syms_ignore(Ofl_desc *, Sym_desc *); 386void Dbg64_syms_ignore(Ofl_desc *, Sym_desc *); 387void Dbg32_syms_lazy_rescan(Lm_list *, const char *); 388void Dbg64_syms_lazy_rescan(Lm_list *, const char *); 389void Dbg32_syms_lookup(Rt_map *, const char *, const char *); 390void Dbg64_syms_lookup(Rt_map *, const char *, const char *); 391void Dbg32_syms_lookup_aout(Lm_list *, const char *); 392void Dbg32_syms_new(Ofl_desc *, Sym *, Sym_desc *); 393void Dbg64_syms_new(Ofl_desc *, Sym *, Sym_desc *); 394void Dbg32_syms_old(Ofl_desc *, Sym_desc *); 395void Dbg64_syms_old(Ofl_desc *, Sym_desc *); 396void Dbg32_syms_process(Lm_list *, Ifl_desc *); 397void Dbg64_syms_process(Lm_list *, Ifl_desc *); 398void Dbg32_syms_reduce(Ofl_desc *, int, Sym_desc *, int, const char *); 399void Dbg64_syms_reduce(Ofl_desc *, int, Sym_desc *, int, const char *); 400void Dbg32_syms_reloc(Ofl_desc *, Sym_desc *); 401void Dbg64_syms_reloc(Ofl_desc *, Sym_desc *); 402void Dbg32_syms_resolved(Ofl_desc *, Sym_desc *); 403void Dbg64_syms_resolved(Ofl_desc *, Sym_desc *); 404void Dbg32_syms_resolving(Ofl_desc *, Elf32_Word, const char *, int, int, 405 Sym *, Sym *, Sym_desc *, Ifl_desc *); 406void Dbg64_syms_resolving(Ofl_desc *, Elf64_Word, const char *, int, int, 407 Sym *, Sym *, Sym_desc *, Ifl_desc *); 408void Dbg32_syms_sec_entry(Lm_list *, Elf32_Word, Sg_desc *, Os_desc *); 409void Dbg64_syms_sec_entry(Lm_list *, Elf64_Word, Sg_desc *, Os_desc *); 410void Dbg32_syms_sec_title(Lm_list *); 411void Dbg64_syms_sec_title(Lm_list *); 412void Dbg32_syms_spec_title(Lm_list *); 413void Dbg64_syms_spec_title(Lm_list *); 414void Dbg32_syms_updated(Ofl_desc *, Sym_desc *, const char *); 415void Dbg64_syms_updated(Ofl_desc *, Sym_desc *, const char *); 416void Dbg32_syms_up_title(Lm_list *); 417void Dbg64_syms_up_title(Lm_list *); 418void Dbg32_syms_wrap(Lm_list *, Elf32_Word, const char *, const char *); 419void Dbg64_syms_wrap(Lm_list *, Elf64_Word, const char *, const char *); 420 421void Dbg32_util_broadcast(Rt_map *); 422void Dbg64_util_broadcast(Rt_map *); 423void Dbg32_util_call_array(Rt_map *, void *, int, Elf32_Word); 424void Dbg64_util_call_array(Rt_map *, void *, int, Elf64_Word); 425void Dbg32_util_call_fini(Rt_map *); 426void Dbg64_util_call_fini(Rt_map *); 427void Dbg32_util_call_init(Rt_map *, int); 428void Dbg64_util_call_init(Rt_map *, int); 429void Dbg32_util_call_main(Rt_map *); 430void Dbg64_util_call_main(Rt_map *); 431void Dbg32_util_collect(Rt_map *, int, int); 432void Dbg64_util_collect(Rt_map *, int, int); 433void Dbg32_util_dbnotify(Lm_list *, rd_event_e, r_state_e); 434void Dbg64_util_dbnotify(Lm_list *, rd_event_e, r_state_e); 435void Dbg32_util_edge_in(Lm_list *, Rt_map *, uint_t, Rt_map *, int, int); 436void Dbg64_util_edge_in(Lm_list *, Rt_map *, uint_t, Rt_map *, int, int); 437void Dbg32_util_edge_out(Rt_map *, Rt_map *); 438void Dbg64_util_edge_out(Rt_map *, Rt_map *); 439void Dbg32_util_intoolate(Rt_map *); 440void Dbg64_util_intoolate(Rt_map *); 441void Dbg32_util_lcinterface(Rt_map *, int, char *); 442void Dbg64_util_lcinterface(Rt_map *, int, char *); 443void Dbg32_util_nl(Lm_list *, int); 444void Dbg64_util_nl(Lm_list *, int); 445void Dbg32_util_no_init(Rt_map *); 446void Dbg64_util_no_init(Rt_map *); 447void Dbg32_util_scc_entry(Rt_map *, uint_t); 448void Dbg64_util_scc_entry(Rt_map *, uint_t); 449void Dbg32_util_scc_title(Lm_list *, int); 450void Dbg64_util_scc_title(Lm_list *, int); 451void Dbg32_util_str(Lm_list *, const char *); 452void Dbg64_util_str(Lm_list *, const char *); 453void Dbg32_util_wait(Rt_map *, Rt_map *, int); 454void Dbg64_util_wait(Rt_map *, Rt_map *, int); 455 456void Dbg32_unused_file(Lm_list *, const char *, int, uint_t); 457void Dbg64_unused_file(Lm_list *, const char *, int, uint_t); 458void Dbg32_unused_lcinterface(Rt_map *, Rt_map *, int); 459void Dbg64_unused_lcinterface(Rt_map *, Rt_map *, int); 460void Dbg32_unused_path(Lm_list *, const char *, uint_t, uint_t, 461 const char *); 462void Dbg64_unused_path(Lm_list *, const char *, uint_t, uint_t, 463 const char *); 464void Dbg32_unused_sec(Lm_list *, Is_desc *); 465void Dbg64_unused_sec(Lm_list *, Is_desc *); 466void Dbg32_unused_unref(Rt_map *, const char *); 467void Dbg64_unused_unref(Rt_map *, const char *); 468 469void Dbg32_ver_need_done(Lm_list *); 470void Dbg64_ver_need_done(Lm_list *); 471void Dbg32_ver_need_entry(Lm_list *, Half, const char *, const char *); 472void Dbg64_ver_need_entry(Lm_list *, Half, const char *, const char *); 473void Dbg32_ver_need_title(Lm_list *, const char *); 474void Dbg64_ver_need_title(Lm_list *, const char *); 475 476const char *Elf_demangle_name(const char *); 477 478void Elf_syminfo_entry(Lm_list *, Word, Syminfo *, const char *, const char *); 479void Elf_syminfo_title(Lm_list *); 480void Elf_ver_def_title(Lm_list *); 481void Elf_ver_need_title(Lm_list *, int); 482void Elf_ver_line_1(Lm_list *, const char *, const char *, const char *, 483 const char *); 484void Elf_ver_line_2(Lm_list *, const char *, const char *); 485void Elf_ver_line_3(Lm_list *, const char *, const char *, const char *); 486void Elf_ver_line_4(Lm_list *, const char *); 487void Elf_ver_line_5(Lm_list *, const char *, const char *); 488 489void Elf64_cap_entry(Lm_list *, Elf64_Cap *, int ndx, Elf64_Half); 490void Elf32_cap_entry(Lm_list *, Elf32_Cap *, int ndx, Elf32_Half); 491void Elf64_cap_title(Lm_list *); 492void Elf32_cap_title(Lm_list *); 493 494void Elf64_dyn_entry(Lm_list *, Elf64_Dyn *, int, const char *, uchar_t, 495 Elf64_Half); 496void Elf32_dyn_entry(Lm_list *, Elf32_Dyn *, int, const char *, uchar_t, 497 Elf32_Half); 498void Elf64_dyn_null_entry(Lm_list *, Elf64_Dyn *, int, int); 499void Elf32_dyn_null_entry(Lm_list *, Elf32_Dyn *, int, int); 500void Elf64_dyn_title(Lm_list *); 501void Elf32_dyn_title(Lm_list *); 502 503void Elf64_ehdr(Lm_list *, Elf64_Ehdr *, Elf64_Shdr *); 504void Elf32_ehdr(Lm_list *, Elf32_Ehdr *, Elf32_Shdr *); 505 506void Elf64_got_entry(Lm_list *, Elf64_Sword, Elf64_Addr, Elf64_Xword, 507 Elf64_Half, uchar_t, uchar_t, Elf64_Word, void *, const char *); 508void Elf32_got_entry(Lm_list *, Elf32_Sword, Elf32_Addr, Elf32_Word, 509 Elf32_Half, uchar_t, uchar_t, Elf32_Word, void *, const char *); 510void Elf64_got_title(Lm_list *); 511void Elf32_got_title(Lm_list *); 512 513void Elf64_phdr(Lm_list *, uchar_t, Elf64_Half, Elf64_Phdr *); 514void Elf32_phdr(Lm_list *, uchar_t, Elf32_Half, Elf32_Phdr *); 515 516void Elf64_reloc_apply_reg(Lm_list *, int, Elf64_Half, Elf64_Xword, 517 Elf64_Xword); 518void Elf32_reloc_apply_reg(Lm_list *, int, Elf32_Half, Elf32_Word, 519 Elf32_Word); 520void Elf64_reloc_apply_val(Lm_list *, int, Elf64_Xword, Elf64_Xword); 521void Elf32_reloc_apply_val(Lm_list *, int, Elf32_Word, Elf32_Word); 522void Elf64_reloc_entry_1(Lm_list *, int, const char *, Elf64_Half, Word, void *, 523 const char *, const char *, const char *); 524void Elf32_reloc_entry_1(Lm_list *, int, const char *, Elf32_Half, Word, void *, 525 const char *, const char *, const char *); 526void Elf64_reloc_entry_2(Lm_list *, int, const char *, Word, const char *, 527 Elf64_Addr, Elf64_Sxword, const char *, const char *, const char *); 528void Elf32_reloc_entry_2(Lm_list *, int, const char *, Word, const char *, 529 Elf32_Addr, Elf32_Sword, const char *, const char *, const char *); 530void Elf64_reloc_title(Lm_list *, int, Word); 531void Elf32_reloc_title(Lm_list *, int, Word); 532 533void Elf64_shdr(Lm_list *, uchar_t, Elf64_Half, Elf64_Shdr *); 534void Elf32_shdr(Lm_list *, uchar_t, Elf32_Half, Elf32_Shdr *); 535 536void Elf64_syms_table_entry(Lm_list *, int, const char *, uchar_t, Elf64_Half, 537 Elf64_Sym *, Elf64_Versym, int, const char *, const char *); 538void Elf32_syms_table_entry(Lm_list *, int, const char *, uchar_t, Elf32_Half, 539 Elf32_Sym *, Elf32_Versym, int, const char *, const char *); 540void Elf64_syms_table_title(Lm_list *, int); 541void Elf32_syms_table_title(Lm_list *, int); 542