rtld.msg revision 9577:dca915fd85d3
155714Skris# 2160814Ssimon# CDDL HEADER START 3160814Ssimon# 455714Skris# The contents of this file are subject to the terms of the 555714Skris# Common Development and Distribution License (the "License"). 655714Skris# You may not use this file except in compliance with the License. 7238405Sjkim# 855714Skris# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9194206Ssimon# or http://www.opensolaris.org/os/licensing. 10194206Ssimon# See the License for the specific language governing permissions 11194206Ssimon# and limitations under the License. 12194206Ssimon# 13194206Ssimon# When distributing Covered Code, include this CDDL HEADER in each 14194206Ssimon# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15194206Ssimon# If applicable, add the following below this CDDL HEADER, with the 16194206Ssimon# fields enclosed by brackets "[]" replaced with your own identifying 17194206Ssimon# information: Portions Copyright [yyyy] [name of copyright owner] 18194206Ssimon# 1955714Skris# CDDL HEADER END 20160814Ssimon# 21160814Ssimon 22194206Ssimon# 2355714Skris# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 24160814Ssimon# Use is subject to license terms. 25160814Ssimon# 26205128Ssimon 27205128Ssimon@ _START_ 28205128Ssimon 29205128Ssimon@ _END_ 30264331Sjkim 31264331Sjkim# 3255714Skris# Misc. Strings 3355714Skris# 34160814Ssimon@ MSG_STR_NAME "NAME" 35160814Ssimon@ MSG_STR_PATHNAME "PATHNAME" 36160814Ssimon@ MSG_STR_REFNAME "REFNAME" 37160814Ssimon@ MSG_STR_RPATH "RPATH" 38160814Ssimon@ MSG_STR_DASHES "----------------------------------------------\n" 39160814Ssimon@ MSG_STR_LDSO1 "ld.so.1" 40160814Ssimon@ MSG_STR_DYNLMLIST "dynlm_list" 41160814Ssimon@ MSG_STR_ALIST "Alist" 42160814Ssimon@ MSG_STR_APLIST "APlist" 43160814Ssimon@ MSG_STR_EMPTY "" 44160814Ssimon@ MSG_STR_ORPHANED "<orphaned>" 45160814Ssimon@ MSG_STR_SETENV "setenv" 46160814Ssimon 47238405Sjkim# 48215697Ssimon# mdb_dcmd_t.dc_usage's 49194206Ssimon# 50194206Ssimon@ MSG_USG_ADDREQ ":" # Address required 51194206Ssimon@ MSG_USG_ADDREQ_V ":[-v]" # Address required plus -v 52160814Ssimon@ MSG_USG_ADDOPT_V "?[-v]" # Address optional plus -v 53238405Sjkim@ MSG_USG_SETENV "name[=value]" # Setenv argument 54238405Sjkim 55238405Sjkim# 56238405Sjkim# mdb_walker.walk_descr's 57238405Sjkim# 58238405Sjkim@ MSG_WWD_RTMAP "Walk a List of Rt_maps" 59238405Sjkim 60238405Sjkim# 61238405Sjkim# Flag Strings 62238405Sjkim# 63238405Sjkim@ MSG_FLG_ISMAIN "IS-MAIN" 64238405Sjkim@ MSG_FLG_IMGALLOC "IMAGE-ALLOCATED" 65238405Sjkim@ MSG_FLG_RELOCED "RELOCED" 66238405Sjkim@ MSG_FLG_SETGROUP "SET-GROUP" 67238405Sjkim@ MSG_FLG_HWCAP "HWCAP" 68238405Sjkim@ MSG_FLG_OBJECT "OBJECT" 69160814Ssimon@ MSG_FLG_NEWLOAD "NEWLOAD" 70160814Ssimon@ MSG_FLG_NODUMP "NODUMP" 71160814Ssimon@ MSG_FLG_DELETE "DELETE" 72160814Ssimon@ MSG_FLG_ANALYZED "ANALYZED" 73160814Ssimon@ MSG_FLG_INITDONE "INIT-DONE" 74160814Ssimon@ MSG_FLG_TRANS "TRANS" 75160814Ssimon@ MSG_FLG_FIXED "FIXED" 76160814Ssimon@ MSG_FLG_PRELOAD "PRELOAD" 77160814Ssimon@ MSG_FLG_ALTER "ALTERNATE" 78160814Ssimon@ MSG_FLG_LOADFLTR "LOAD-FILTERS" 79160814Ssimon@ MSG_FLG_AUDIT "AUDIT" 80160814Ssimon@ MSG_FLG_MODESET "MODE-SET" 81160814Ssimon@ MSG_FLG_ANALZING "ANALYZING" 82160814Ssimon@ MSG_FLG_INITFRST "INIT-FIRST" 83160814Ssimon@ MSG_FLG_NOOPEN "NO-OPEN" 84160814Ssimon@ MSG_FLG_FINICLCT "FINI-COLLECTED" 85160814Ssimon@ MSG_FLG_INITCALL "INIT-CALLED" 86160814Ssimon@ MSG_FLG_OBJINTPO "OBJECT-INTERPOSE" 87160814Ssimon@ MSG_FLG_SYMINTPO "SYMBOL-INTERPOSE" 88160814Ssimon@ MSG_FLG_MOVE "MOVE" 89160814Ssimon@ MSG_FLG_RELOCING "RELOCATING" 90160814Ssimon@ MSG_FLG_REGSYMS "REGISTER-SYMS" 91160814Ssimon@ MSG_FLG_INITCLCT "INIT-COLLECTED" 92160814Ssimon@ MSG_FLG_PUBHDL "PUBLIC-HANDLE" 93160814Ssimon@ MSG_FLG_PRIHDL "PRIVATE-HANDLE" 94160814Ssimon 95160814Ssimon@ MSG_FL1_COPYTOOK "COPYTOOK" 96160814Ssimon@ MSG_FL1_CONFSET "CONFSET" 97160814Ssimon@ MSG_FL1_NODEFLIB "NO-DEFAULT-LIBPATH" 98160814Ssimon@ MSG_FL1_ENDFILTE "END-FILTEE" 99160814Ssimon@ MSG_FL1_DISPREL "DISPLACEMENT-RELOCATED" 100160814Ssimon@ MSG_FL1_DTFLAGS "DTFLAGS-AVAILABLE" 101160814Ssimon@ MSG_FL1_LDDSTUB "LDDSTUB" 102160814Ssimon@ MSG_FL1_NOINIFIN "NO-INITFINI" 103160814Ssimon@ MSG_FL1_USED "USED" 104160814Ssimon@ MSG_FL1_SYMBOLIC "SYMBOLIC" 105160814Ssimon@ MSG_FL1_OBJSFLTR "OBJ-STD-FILTER" 106160814Ssimon@ MSG_FL1_OBJAFLTR "OBJ-AUX-FILTER" 107160814Ssimon@ MSG_FL1_SYMSFLTR "SYM-STD-FILTER" 108160814Ssimon@ MSG_FL1_SYMAFLTR "SYM-AUX-FILTER" 109160814Ssimon@ MSG_FL1_TLSADD "TLS-ADD" 110160814Ssimon@ MSG_FL1_TLSSTAT "TLS-STAT" 111160814Ssimon@ MSG_FL1_DIRECT "DIRECT" 112160814Ssimon@ MSG_FL1_GLOBAUD "GLOBAL-AUDITING" 113160814Ssimon 114160814Ssimon@ MSG_MODE_LAZY "LAZY" 115160814Ssimon@ MSG_MODE_NOW "NOW" 116160814Ssimon@ MSG_MODE_NOLOAD "NOLOAD" 117160814Ssimon@ MSG_MODE_GLOBAL "GLOBAL" 118238405Sjkim@ MSG_MODE_PARENT "PARENT" 119160814Ssimon@ MSG_MODE_GROUP "GROUP" 120238405Sjkim@ MSG_MODE_WORLD "WORLD" 121238405Sjkim@ MSG_MODE_NODELETE "NODELETE" 122160814Ssimon@ MSG_MODE_FIRST "FIRST" 123246772Sjkim@ MSG_MODE_CONFGEN "CONFGEN" 124160814Ssimon 125160814Ssimon@ MSG_BFL_NEEDED "NEEDED" 126160814Ssimon@ MSG_BFL_REFER "REFERENCED" 127160814Ssimon@ MSG_BFL_FILTER "FILTER" 128238405Sjkim 129194206Ssimon@ MSG_GPH_PUBLIC "PUBLIC-HANDLE" 130194206Ssimon@ MSG_GPH_PRIVATE "PRIVATE-HANDLE" 131264331Sjkim@ MSG_GPH_ZERO "ZERO" 132194206Ssimon@ MSG_GPH_LDSO "LD.SO.1" 133194206Ssimon@ MSG_GPH_FIRST "FIRST-ONLY" 134160814Ssimon@ MSG_GPH_FILTEE "FILTEE" 135160814Ssimon@ MSG_GPH_INITIAL "INITIALIZED" 13655714Skris@ MSG_GPH_NOPENDLAZY "NO-PENDING-LAZY-DEPENDENCIES" 13755714Skris 138238405Sjkim@ MSG_GPD_DLSYM "AVAIL-TO-DLSYM" 139238405Sjkim@ MSG_GPD_RELOC "AVAIL-FOR-RELOCATION" 140238405Sjkim@ MSG_GPD_ADDEPS "ADD-DEPENDENCIES" 141238405Sjkim@ MSG_GPD_PARENT "PARENT" 14255714Skris@ MSG_GPD_FILTER "FILTER" 14355714Skris@ MSG_GPD_REMOVE "REMOVAL-CANDIDATE" 14455714Skris@ MSG_GPD_MODECHANGE "MODES-HAVE-CHANGED" 14555714Skris 146238405Sjkim@ MSG_LFL_BASELM "BASELM" 14755714Skris@ MSG_LFL_RTLDLM "RTLDLM" 148160814Ssimon@ MSG_LFL_NOAUDIT "NO-AUDIT" 149160814Ssimon@ MSG_LFL_PLTREL "DEFERRED-PLT-RELOCATION" 150160814Ssimon@ MSG_LFL_HOLDLOCK "HOLD-LOCK" 151160814Ssimon@ MSG_LFL_ENVIRON "ENVIRON" 15255714Skris@ MSG_LFL_INTRPOSE "INTERPOSE" 153238405Sjkim@ MSG_LFL_LOCAUDIT "LOCAL-AUDIT" 154238405Sjkim@ MSG_LFL_LOADAVAIL "LOAD-AVAILABLE" 155238405Sjkim@ MSG_LFL_IGNRELERR "IGNORE-RELOCATION-ERROR" 156238405Sjkim@ MSG_LFL_DBNOTIF "DBG-NOTIFY" 157238405Sjkim@ MSG_LFL_STARTREL "START-RELOCATION" 15855714Skris@ MSG_LFL_ATEXIT "ATEXIT" 159238405Sjkim@ MSG_LFL_OBJADDED "OBJECT-ADDED" 16055714Skris@ MSG_LFL_OBJDELETED "OBJECT-DELETED" 16155714Skris@ MSG_LFL_OBJREEVAL "OBJECT-REEVALUATE" 16255714Skris@ MSG_LFL_NOPENDGLBLAZY "NO-PENDING-GLOBAL-LAZY-DEPENDENCY" 16355714Skris@ MSG_LFL_INTRPOSETSORT "INTERPOSE-TSORTING-DONE" 164160814Ssimon@ MSG_LFL_AUDITNOTIFY "AUDIT-CONSISTANT-REQUIRED" 16555714Skris@ MSG_LFL_GROUPSEXIST "LOCAL-GROUPS-EXIST" 16655714Skris 167160814Ssimon@ MSG_LFL_TRC_LDDSTUB "LDDSTUB" 168160814Ssimon@ MSG_LFL_TRC_ENABLE "TRACING-ENABLED" 169238405Sjkim@ MSG_LFL_TRC_WARN "TRACE-WARNINGS" 17055714Skris@ MSG_LFL_TRC_VERBOSE "TRACE-VERBOSE" 171160814Ssimon@ MSG_LFL_TRC_SEARCH "TRACE-SEARCH" 172160814Ssimon@ MSG_LFL_TRC_UNREF "TRACE-UNREFERENCED" 173238405Sjkim@ MSG_LFL_TRC_UNUSED "TRACE-UNUSED" 174238405Sjkim@ MSG_LFL_TRC_INIT "TRACE-INIT" 175160814Ssimon@ MSG_LFL_TRC_NOUNRESWEAK "TRACE-NO-UNRESOLVED-WEAKS" 176160814Ssimon@ MSG_LFL_TRC_NOPAREXT "TRACE-NO-PARENT-OR-EXTERN" 177160814Ssimon 178160814Ssimon@ MSG_LTFL_NOLAZYLD "NO-LAZY-LOADING" 179238405Sjkim@ MSG_LTFL_NODIRECT "NO-DIRECT" 180238405Sjkim@ MSG_LTFL_LOADFLTR "LOAD-FILTER" 181238405Sjkim 182238405Sjkim@ MSG_LTFL_AUD_PREINIT "AUD_PREINIT" 183238405Sjkim@ MSG_LTFL_AUD_OBJSEARCH "AUD_OBJSEARCH" 184160814Ssimon@ MSG_LTFL_AUD_OBJOPEN "AUD_OBJOPEN" 185160814Ssimon@ MSG_LTFL_AUD_OBJFILTER "AUD_OBJFILTER" 18655714Skris@ MSG_LTFL_AUD_OBJCLOSE "AUD_OBJCLOSE" 187194206Ssimon@ MSG_LTFL_AUD_SYMBIND "AUD_SYMBIND" 18855714Skris@ MSG_LTFL_AUD_PLTENTER "AUD_PLTENTER" 18955714Skris@ MSG_LTFL_AUD_PLTEXIT "AUD_PLTEXIT" 19055714Skris@ MSG_LTFL_AUD_ACTIVITY "AUD_ACTIVITY" 19155714Skris 19255714Skris@ MSG_LMC_ANALYZING "ANALYZING" 19355714Skris@ MSG_LMC_RELOCATING "RELOCATING" 19455714Skris@ MSG_LMC_REANALYZE "REANALYZE" 195160814Ssimon 196238405Sjkim# 197238405Sjkim# Error messages 198238405Sjkim# 199238405Sjkim@ MSG_ERR_NAS "%s:: no address specified\n" 200238405Sjkim@ MSG_ERR_READ "%s:: failed to read from: 0x%p\n" 201238405Sjkim@ MSG_ERR_SYMFAILED "rtmaps:: lookup of %s`%s failed\n" 202238405Sjkim 203238405Sjkim# 204238405Sjkim# Various generic format strings 205238405Sjkim# 206238405Sjkim@ MSG_FMT_RT "[0x%x]\t0x%0?p 0x%0?p %s\n" 207238405Sjkim 208194206Ssimon# 209194206Ssimon# Elf header messages. 210194206Ssimon# 211238405Sjkim@ MSG_EHDR_STR "ElfEhdr" 212238405Sjkim 21355714Skris@ MSG_EHDR_DCD "Display Elf_Ehdr entry" 21455714Skris 215238405Sjkim@ MSG_EHDR_TITLE "Elf Header located at: 0x%p\n" 21655714Skris@ MSG_EHDR_LINE1 " ei_magic: { 0x%x, %c, %c, %c }\n" 217238405Sjkim@ MSG_EHDR_LINE2 " ei_class: %-18s ei_data: %s\n" 21855714Skris@ MSG_EHDR_LINE3 " e_machine: %-18s e_version: %s\n" 21955714Skris@ MSG_EHDR_LINE4 " e_type: %s\n" 22055714Skris@ MSG_EHDR_LINE5 " e_flags: %s\n" 22155714Skris@ MSG_EHDR_LINE6 " e_flags: %18s\n" 22255714Skris@ MSG_EHDR_LINE7 " e_entry: %#18lx e_ehsize: %2d \ 22355714Skris e_shstrndx: %2d\n" 22455714Skris@ MSG_EHDR_LINE8 " e_shoff: %#18lx e_shentsize: %2d \ 22555714Skris e_shnum: %2d\n" 22655714Skris@ MSG_EHDR_LINE9 " e_phoff: %#18lx e_phentsize: %2d \ 227160814Ssimon e_phnum: %2d\n" 22855714Skris 229238405Sjkim@ MSG_EHDR_HELP "\ 230238405Sjkim Decode an ELF Header (Elf_Ehdr) structure.\n\ 231238405Sjkim \n\ 232238405Sjkim Example:\n\n\ 233238405Sjkim \t> 0x10000::ElfEhdr \n\ 234238405Sjkim \tElf Header located at: 0x10000\n\ 235238405Sjkim \t ei_magic: { 0x7f, E, L, F }\n\ 236238405Sjkim \t ei_class: ELFCLASS32 ei_data: ELFDATA2MSB\n\ 237238405Sjkim \t e_machine: EM_SPARC e_version: EV_CURRENT\n\ 238238405Sjkim \t e_type: ET_EXEC\n\ 239238405Sjkim \t e_flags: 0\n\ 240238405Sjkim \t e_entry: 0x10640 e_ehsize: 52 e_shstrndx: 27\n\ 241238405Sjkim \t e_shoff: 0x1390 e_shentsize: 40 e_shnum: 29\n\ 24255714Skris \t e_phoff: 0x34 e_phentsize: 32 e_phnum: 5\n" 24355714Skris 244160814Ssimon# 24555714Skris# Elf Program Header messages. 24655714Skris# 247238405Sjkim 248160814Ssimon@ MSG_EPHDR_STR "ElfPhdr" 249160814Ssimon 250160814Ssimon@ MSG_EPHDR_DCD "Display Elf_Phdr entry" 251160814Ssimon 252160814Ssimon@ MSG_EPHDR_TITLE "Program Header located at: 0x%p\n" 253160814Ssimon@ MSG_EPHDR_LINE1 " p_vaddr: %#-14lx p_flags: %s\n" 254160814Ssimon@ MSG_EPHDR_LINE2 " p_paddr: %#-14lx p_type: %s\n" 255160814Ssimon@ MSG_EPHDR_LINE3 " p_filesz: %#-14lx p_memsz: %#lx\n" 256160814Ssimon@ MSG_EPHDR_LINE4 " p_offset: %#-14lx p_align: %#lx\n" 257160814Ssimon 258160814Ssimon@ MSG_EPHDR_HELP "\ 259160814Ssimon Decode an ELF Program Header (Elf_Phdr) structure.\n\ 260160814Ssimon \n\ 261160814Ssimon Example 1 - a single entry:\n\n\ 262160814Ssimon \t> 0x10000+0x34::ElfPhdr\n\ 263160814Ssimon \tProgram Header located at: 0x10034\n\ 264160814Ssimon \t p_vaddr: 0x10034 p_flags: [ PF_X PF_R ]\n\ 265160814Ssimon \t p_paddr: 0 p_type: [ PT_PHDR ]\n\ 266160814Ssimon \t p_filesz: 0xa0 p_memsz: 0xa0\n\ 267238405Sjkim \t p_offset: 0x34 p_align: 0\n\ 268160814Ssimon \n\ 269160814Ssimon Example 2 - multiple entries:\n\n\ 270160814Ssimon \t> 0x10034,2::ElfPhdr\n\ 271160814Ssimon \tProgram Header located at: 0x10034\n\ 27255714Skris \t p_vaddr: 0x10034 p_flags: [ PF_X PF_R ]\n\ 273160814Ssimon \t p_paddr: 0 p_type: [ PT_PHDR ]\n\ 274160814Ssimon \t p_filesz: 0xa0 p_memsz: 0xa0\n\ 275160814Ssimon \t p_offset: 0x34 p_align: 0\n\ 276238405Sjkim \tProgram Header located at: 0x10054\n\ 277238405Sjkim \t p_vaddr: 0 p_flags: [ PF_R ]\n\ 278160814Ssimon \t p_paddr: 0 p_type: [ PT_INTERP ]\n\ 27955714Skris \t p_filesz: 0x11 p_memsz: 0\n\ 28055714Skris \t p_offset: 0xd4 p_align: 0\n" 28155714Skris 282194206Ssimon 283160814Ssimon# 28455714Skris# Elf_Dyn messages. 28555714Skris# 286194206Ssimon 287194206Ssimon@ MSG_ELFDYN_STR "ElfDyn" 288160814Ssimon 289194206Ssimon@ MSG_ELFDYN_DCD "Display Elf_Dyn entry" 290194206Ssimon 291194206Ssimon@ MSG_ELFDYN_TITLE "Elf_Dyn located at: 0x%p\n" 292194206Ssimon@ MSG_ELFDYN_LINE1 " %a %s\t 0x%0?p\n" 293194206Ssimon 294194206Ssimon@ MSG_ELFDYN_HELP "\ 295238405Sjkim Decode an ELF dynamic section (Elf_Dyn) entry.\n\ 296194206Ssimon \n\ 297160814Ssimon Example 1 - a single entry:\n\n\ 298160814Ssimon \t> 0xff33a478::ElfDyn\n\ 299160814Ssimon \tElf_Dyn located at: 0xff33a478\n\ 30055714Skris \t 0xff33a478 NEEDED 0x00004013\n\ 30155714Skris \n\ 302194206Ssimon Example 2 - multiple entries:\n\n\ 30355714Skris \t> 0xff33a478,4::ElfDyn\n\ 30455714Skris \tElf_Dyn located at: 0xff33a478\n\ 30555714Skris \t 0xff33a478 NEEDED 0x00004013\n\ 306194206Ssimon \tElf_Dyn located at: 0xff33a480\n\ 307238405Sjkim \t 0xff33a480 INIT 0x0009b484\n\ 30855714Skris \tElf_Dyn located at: 0xff33a488\n\ 30955714Skris \t 0xff33a488 FINI 0x0009b4dc\n\ 31055714Skris \tElf_Dyn located at: 0xff33a490\n\ 311238405Sjkim \t 0xff33a490 SONAME 0x00004009\n" 312160814Ssimon 313194206Ssimon 314238405Sjkim# 315194206Ssimon# Lm_list messages. 316194206Ssimon# 317194206Ssimon 318194206Ssimon@ MSG_LMLIST_STR "Lm_list" 319194206Ssimon 320194206Ssimon@ MSG_LMLIST_DCD "Display Lm_list structure" 321194206Ssimon 322194206Ssimon@ MSG_LMLIST_BASE "(LM_ID_BASE)" 323194206Ssimon@ MSG_LMLIST_LDSO "(LM_ID_LDSO)" 324264331Sjkim@ MSG_LMLIST_NEWLM "(LM_ID_NEWLM)" 325238405Sjkim 326194206Ssimon@ MSG_LMLIST_TITLE0 "Link-map lists (%s): 0x0\n"; 327194206Ssimon@ MSG_LMLIST_TITLE1 "Link-map lists (%s): 0x%p Alist[used %u: total %u]\n"; 328194206Ssimon@ MSG_LMLIST_TITLE2 "Lm_list: 0x%p %s\n" 329194206Ssimon 330194206Ssimon@ MSG_LMLIST_LINE0 " lists: 0x%0?p Alist[used %u: total %u]\n" 331238405Sjkim 332194206Ssimon@ MSG_LMC_LINE1 "Lm_cntl: 0x%p\n" 333238405Sjkim@ MSG_LMC_LINE2 " head: 0x%0?p\t tail: 0x%0?p\n" 33455714Skris@ MSG_LMC_LINE3 " flags: 0x%08x\t now: 0x%0?p\n" 33555714Skris@ MSG_LMC_LINE4 " [ %#b ]\n" 33655714Skris 33755714Skris@ MSG_LMLIST_LINE1 " head: 0x%0?p\t tail: 0x%0?p\n" 33855714Skris@ MSG_LMLIST_LINE2 " audit: 0x%0?p\t rtldinfo: 0x%0?p\n" 33955714Skris@ MSG_LMLIST_LINE3 " handle: 0x%0?p\t obj: %4d init: %4d \ 34055714Skris lazy: %4d\n" 341194206Ssimon@ MSG_LMLIST_LINE4 " flags: 0x%08x\n" 34255714Skris@ MSG_LMLIST_LINE5 " tflags: 0x%08x\n" 34355714Skris@ MSG_LMLIST_LINE6 " [ %#b ]\n" 344284285Sjkim 34555714Skris@ MSG_LMLIST_HELP "\ 346194206Ssimon Display a link-map list header. If no address is specified, the \ 347194206Ssimon dynlm_list\nmaster link-map list is searched and all link-map headers \ 348194206Ssimon displayed.\n\ 349194206Ssimon \n\ 350194206Ssimon A link-map list header points to a family of link-map control lists, \ 351194206Ssimon together\nwith other state information. The initial control list represents \ 352194206Ssimon those\nobjects that have been completely analyzed and relocated, and are \ 353194206Ssimon presently in\nuse. \ 354194206Ssimon Additional control lists may exist as families of objects are processed\nin \ 355194206Ssimon preparation for joining the main control list. These families are created\n\ 356194206Ssimon from events such as dlopen(3c), lazy loading, and filtee processing, once\n\ 357194206Ssimon the initial process that started the application has been relocated.\n\ 358194206Ssimon \n\ 359194206Ssimon The -v option walks all link-map control lists displaying each member.\n\ 360194206Ssimon \n\ 361264331Sjkim Example 1 - a single, verbose entry, starting from a specified address:\n\n\ 362194206Ssimon \n\ 363194206Ssimon \t> 0xff3ee0f0::Lm_list -v\n\ 364194206Ssimon \tLm_list: 0xff3ee0f0 (LM_ID_BASE)\n\ 365194206Ssimon \t----------------------------------------------\n\ 366194206Ssimon \t lists: 0xff3f0b00 Alist[used 1: total 4]\n\ 367194206Ssimon \t ----------------------------------------------\n\ 368194206Ssimon \t Lm_cntl: 0xff3f0b0c\n\ 369194206Ssimon \t head: 0xff3f0fdc tail: 0xff3f13bc\n\ 37055714Skris \t flags: 0x00000000 now: 0x00000000\n\ 37155714Skris \t [ 0 ]\n\ 37255714Skris \t ----------------------------------------------\n\ 373238405Sjkim \t lmco rtmap ADDR() NAME()\n\ 374194206Ssimon \t ----------------------------------------------\n\ 375238405Sjkim \t [0xc] 0xff3f0fdc 0x00010000 main\n\ 376238405Sjkim \t [0xc] 0xff3f13bc 0xff280000 /lib/libc.so.1\n\ 377238405Sjkim \t ----------------------------------------------\n\ 378238405Sjkim \t head: 0xff3f0f84 tail: 0xff3f1794\n\ 379238405Sjkim \t audit: 0x00000000 preexec: 0xff3f1794\n\ 380238405Sjkim \t handle: 0x00000000 obj: 3 init: 0 lazy: 0\n\ 381238405Sjkim \t flags: 0x00008041\n\ 382238405Sjkim \t [ BASELM,ENVIRON,STARTREL ]\n\ 383238405Sjkim \t tflags: 0x00000000\n\ 384238405Sjkim \n\ 385194206Ssimon Example 2 - all link-map headers:\n\n\ 386238405Sjkim \t> ::Lm_list\n\ 387238405Sjkim \tLink-map lists (dynlm_list): 0xffbfdbf8\n\ 388194206Ssimon \t----------------------------------------------\n\ 389238405Sjkim \t Lm_list: 0xff3ee0f0 (LM_ID_BASE)\n\ 390238405Sjkim \t ----------------------------------------------\n\ 391238405Sjkim \t lists: 0xff3f0b68 Alist[used 1: total 4]\n\ 392238405Sjkim \t ----------------------------------------------\n\ 393238405Sjkim \t head: 0xff3f0f84 tail: 0xff3f1794\n\ 394238405Sjkim \t audit: 0x00000000 preexec: 0xff3f1794\n\ 395238405Sjkim \t handle: 0x00000000 obj: 3 init: 0 lazy: 0\n\ 396238405Sjkim \t flags: 0x00008041\n\ 397194206Ssimon \t [ BASELM,ENVIRON,STARTREL ]\n\ 398194206Ssimon \t tflags: 0x00000000\n\ 399238405Sjkim \t ----------------------------------------------\n\ 40055714Skris \t Lm_list: 0xff3ee134 (LM_ID_LDSO)\n\ 401 \t ----------------------------------------------\n\ 402 \t lists: 0xff3f0ba4 Alist[used 1: total 4]\n\ 403 \t ----------------------------------------------\n\ 404 \t head: 0xff3f0c20 tail: 0xff3f0c20\n\ 405 \t audit: 0x00000000 preexec: 0x00000000\n\ 406 \t handle: 0x00000000 obj: 0 init: 0 lazy: 0\n\ 407 \t flags: 0x00000006\n\ 408 \t [ RTLDLM,NOAUDIT ]\n\ 409 \t tflags: 0x00000000\n" 410 411# 412# Rt_maps messages. 413# 414 415@ MSG_RTMAPS_STR "Rt_maps" 416 417@ MSG_RTMAPS_DCD "Display list of Rt_map structures" 418 419@ MSG_RTMAPS_TITLE0 "lmco \trtmap ADDR() NAME()\n" 420 421@ MSG_RTMAPS_HELP "\ 422 Walk a list of Rt_map's starting with a specified Rt_map entry. If no\n\ 423 address is specified, the dynlm_list master Rt_map list is searched and\n\ 424 all objects listed.\n\ 425 \n\ 426 The -v option expands each Rt_map in detail. See Rt_map.\n\ 427 \n\ 428 Example 1 - a single entry, starting from a specified address:\n\n\ 429 \t> 0xff3b0214::Rt_maps\n\ 430 \tlmco rtmap ADDR() NAME()\n\ 431 \t---------------------------------------------\n\ 432 \t[0xc] 0xff3b0214 0x00010000 prog\n\ 433 \t[0xc] 0xff3b065c 0xff3a0000 /lib/libdl.so.1\n\ 434 \t[0xc] 0xff3b0a04 0xff280000 /lib/libc.so.1\n\ 435 \n\ 436 Example 2 - all Rt_map entries:\n\n\ 437 \t> ::Rt_maps\n\ 438 \tLink-map lists (dynlm_list): 0xffbfe080\n\ 439 \t---------------------------------------------\n\ 440 \t Lm_list: 0xff3f60c8 (LM_ID_BASE)\n\ 441 \t ---------------------------------------------\n\ 442 \t lmco rtmap ADDR() NAME()\n\ 443 \t ---------------------------------------------\n\ 444 \t [0xc] 0xff3b0214 0x00010000 prog\n\ 445 \t [0xc] 0xff3b065c 0xff3a0000 /lib/libdl.so.1\n\ 446 \t [0xc] 0xff3b0a04 0xff280000 /lib/libc.so.1\n\ 447 \t ---------------------------------------------\n\ 448 \t Lm_list: 0xff3f60e8 (LM_ID_LDSO)\n\ 449 \t ---------------------------------------------\n\ 450 \t lmco rtmap ADDR() NAME()\n\ 451 \t ---------------------------------------------\n\ 452 \t [0xc] 0xff3f7cc0 0xff3c0000 /lib/ld.so.1\n" 453 454 455# 456# Rt_map messages. 457# 458 459@ MSG_RTMAP_STR "Rt_map" 460 461@ MSG_RTMAP_DCD "Display Rt_map structure" 462 463@ MSG_RTMAP_TITLE "Rt_map located at: 0x%0?p\n" 464@ MSG_RTMAP_LINE1 " NAME: %s\n" 465@ MSG_RTMAP_LINE2 " PATHNAME: %s\n" 466@ MSG_RTMAP_LINE3 " ADDR: 0x%0?p\t DYN: 0x%0?p\n" 467@ MSG_RTMAP_LINE4 " NEXT: 0x%0?p\t PREV: 0x%0?p\n" 468@ MSG_RTMAP_LINE5 " FCT: 0x%0?p\t TLSMODID: %?ld\n" 469@ MSG_RTMAP_LINE6 " INIT: 0x%0?p\t FINI: 0x%0?p\n" 470@ MSG_RTMAP_LINE7 " GROUPS: 0x%0?p\t HANDLES: 0x%0?p\n" 471@ MSG_RTMAP_LINE8 " DEPENDS: 0x%0?p\t CALLERS: 0x%0?p\n" 472@ MSG_RTMAP_LINE9 " DYNINFO: 0x%0?p\t REFNAME: %s\n" 473@ MSG_RTMAP_LINE10 " RLIST: 0x%0?p\t RPATH: %s\n" 474@ MSG_RTMAP_LINE11 " LIST: 0x%0?p [%a]\n" 475@ MSG_RTMAP_LINE12 " FLAGS: 0x%08x\n" 476@ MSG_RTMAP_LINE13 " FLAGS1: 0x%08x\n" 477@ MSG_RTMAP_LINE14 " AFLAGS: 0x%08x\n" 478@ MSG_RTMAP_LINE15 " MODE: 0x%08x\n" 479@ MSG_RTMAP_LINE20 " [ %#b ]\n" 480 481@ MSG_RTMAP_HELP "\ 482 Display the contents of selected fields of an Rt_map structure.\n\ 483 \n\ 484 Example:\n\n\ 485 \t0xff3b0214::Rt_map\n\ 486 \tRt_map located at: 0xff3b0214\n\ 487 \t NAME: prog\n\ 488 \t PATHNAME: /home/developer/bin/prog\n\ 489 \t ADDR: 0x00010000 DYN: 0x00020b1\n\ 490 \t NEXT: 0xff3b065c PREV: 0x0000000\n\ 491 \t FCT: 0xff3f6080 TLSMODID: 0\n\ 492 \t INIT: 0x00010960 FINI: 0x000109b\n\ 493 \t .....\n" 494 495# 496# Bind messages. 497# 498 499@ MSG_BND_STR "Bind" 500 501@ MSG_BND_DCD "Display a Binding Descriptor" 502 503@ MSG_BND_TITLE "Binding descriptor located at: 0x%0?p\n" 504@ MSG_BND_LINE1 " caller: 0x%0?p %s\n" 505@ MSG_BND_LINE2 " depend: 0x%0?p %s\n" 506@ MSG_BND_LINE3 " flags: 0x%08x [ %#b ]\n" 507 508@ MSG_BND_HELP "\ 509 Decode the binding descriptor specified by addr.\n\ 510 \n\ 511 Relationships between Rt_map objects are maintained by a binding dis-\n\ 512 cripter. The descriptor contains a pointer to the Rt_map of the caller,\n\ 513 a pointer to the Rt_map of the dependency, and a flags field indicating\n\ 514 the relationship between the two Rt_map objects.\n\ 515 \n\ 516 The -v option expands each Rt_map.\n\ 517 \n\ 518 Example:\n\n\ 519 \t> 0xff3b0410::Bind\n\ 520 \tBinding Descriptor located at: 0xff3b0410\n\ 521 \t caller: 0xff3b0030 main\n\ 522 \t depend: 0xff3b0460 /lib/libelf.so.1\n\ 523 \t flags: 0x00000001 [ NEEDED ]\n" 524 525 526# 527# Depends messages. 528# 529 530@ MSG_DEPENDS_STR "Depends" 531 532@ MSG_DEPENDS_DCD "Display Rt_map DEPENDS binding descriptors" 533 534@ MSG_DEPENDS_LINE1 "DEPENDS for %s\n" 535@ MSG_DEPENDS_LINE2 " Depends: 0x%0?p APlist[used %u: total %u]\n" 536 537@ MSG_DEPENDS_HELP "\ 538 Display the binding descriptor list of DEPENDS() of the Rt_map\n\ 539 specified by addr. A DEPENDS() entry consists of an APlist\n\ 540 defining each dependency.\n\ 541 \n\ 542 The -v option walks the APlist descriptor displaying each dependency.\n\ 543 \n\ 544 Example:\n\n\ 545 \t> 0xff3b0554::Depends -v\n\ 546 \tDEPENDS for /lib/libc.so.1\n\ 547 \t----------------------------------------------\n\ 548 \t Depends: 0xff3b0bc4 APlist[used 2: total 4]\n\ 549 \t ----------------------------------------------\n\ 550 \t Binding descriptor located at: 0xff3b08f8\n\ 551 \t caller: 0xff3b0554 /lib/libc.so.1\n\ 552 \t depend: 0xff3b0938 /lib/libdl.so.1\n\ 553 \t flags: 0x00000003 [ NEEDED,REFERENCED ]\n\ 554 \t ----------------------------------------------\n\ 555 \t Binding descriptor located at: 0xff3b07a8\n\ 556 \t caller: 0xff3b0554 /lib/libc.so.1\n\ 557 \t depend: 0xff3f7cc0 /lib/ld.so.1\n\ 558 \t flags: 0x00000002 [ REFERENCED ]\n" 559 560# 561# Callers messages. 562# 563 564@ MSG_CALLERS_STR "Callers" 565 566@ MSG_CALLERS_DCD "Display Rt_map CALLERS binding descriptors" 567 568@ MSG_CALLERS_LINE1 "CALLERS for %s\n" 569@ MSG_CALLERS_LINE2 " Callers: 0x%0?p APlist[used %u: total %u]\n" 570 571@ MSG_CALLERS_HELP "\ 572 Display the binding descriptor list of CALLERS() of the Rt_map\n\ 573 specified by addr. A CALLERS() entry consists of an APlist\n\ 574 defining each caller.\n\ 575 \n\ 576 The -v option walks the APlist descriptor displaying each caller.\n\ 577 \n\ 578 Example:\n\n\ 579 \t> 0xff3b0554::Callers -v\n\ 580 \tCALLERS for /lib/libc.so.1\n\ 581 \t----------------------------------------------\n\ 582 \t Callers: 0xff3b08cc APlist[used 1: total 4]\n\ 583 \t ----------------------------------------------\n\ 584 \t Binding descriptor located at: 0xff3b0514\n\ 585 \t caller: 0xff3b0214 a.out\n\ 586 \t depend: 0xff3b0554 /lib/libc.so.1\n\ 587 \t flags: 0x00000003 [ NEEDED,REFERENCED ]\n" 588 589 590# 591# Handle messages. 592# 593 594@ MSG_HANDLES_STR "Handles" 595 596@ MSG_HANDLES_DCD "Display Rt_map HANDLES group descriptors" 597 598@ MSG_HANDLES_LINE1 "HANDLES for %s\n" 599@ MSG_HANDLES_LINE2 " HANDLE: 0x%0?p APlist[used %u: total %u]\n" 600 601@ MSG_HANDLES_HELP "\ 602 Display the list of HANDLES() that the Rt_map, specified by addr, is the\n\ 603 owner of. A HANDLES() entry consists of an APlist of Grp_hdl descriptors.\n\ 604 See GrpHdl. Each Grp_hdl() consists of an APlist of Grp_desc descriptors\n\ 605 that define each caller. See GrpDesc.\n\ 606 \n\ 607 The -v option walks all APlists displaying each member of the handle.\n\ 608 \n\ 609 Example:\n\n\ 610 \t> 0xff3b0f6c::Handles -v\n\ 611 \tHANDLES for ./sub.so\n\ 612 \t----------------------------------------------\n\ 613 \t HANDLE: 0xff3b1310 APlist[used 1: total 1]\n\ 614 \t ----------------------------------------------\n\ 615 \t Group Handle located at: 0xff3b1270\n\ 616 \t ----------------------------------------------\n\ 617 \t owner: ./sub.so\n\ 618 \t flags: 0x00000000 [ 0 ]\n\ 619 \t refcnt: 1 depends: 0xff3b12c8 Alist[used 3: total 4]\n\ 620 \t ----------------------------------------------\n\ 621 \t Group Descriptor located at: 0xff3b12d4\n\ 622 \t depend: 0xff3b0f6c ./sub.so\n\ 623 \t flags: 0x00000003 [ AVAIL-TO-DLSYM,ADD-DEPENDENCIES ]\n\ 624 \t ----------------------------------------------\n\ 625 \t Group Descriptor located at: 0xff3b12dc\n\ 626 \t depend: 0xff3b0a04 /lib/libc.so.1\n\ 627 \t flags: 0x00000003 [ AVAIL-TO-DLSYM,ADD-DEPENDENCIES ]\n\ 628 \t ----------------------------------------------\n\ 629 \t Group Descriptor located at: 0xff3b12e4\n\ 630 \t depend: 0xff3b065c /lib/libdl.so.1\n\ 631 \t flags: 0x00000003 [ AVAIL-TO-DLSYM,ADD-DEPENDENCIES ]\n" 632 633# 634# Group messages. 635# 636 637@ MSG_GROUPS_STR "Groups" 638 639@ MSG_GROUPS_DCD "Display Rt_map GROUPS group handles" 640 641@ MSG_GROUPS_LINE1 "GROUPS for %s\n" 642@ MSG_GROUPS_LINE2 " Groups: 0x%0?p APlist[used %u: total %u]\n" 643 644@ MSG_GROUPS_HELP "\ 645 Display the list of GROUPS() that the Rt_map, specified by addr, is a \ 646 member\nof. A GROUPS() entry consists of an APlist of Grp_hdl entries. \ 647 See GrpHdl.\n\ 648 \n\ 649 The -v option walks the APlist descriptor displaying each member of the\n\ 650 handle.\n\ 651 \n\ 652 Example:\n\n\ 653 \t> 0xff3b0f6c::Groups -v\n\ 654 \tGROUPS for ./sub.so\n\ 655 \t----------------------------------------------\n\ 656 \t Groups: 0xff3b12a8 APlist[used 1: total 1]\n\ 657 \t ----------------------------------------------\n\ 658 \t Group Handle located at: 0xff3b1270\n\ 659 \t ----------------------------------------------\n\ 660 \t owner: ./sub.so\n\ 661 \t flags: 0x00000000 [ 0 ]\n\ 662 \t refcnt: 1 depends: 0xff3b12c8 Alist[used 3: total 4]\n\ 663 \t ----------------------------------------------\n\ 664 \t Group Descriptor located at: 0xff3b12d4\n\ 665 \t depend: 0xff3b0f6c ./sub.so\n\ 666 \t flags: 0x00000003 [ AVAIL-TO-DLSYM,ADD-DEPENDENCIES ]\n\ 667 \t ----------------------------------------------\n\ 668 \t Group Descriptor located at: 0xff3b12dc\n\ 669 \t depend: 0xff3b0a04 /lib/libc.so.1\n\ 670 \t flags: 0x00000004 [ AVAIL-TO-DLSYM,ADD-DEPENDENCIES ]\n\ 671 \t ----------------------------------------------\n\ 672 \t Group Descriptor located at: 0xff3b12e4\n\ 673 \t depend: 0xff3b065c /lib/libdl.so.1\n\ 674 \t flags: 0x00000004 [ AVAIL-TO-DLSYM,ADD-DEPENDENCIES ]\n" 675 676 677# 678# Group handle and group descriptor messages. 679# 680 681@ MSG_GRPHDL_STR "GrpHdl" 682 683@ MSG_GRPHDL_DCD "Display a Group Handle" 684 685@ MSG_GRPHDL_LINE1 "Group Handle located at: 0x%0?p\n" 686@ MSG_GRPHDL_LINE2 " owner: %s\n" 687@ MSG_GRPHDL_LINE3 " flags: 0x%08x [ %#b ]\n" 688@ MSG_GRPHDL_LINE4 " refcnt: %8d depends: 0\n" 689@ MSG_GRPHDL_LINE5 " refcnt: %8d depends: 0x%0?p \ 690 Alist[used %u: total %u]\n" 691 692@ MSG_GRPHDL_HELP "\ 693 Decode a group handle. A successful dlopen() of an object returns a\n\ 694 handle applicable for subsequent dlsym() requests. The handle maintains\n\ 695 a reference count, flags and a table of group descriptors that define the\n\ 696 dependencies associated with this group of objects.\n\ 697 \n\ 698 The -v option expands each group descriptor.\n\ 699 \n\ 700 Example:\n\n\ 701 \t> 0xff3a0c58::GrpHdl\n\ 702 \tGroup Handle located at: 0xff3a0c58\n\ 703 \t----------------------------------------------\n\ 704 \t refcnt: 1 main\n\ 705 \t flags: 0x00000001 [ DLOPEN-ZERO ]\n\ 706 \t depends: 0xff3a0c89 Alist[next 1: cnt 2]\n" 707 708 709 710@ MSG_GRPDESC_STR "GrpDesc" 711 712@ MSG_GRPDESC_DCD "Display a Group Descriptor" 713 714@ MSG_GRPDESC_LINE1 "Group Descriptor located at: 0x%0?p\n" 715@ MSG_GRPDESC_LINE2 " depend: 0x%0?p %s\n" 716@ MSG_GRPDESC_LINE3 " flags: 0x%08x [ %#b ]\n" 717 718@ MSG_GRPDESC_HELP "\ 719 Decode a group descriptor. A GrpHdl created by dlopen() maintains a\n\ 720 list of group descriptors for each dependency. See GrpHdl.\n\ 721 \n\ 722 Example\n\n\ 723 \t> 0xff3b12d4::GrpDesc -v\n\ 724 \tGroup Descriptor located at: 0xff3b12d4\n\ 725 \t depend: 0xff3b0f6c ./sub.so\n\ 726 \t flags: 0x00000003 [ AVAIL-TO-DLSYM,ADD-DEPENDENCIES ]\n" 727 728 729@ MSG_BNDDESC_STR "BndDesc" 730 731# 732# General purpose environment addition. 733# 734 735@ MSG_SETENV_STR "Setenv" 736 737@ MSG_SETENV_DCD "Set an environment variable" 738 739@ MSG_SETENV_HELP "\ 740 Set the associated environment variable. This can be useful to establish\n\ 741 runtime linker environment variables without affecting the debugger itself.\n\ 742 \n\ 743 Note, newer versions of mdb(1) provide setenv. The mdb(1) implementation\n\ 744 provides the ability to make environment changes at any point during\n\ 745 application monitoring. Where available, Setenv calls through to setenv.\n\ 746 On older environments, Setenv only provides for changing the applications\n\ 747 environment before it is invoked.\n\ 748 \n\ 749 Example\n\n\ 750 \t> ::Setenv LD_DEBUG=files\n" 751