xref: /titanic_52/usr/src/cmd/sgs/rtld/mdbmod/common/rtld.msg (revision b24ab6762772a3f6a89393947930c7fa61306783)
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
22#
23# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26
27@ _START_
28
29@ _END_
30
31#
32# Misc. Strings
33#
34@ MSG_STR_NAME		"NAME"
35@ MSG_STR_PATHNAME	"PATHNAME"
36@ MSG_STR_REFNAME	"REFNAME"
37@ MSG_STR_RPATH		"RPATH"
38@ MSG_STR_DASHES	"----------------------------------------------\n"
39@ MSG_STR_LDSO1		"ld.so.1"
40@ MSG_STR_DYNLMLIST	"dynlm_list"
41@ MSG_STR_ALIST		"Alist"
42@ MSG_STR_APLIST	"APlist"
43@ MSG_STR_EMPTY		""
44@ MSG_STR_ORPHANED	"<orphaned>"
45@ MSG_STR_SETENV	"setenv"
46
47#
48# mdb_dcmd_t.dc_usage's
49#
50@ MSG_USG_ADDREQ	":"			# Address required
51@ MSG_USG_ADDREQ_V	":[-v]"			# Address required plus -v
52@ MSG_USG_ADDOPT_V	"?[-v]"			# Address optional plus -v
53@ MSG_USG_SETENV	"name[=value]"		# Setenv argument
54
55#
56# mdb_walker.walk_descr's
57#
58@ MSG_WWD_RTMAP		"Walk a List of Rt_maps"
59
60#
61# Flag Strings
62#
63@ MSG_FLG_ISMAIN	"IS-MAIN"
64@ MSG_FLG_IMGALLOC	"IMAGE-ALLOCATED"
65@ MSG_FLG_RELOCED	"RELOCED"
66@ MSG_FLG_SETGROUP	"SET-GROUP"
67@ MSG_FLG_HWCAP		"HWCAP"
68@ MSG_FLG_OBJECT	"OBJECT"
69@ MSG_FLG_NEWLOAD	"NEWLOAD"
70@ MSG_FLG_NODUMP	"NODUMP"
71@ MSG_FLG_DELETE	"DELETE"
72@ MSG_FLG_ANALYZED	"ANALYZED"
73@ MSG_FLG_INITDONE	"INIT-DONE"
74@ MSG_FLG_TRANS		"TRANS"
75@ MSG_FLG_FIXED		"FIXED"
76@ MSG_FLG_PRELOAD	"PRELOAD"
77@ MSG_FLG_ALTER		"ALTERNATE"
78@ MSG_FLG_LOADFLTR	"LOAD-FILTERS"
79@ MSG_FLG_AUDIT		"AUDIT"
80@ MSG_FLG_MODESET	"MODE-SET"
81@ MSG_FLG_ANALZING	"ANALYZING"
82@ MSG_FLG_INITFRST	"INIT-FIRST"
83@ MSG_FLG_NOOPEN	"NO-OPEN"
84@ MSG_FLG_FINICLCT	"FINI-COLLECTED"
85@ MSG_FLG_INITCALL	"INIT-CALLED"
86@ MSG_FLG_OBJINTPO	"OBJECT-INTERPOSE"
87@ MSG_FLG_SYMINTPO	"SYMBOL-INTERPOSE"
88@ MSG_FLG_MOVE		"MOVE"
89@ MSG_FLG_RELOCING	"RELOCATING"
90@ MSG_FLG_REGSYMS	"REGISTER-SYMS"
91@ MSG_FLG_INITCLCT	"INIT-COLLECTED"
92@ MSG_FLG_PUBHDL	"PUBLIC-HANDLE"
93@ MSG_FLG_PRIHDL	"PRIVATE-HANDLE"
94
95@ MSG_FL1_COPYTOOK	"COPYTOOK"
96@ MSG_FL1_CONFSET	"CONFSET"
97@ MSG_FL1_NODEFLIB	"NO-DEFAULT-LIBPATH"
98@ MSG_FL1_ENDFILTE	"END-FILTEE"
99@ MSG_FL1_DISPREL	"DISPLACEMENT-RELOCATED"
100@ MSG_FL1_DTFLAGS	"DTFLAGS-AVAILABLE"
101@ MSG_FL1_LDDSTUB	"LDDSTUB"
102@ MSG_FL1_NOINIFIN	"NO-INITFINI"
103@ MSG_FL1_USED		"USED"
104@ MSG_FL1_SYMBOLIC	"SYMBOLIC"
105@ MSG_FL1_OBJSFLTR	"OBJ-STD-FILTER"
106@ MSG_FL1_OBJAFLTR	"OBJ-AUX-FILTER"
107@ MSG_FL1_SYMSFLTR	"SYM-STD-FILTER"
108@ MSG_FL1_SYMAFLTR	"SYM-AUX-FILTER"
109@ MSG_FL1_TLSADD	"TLS-ADD"
110@ MSG_FL1_TLSSTAT	"TLS-STAT"
111@ MSG_FL1_DIRECT	"DIRECT"
112@ MSG_FL1_GLOBAUD	"GLOBAL-AUDITING"
113
114@ MSG_MODE_LAZY		"LAZY"
115@ MSG_MODE_NOW		"NOW"
116@ MSG_MODE_NOLOAD	"NOLOAD"
117@ MSG_MODE_GLOBAL	"GLOBAL"
118@ MSG_MODE_PARENT	"PARENT"
119@ MSG_MODE_GROUP	"GROUP"
120@ MSG_MODE_WORLD	"WORLD"
121@ MSG_MODE_NODELETE	"NODELETE"
122@ MSG_MODE_FIRST	"FIRST"
123@ MSG_MODE_CONFGEN	"CONFGEN"
124
125@ MSG_BFL_NEEDED	"NEEDED"
126@ MSG_BFL_REFER		"REFERENCED"
127@ MSG_BFL_FILTER	"FILTER"
128
129@ MSG_GPH_PUBLIC	"PUBLIC-HANDLE"
130@ MSG_GPH_PRIVATE	"PRIVATE-HANDLE"
131@ MSG_GPH_ZERO		"ZERO"
132@ MSG_GPH_LDSO		"LD.SO.1"
133@ MSG_GPH_FIRST		"FIRST-ONLY"
134@ MSG_GPH_FILTEE	"FILTEE"
135@ MSG_GPH_INITIAL	"INITIALIZED"
136
137@ MSG_GPD_DLSYM		"AVAIL-TO-DLSYM"
138@ MSG_GPD_RELOC		"AVAIL-FOR-RELOCATION"
139@ MSG_GPD_ADDEPS	"ADD-DEPENDENCIES"
140@ MSG_GPD_PARENT	"PARENT"
141@ MSG_GPD_FILTER	"FILTER"
142@ MSG_GPD_REMOVE	"REMOVAL-CANDIDATE"
143
144@ MSG_LFL_BASELM		"BASELM"
145@ MSG_LFL_RTLDLM		"RTLDLM"
146@ MSG_LFL_NOAUDIT		"NO-AUDIT"
147@ MSG_LFL_PLTREL		"DEFERRED-PLT-RELOCATION"
148@ MSG_LFL_HOLDLOCK		"HOLD-LOCK"
149@ MSG_LFL_ENVIRON		"ENVIRON"
150@ MSG_LFL_INTRPOSE		"INTERPOSE"
151@ MSG_LFL_LOCAUDIT		"LOCAL-AUDIT"
152@ MSG_LFL_LOADAVAIL		"LOAD-AVAILABLE"
153@ MSG_LFL_IGNRELERR		"IGNORE-RELOCATION-ERROR"
154@ MSG_LFL_DBNOTIF		"DBG-NOTIFY"
155@ MSG_LFL_STARTREL		"START-RELOCATION"
156@ MSG_LFL_ATEXIT		"ATEXIT"
157@ MSG_LFL_OBJADDED		"OBJECT-ADDED"
158@ MSG_LFL_OBJDELETED		"OBJECT-DELETED"
159@ MSG_LFL_OBJREEVAL		"OBJECT-REEVALUATE"
160@ MSG_LFL_INTRPOSETSORT		"INTERPOSE-TSORTING-DONE"
161@ MSG_LFL_AUDITNOTIFY		"AUDIT-CONSISTENT-REQUIRED"
162@ MSG_LFL_GROUPSEXIST		"LOCAL-GROUPS-EXIST"
163
164@ MSG_LFL_TRC_LDDSTUB		"LDDSTUB"
165@ MSG_LFL_TRC_ENABLE		"TRACING-ENABLED"
166@ MSG_LFL_TRC_WARN		"TRACE-WARNINGS"
167@ MSG_LFL_TRC_VERBOSE		"TRACE-VERBOSE"
168@ MSG_LFL_TRC_SEARCH		"TRACE-SEARCH"
169@ MSG_LFL_TRC_UNREF		"TRACE-UNREFERENCED"
170@ MSG_LFL_TRC_UNUSED		"TRACE-UNUSED"
171@ MSG_LFL_TRC_INIT		"TRACE-INIT"
172@ MSG_LFL_TRC_NOUNRESWEAK	"TRACE-NO-UNRESOLVED-WEAKS"
173@ MSG_LFL_TRC_NOPAREXT		"TRACE-NO-PARENT-OR-EXTERN"
174
175@ MSG_LTFL_NOLAZYLD		"NO-LAZY-LOADING"
176@ MSG_LTFL_NODIRECT		"NO-DIRECT"
177@ MSG_LTFL_LOADFLTR		"LOAD-FILTER"
178
179@ MSG_LTFL_AUD_PREINIT		"AUD_PREINIT"
180@ MSG_LTFL_AUD_OBJSEARCH	"AUD_OBJSEARCH"
181@ MSG_LTFL_AUD_OBJOPEN		"AUD_OBJOPEN"
182@ MSG_LTFL_AUD_OBJFILTER	"AUD_OBJFILTER"
183@ MSG_LTFL_AUD_OBJCLOSE		"AUD_OBJCLOSE"
184@ MSG_LTFL_AUD_SYMBIND		"AUD_SYMBIND"
185@ MSG_LTFL_AUD_PLTENTER		"AUD_PLTENTER"
186@ MSG_LTFL_AUD_PLTEXIT		"AUD_PLTEXIT"
187@ MSG_LTFL_AUD_ACTIVITY		"AUD_ACTIVITY"
188
189@ MSG_LMC_ANALYZING		"ANALYZING"
190@ MSG_LMC_RELOCATING		"RELOCATING"
191@ MSG_LMC_REANALYZE		"REANALYZE"
192
193#
194# Error messages
195#
196@ MSG_ERR_NAS		"%s:: no address specified\n"
197@ MSG_ERR_READ		"%s:: failed to read from: 0x%p\n"
198@ MSG_ERR_SYMFAILED	"rtmaps:: lookup of %s`%s failed\n"
199
200#
201# Various generic format strings
202#
203@ MSG_FMT_RT		"[0x%x]\t0x%0?p 0x%0?p %s\n"
204
205#
206# Elf header messages.
207#
208@ MSG_EHDR_STR		"ElfEhdr"
209
210@ MSG_EHDR_DCD		"Display Elf_Ehdr entry"
211
212@ MSG_EHDR_TITLE	"Elf Header located at: 0x%p\n"
213@ MSG_EHDR_LINE1	" ei_magic:    { 0x%x, %c, %c, %c }\n"
214@ MSG_EHDR_LINE2	" ei_class:    %-18s  ei_data:     %s\n"
215@ MSG_EHDR_LINE3	" e_machine:   %-18s  e_version:   %s\n"
216@ MSG_EHDR_LINE4	" e_type:      %s\n"
217@ MSG_EHDR_LINE5	" e_flags:     %s\n"
218@ MSG_EHDR_LINE6	" e_flags:     %18s\n"
219@ MSG_EHDR_LINE7	" e_entry:     %#18lx  e_ehsize:     %2d  \
220			  e_shstrndx:   %2d\n"
221@ MSG_EHDR_LINE8	" e_shoff:     %#18lx  e_shentsize:  %2d  \
222			  e_shnum:      %2d\n"
223@ MSG_EHDR_LINE9	" e_phoff:     %#18lx  e_phentsize:  %2d  \
224			  e_phnum:      %2d\n"
225
226@ MSG_EHDR_HELP		"\
227   Decode an ELF Header (Elf_Ehdr) structure.\n\
228   \n\
229   Example:\n\n\
230   \t> 0x10000::ElfEhdr \n\
231   \tElf Header located at: 0x10000\n\
232   \t ei_magic:    { 0x7f, E, L, F }\n\
233   \t ei_class:    ELFCLASS32          ei_data:     ELFDATA2MSB\n\
234   \t e_machine:   EM_SPARC            e_version:   EV_CURRENT\n\
235   \t e_type:      ET_EXEC\n\
236   \t e_flags:                      0\n\
237   \t e_entry:                0x10640  e_ehsize:     52  e_shstrndx:   27\n\
238   \t e_shoff:                 0x1390  e_shentsize:  40  e_shnum:      29\n\
239   \t e_phoff:                   0x34  e_phentsize:  32  e_phnum:       5\n"
240
241#
242# Elf Program Header messages.
243#
244
245@ MSG_EPHDR_STR		"ElfPhdr"
246
247@ MSG_EPHDR_DCD		"Display Elf_Phdr entry"
248
249@ MSG_EPHDR_TITLE	"Program Header located at: 0x%p\n"
250@ MSG_EPHDR_LINE1	"    p_vaddr:      %#-14lx  p_flags:    %s\n"
251@ MSG_EPHDR_LINE2	"    p_paddr:      %#-14lx  p_type:     %s\n"
252@ MSG_EPHDR_LINE3	"    p_filesz:     %#-14lx  p_memsz:    %#lx\n"
253@ MSG_EPHDR_LINE4	"    p_offset:     %#-14lx  p_align:    %#lx\n"
254
255@ MSG_EPHDR_HELP	"\
256   Decode an ELF Program Header (Elf_Phdr) structure.\n\
257   \n\
258   Example 1 - a single entry:\n\n\
259   \t> 0x10000+0x34::ElfPhdr\n\
260   \tProgram Header located at: 0x10034\n\
261   \t    p_vaddr:      0x10034         p_flags:    [ PF_X  PF_R ]\n\
262   \t    p_paddr:      0               p_type:     [ PT_PHDR ]\n\
263   \t    p_filesz:     0xa0            p_memsz:    0xa0\n\
264   \t    p_offset:     0x34            p_align:    0\n\
265   \n\
266   Example 2 - multiple entries:\n\n\
267   \t> 0x10034,2::ElfPhdr\n\
268   \tProgram Header located at: 0x10034\n\
269   \t    p_vaddr:      0x10034         p_flags:    [ PF_X  PF_R ]\n\
270   \t    p_paddr:      0               p_type:     [ PT_PHDR ]\n\
271   \t    p_filesz:     0xa0            p_memsz:    0xa0\n\
272   \t    p_offset:     0x34            p_align:    0\n\
273   \tProgram Header located at: 0x10054\n\
274   \t    p_vaddr:      0               p_flags:    [ PF_R ]\n\
275   \t    p_paddr:      0               p_type:     [ PT_INTERP ]\n\
276   \t    p_filesz:     0x11            p_memsz:    0\n\
277   \t    p_offset:     0xd4            p_align:    0\n"
278
279
280#
281# Elf_Dyn messages.
282#
283
284@ MSG_ELFDYN_STR	"ElfDyn"
285
286@ MSG_ELFDYN_DCD	"Display Elf_Dyn entry"
287
288@ MSG_ELFDYN_TITLE	"Elf_Dyn located at: 0x%p\n"
289@ MSG_ELFDYN_LINE1	"    %a  %s\t  0x%0?p\n"
290
291@ MSG_ELFDYN_HELP	"\
292   Decode an ELF dynamic section (Elf_Dyn) entry.\n\
293   \n\
294   Example 1 - a single entry:\n\n\
295   \t> 0xff33a478::ElfDyn\n\
296   \tElf_Dyn located at: 0xff33a478\n\
297   \t    0xff33a478  NEEDED  0x00004013\n\
298   \n\
299   Example 2 - multiple entries:\n\n\
300   \t> 0xff33a478,4::ElfDyn\n\
301   \tElf_Dyn located at: 0xff33a478\n\
302   \t    0xff33a478  NEEDED  0x00004013\n\
303   \tElf_Dyn located at: 0xff33a480\n\
304   \t    0xff33a480  INIT    0x0009b484\n\
305   \tElf_Dyn located at: 0xff33a488\n\
306   \t    0xff33a488  FINI    0x0009b4dc\n\
307   \tElf_Dyn located at: 0xff33a490\n\
308   \t    0xff33a490  SONAME  0x00004009\n"
309
310
311#
312# Lm_list messages.
313#
314
315@ MSG_LMLIST_STR	"Lm_list"
316
317@ MSG_LMLIST_DCD	"Display Lm_list structure"
318
319@ MSG_LMLIST_BASE	"(LM_ID_BASE)"
320@ MSG_LMLIST_LDSO	"(LM_ID_LDSO)"
321@ MSG_LMLIST_NEWLM	"(LM_ID_NEWLM)"
322
323@ MSG_LMLIST_TITLE0	"Link-map lists (%s): 0x0\n";
324@ MSG_LMLIST_TITLE1	"Link-map lists (%s): 0x%p Alist[used %u: total %u]\n";
325@ MSG_LMLIST_TITLE2	"Lm_list: 0x%p  %s\n"
326
327@ MSG_LMLIST_LINE0	"   lists: 0x%0?p Alist[used %u: total %u]\n"
328
329@ MSG_LMC_LINE1		"Lm_cntl: 0x%p\n"
330@ MSG_LMC_LINE2		"   head: 0x%0?p\t      tail: 0x%0?p\n"
331@ MSG_LMC_LINE3		"  flags: 0x%08x\t       now: 0x%0?p\n"
332@ MSG_LMC_LINE4		"         [ %#b ]\n"
333
334@ MSG_LMLIST_LINE1	"    head: 0x%0?p\t      tail: 0x%0?p\n"
335@ MSG_LMLIST_LINE2	"   audit: 0x%0?p\t  rtldinfo: 0x%0?p\n"
336@ MSG_LMLIST_LINE3	"  handle: 0x%0?p\t       obj: %4d  init: %4d  \
337			 lazy: %4d\n"
338@ MSG_LMLIST_LINE4	"   flags: 0x%08x\n"
339@ MSG_LMLIST_LINE5	"  tflags: 0x%08x\n"
340@ MSG_LMLIST_LINE6	"          [ %#b ]\n"
341
342@ MSG_LMLIST_HELP	"\
343   Display a link-map list header.  If no address is specified, the \
344   dynlm_list\nmaster link-map list is searched and all link-map headers \
345   displayed.\n\
346   \n\
347   A link-map list header points to a family of link-map control lists, \
348   together\nwith other state information. The initial control list represents \
349   those\nobjects that have been completely analyzed and relocated, and are \
350   presently in\nuse.  \
351   Additional control lists may exist as families of objects are processed\nin \
352   preparation for joining the main control list.  These families are created\n\
353   from events such as dlopen(3c), lazy loading, and filtee processing, once\n\
354   the initial process that started the application has been relocated.\n\
355   \n\
356   The -v option walks all link-map control lists displaying each member.\n\
357   \n\
358   Example 1 - a single, verbose entry, starting from a specified address:\n\n\
359   \n\
360   \t> 0xff3ee0f0::Lm_list -v\n\
361   \tLm_list: 0xff3ee0f0  (LM_ID_BASE)\n\
362   \t----------------------------------------------\n\
363   \t   lists: 0xff3f0b00 Alist[used 1: total 4]\n\
364   \t  ----------------------------------------------\n\
365   \t    Lm_cntl: 0xff3f0b0c\n\
366   \t       head: 0xff3f0fdc      tail: 0xff3f13bc\n\
367   \t      flags: 0x00000000       now: 0x00000000\n\
368   \t             [ 0 ]\n\
369   \t    ----------------------------------------------\n\
370   \t    lmco        rtmap       ADDR()     NAME()\n\
371   \t    ----------------------------------------------\n\
372   \t    [0xc]       0xff3f0fdc 0x00010000 main\n\
373   \t    [0xc]       0xff3f13bc 0xff280000 /lib/libc.so.1\n\
374   \t    ----------------------------------------------\n\
375   \t    head: 0xff3f0f84        tail: 0xff3f1794\n\
376   \t   audit: 0x00000000     preexec: 0xff3f1794\n\
377   \t  handle: 0x00000000         obj:    3  init:    0  lazy:    0\n\
378   \t   flags: 0x00008041\n\
379   \t          [ BASELM,ENVIRON,STARTREL ]\n\
380   \t  tflags: 0x00000000\n\
381   \n\
382   Example 2 - all link-map headers:\n\n\
383   \t> ::Lm_list\n\
384   \tLink-map lists (dynlm_list): 0xffbfdbf8\n\
385   \t----------------------------------------------\n\
386   \t  Lm_list: 0xff3ee0f0  (LM_ID_BASE)\n\
387   \t  ----------------------------------------------\n\
388   \t     lists: 0xff3f0b68 Alist[used 1: total 4]\n\
389   \t    ----------------------------------------------\n\
390   \t      head: 0xff3f0f84        tail: 0xff3f1794\n\
391   \t     audit: 0x00000000     preexec: 0xff3f1794\n\
392   \t    handle: 0x00000000         obj:    3  init:    0  lazy:    0\n\
393   \t     flags: 0x00008041\n\
394   \t            [ BASELM,ENVIRON,STARTREL ]\n\
395   \t    tflags: 0x00000000\n\
396   \t  ----------------------------------------------\n\
397   \t  Lm_list: 0xff3ee134  (LM_ID_LDSO)\n\
398   \t  ----------------------------------------------\n\
399   \t     lists: 0xff3f0ba4 Alist[used 1: total 4]\n\
400   \t    ----------------------------------------------\n\
401   \t      head: 0xff3f0c20        tail: 0xff3f0c20\n\
402   \t     audit: 0x00000000     preexec: 0x00000000\n\
403   \t    handle: 0x00000000         obj:    0  init:    0  lazy:    0\n\
404   \t     flags: 0x00000006\n\
405   \t            [ RTLDLM,NOAUDIT ]\n\
406   \t    tflags: 0x00000000\n"
407
408#
409# Rt_maps messages.
410#
411
412@ MSG_RTMAPS_STR	"Rt_maps"
413
414@ MSG_RTMAPS_DCD	"Display list of Rt_map structures"
415
416@ MSG_RTMAPS_TITLE0	"lmco \trtmap       ADDR()     NAME()\n"
417
418@ MSG_RTMAPS_HELP "\
419   Walk a list of Rt_map's starting with a specified Rt_map entry.  If no\n\
420   address is specified, the dynlm_list master Rt_map list is searched and\n\
421   all objects listed.\n\
422   \n\
423   The -v option expands each Rt_map in detail.  See Rt_map.\n\
424   \n\
425   Example 1 - a single entry, starting from a specified address:\n\n\
426   \t> 0xff3b0214::Rt_maps\n\
427   \tlmco    rtmap      ADDR()     NAME()\n\
428   \t---------------------------------------------\n\
429   \t[0xc]   0xff3b0214 0x00010000 prog\n\
430   \t[0xc]   0xff3b065c 0xff3a0000 /lib/libdl.so.1\n\
431   \t[0xc]   0xff3b0a04 0xff280000 /lib/libc.so.1\n\
432   \n\
433   Example 2 - all Rt_map entries:\n\n\
434   \t> ::Rt_maps\n\
435   \tLink-map lists (dynlm_list): 0xffbfe080\n\
436   \t---------------------------------------------\n\
437   \t  Lm_list: 0xff3f60c8  (LM_ID_BASE)\n\
438   \t  ---------------------------------------------\n\
439   \t    lmco    rtmap      ADDR()     NAME()\n\
440   \t    ---------------------------------------------\n\
441   \t    [0xc]   0xff3b0214 0x00010000 prog\n\
442   \t    [0xc]   0xff3b065c 0xff3a0000 /lib/libdl.so.1\n\
443   \t    [0xc]   0xff3b0a04 0xff280000 /lib/libc.so.1\n\
444   \t  ---------------------------------------------\n\
445   \t  Lm_list: 0xff3f60e8  (LM_ID_LDSO)\n\
446   \t  ---------------------------------------------\n\
447   \t    lmco    rtmap      ADDR()     NAME()\n\
448   \t    ---------------------------------------------\n\
449   \t    [0xc]   0xff3f7cc0 0xff3c0000 /lib/ld.so.1\n"
450
451
452#
453# Rt_map messages.
454#
455
456@ MSG_RTMAP_STR		"Rt_map"
457
458@ MSG_RTMAP_DCD		"Display Rt_map structure"
459
460@ MSG_RTMAP_TITLE	"Rt_map located at: 0x%0?p\n"
461@ MSG_RTMAP_LINE1	"     NAME: %s\n"
462@ MSG_RTMAP_LINE2	" PATHNAME: %s\n"
463@ MSG_RTMAP_LINE3	"     ADDR: 0x%0?p\t      DYN: 0x%0?p\n"
464@ MSG_RTMAP_LINE4	"     NEXT: 0x%0?p\t     PREV: 0x%0?p\n"
465@ MSG_RTMAP_LINE5	"      FCT: 0x%0?p\t TLSMODID:   %?ld\n"
466@ MSG_RTMAP_LINE6	"     INIT: 0x%0?p\t     FINI: 0x%0?p\n"
467@ MSG_RTMAP_LINE7	"   GROUPS: 0x%0?p\t  HANDLES: 0x%0?p\n"
468@ MSG_RTMAP_LINE8	"  DEPENDS: 0x%0?p\t  CALLERS: 0x%0?p\n"
469@ MSG_RTMAP_LINE9	"  DYNINFO: 0x%0?p\t  REFNAME: %s\n"
470@ MSG_RTMAP_LINE10	"    RLIST: 0x%0?p\t    RPATH: %s\n"
471@ MSG_RTMAP_LINE11	"     LIST: 0x%0?p [%a]\n"
472@ MSG_RTMAP_LINE12	"    FLAGS: 0x%08x\n"
473@ MSG_RTMAP_LINE13	"   FLAGS1: 0x%08x\n"
474@ MSG_RTMAP_LINE14	"   AFLAGS: 0x%08x\n"
475@ MSG_RTMAP_LINE15	"     MODE: 0x%08x\n"
476@ MSG_RTMAP_LINE20	"           [ %#b ]\n"
477
478@ MSG_RTMAP_HELP "\
479   Display the contents of selected fields of an Rt_map structure.\n\
480   \n\
481   Example:\n\n\
482   \t0xff3b0214::Rt_map\n\
483   \tRt_map located at: 0xff3b0214\n\
484   \t      NAME: prog\n\
485   \t  PATHNAME: /home/developer/bin/prog\n\
486   \t      ADDR: 0x00010000         DYN: 0x00020b1\n\
487   \t      NEXT: 0xff3b065c        PREV: 0x0000000\n\
488   \t       FCT: 0xff3f6080    TLSMODID:         0\n\
489   \t      INIT: 0x00010960        FINI: 0x000109b\n\
490   \t      .....\n"
491
492#
493# Bind messages.
494#
495
496@ MSG_BND_STR		"Bind"
497
498@ MSG_BND_DCD		"Display a Binding Descriptor"
499
500@ MSG_BND_TITLE		"Binding descriptor located at: 0x%0?p\n"
501@ MSG_BND_LINE1		"   caller: 0x%0?p    %s\n"
502@ MSG_BND_LINE2		"   depend: 0x%0?p    %s\n"
503@ MSG_BND_LINE3		"    flags: 0x%08x    [ %#b ]\n"
504
505@ MSG_BND_HELP		"\
506   Decode the binding descriptor specified by addr.\n\
507   \n\
508   Relationships between Rt_map objects are maintained by a binding dis-\n\
509   cripter.  The descriptor contains a pointer to the Rt_map of the caller,\n\
510   a pointer to the Rt_map of the dependency, and a flags field indicating\n\
511   the relationship between the two Rt_map objects.\n\
512   \n\
513   The -v option expands each Rt_map.\n\
514   \n\
515   Example:\n\n\
516   \t> 0xff3b0410::Bind\n\
517   \tBinding Descriptor located at: 0xff3b0410\n\
518   \t   caller: 0xff3b0030    main\n\
519   \t   depend: 0xff3b0460    /lib/libelf.so.1\n\
520   \t    flags: 0x00000001    [ NEEDED ]\n"
521
522
523#
524# Depends messages.
525#
526
527@ MSG_DEPENDS_STR	"Depends"
528
529@ MSG_DEPENDS_DCD	"Display Rt_map DEPENDS binding descriptors"
530
531@ MSG_DEPENDS_LINE1	"DEPENDS for %s\n"
532@ MSG_DEPENDS_LINE2	"  Depends: 0x%0?p APlist[used %u: total %u]\n"
533
534@ MSG_DEPENDS_HELP	"\
535   Display the binding descriptor list of DEPENDS() of the Rt_map\n\
536   specified by addr.  A DEPENDS() entry consists of an APlist\n\
537   defining each dependency.\n\
538   \n\
539   The -v option walks the APlist descriptor displaying each dependency.\n\
540   \n\
541   Example:\n\n\
542   \t> 0xff3b0554::Depends -v\n\
543   \tDEPENDS for /lib/libc.so.1\n\
544   \t----------------------------------------------\n\
545   \t  Depends: 0xff3b0bc4 APlist[used 2: total 4]\n\
546   \t    ----------------------------------------------\n\
547   \t    Binding descriptor located at: 0xff3b08f8\n\
548   \t       caller: 0xff3b0554    /lib/libc.so.1\n\
549   \t       depend: 0xff3b0938    /lib/libdl.so.1\n\
550   \t        flags: 0x00000003    [ NEEDED,REFERENCED ]\n\
551   \t    ----------------------------------------------\n\
552   \t    Binding descriptor located at: 0xff3b07a8\n\
553   \t       caller: 0xff3b0554    /lib/libc.so.1\n\
554   \t       depend: 0xff3f7cc0    /lib/ld.so.1\n\
555   \t        flags: 0x00000002    [ REFERENCED ]\n"
556
557#
558# Callers messages.
559#
560
561@ MSG_CALLERS_STR	"Callers"
562
563@ MSG_CALLERS_DCD	"Display Rt_map CALLERS binding descriptors"
564
565@ MSG_CALLERS_LINE1	"CALLERS for %s\n"
566@ MSG_CALLERS_LINE2	"  Callers: 0x%0?p APlist[used %u: total %u]\n"
567
568@ MSG_CALLERS_HELP	"\
569   Display the binding descriptor list of CALLERS() of the Rt_map\n\
570   specified by addr.  A CALLERS() entry consists of an APlist\n\
571   defining each caller.\n\
572   \n\
573   The -v option walks the APlist descriptor displaying each caller.\n\
574   \n\
575   Example:\n\n\
576   \t> 0xff3b0554::Callers -v\n\
577   \tCALLERS for /lib/libc.so.1\n\
578   \t----------------------------------------------\n\
579   \t  Callers: 0xff3b08cc APlist[used 1: total 4]\n\
580   \t    ----------------------------------------------\n\
581   \t    Binding descriptor located at: 0xff3b0514\n\
582   \t       caller: 0xff3b0214    a.out\n\
583   \t       depend: 0xff3b0554    /lib/libc.so.1\n\
584   \t        flags: 0x00000003    [ NEEDED,REFERENCED ]\n"
585
586
587#
588# Handle messages.
589#
590
591@ MSG_HANDLES_STR	"Handles"
592
593@ MSG_HANDLES_DCD	"Display Rt_map HANDLES group descriptors"
594
595@ MSG_HANDLES_LINE1	"HANDLES for %s\n"
596@ MSG_HANDLES_LINE2	"  HANDLE: 0x%0?p APlist[used %u: total %u]\n"
597
598@ MSG_HANDLES_HELP	"\
599   Display the list of HANDLES() that the Rt_map, specified by addr, is the\n\
600   owner of.  A HANDLES() entry consists of an APlist of Grp_hdl descriptors.\n\
601   See GrpHdl.  Each Grp_hdl() consists of an APlist of Grp_desc descriptors\n\
602   that define each caller.  See GrpDesc.\n\
603   \n\
604   The -v option walks all APlists displaying each member of the handle.\n\
605   \n\
606   Example:\n\n\
607   \t> 0xff3b0f6c::Handles -v\n\
608   \tHANDLES for ./sub.so\n\
609   \t----------------------------------------------\n\
610   \t  HANDLE: 0xff3b1310 APlist[used 1: total 1]\n\
611   \t    ----------------------------------------------\n\
612   \t    Group Handle located at: 0xff3b1270\n\
613   \t    ----------------------------------------------\n\
614   \t       owner:               ./sub.so\n\
615   \t       flags: 0x00000000    [ 0 ]\n\
616   \t      refcnt:          1    depends: 0xff3b12c8 Alist[used 3: total 4]\n\
617   \t       ----------------------------------------------\n\
618   \t       Group Descriptor located at: 0xff3b12d4\n\
619   \t          depend: 0xff3b0f6c    ./sub.so\n\
620   \t           flags: 0x00000003    [ AVAIL-TO-DLSYM,ADD-DEPENDENCIES ]\n\
621   \t       ----------------------------------------------\n\
622   \t       Group Descriptor located at: 0xff3b12dc\n\
623   \t          depend: 0xff3b0a04    /lib/libc.so.1\n\
624   \t           flags: 0x00000003    [ AVAIL-TO-DLSYM,ADD-DEPENDENCIES ]\n\
625   \t       ----------------------------------------------\n\
626   \t       Group Descriptor located at: 0xff3b12e4\n\
627   \t          depend: 0xff3b065c    /lib/libdl.so.1\n\
628   \t           flags: 0x00000003    [ AVAIL-TO-DLSYM,ADD-DEPENDENCIES ]\n"
629
630#
631# Group messages.
632#
633
634@ MSG_GROUPS_STR	"Groups"
635
636@ MSG_GROUPS_DCD	"Display Rt_map GROUPS group handles"
637
638@ MSG_GROUPS_LINE1	"GROUPS for %s\n"
639@ MSG_GROUPS_LINE2	"  Groups: 0x%0?p APlist[used %u: total %u]\n"
640
641@ MSG_GROUPS_HELP	"\
642   Display the list of GROUPS() that the Rt_map, specified by addr, is a \
643   member\nof.  A GROUPS() entry consists of an APlist of Grp_hdl entries.  \
644   See GrpHdl.\n\
645   \n\
646   The -v option walks the APlist descriptor displaying each member of the\n\
647   handle.\n\
648   \n\
649   Example:\n\n\
650   \t> 0xff3b0f6c::Groups -v\n\
651   \tGROUPS for ./sub.so\n\
652   \t----------------------------------------------\n\
653   \t  Groups: 0xff3b12a8 APlist[used 1: total 1]\n\
654   \t    ----------------------------------------------\n\
655   \t    Group Handle located at: 0xff3b1270\n\
656   \t    ----------------------------------------------\n\
657   \t        owner:               ./sub.so\n\
658   \t        flags: 0x00000000    [ 0 ]\n\
659   \t       refcnt:          1    depends: 0xff3b12c8 Alist[used 3: total 4]\n\
660   \t        ----------------------------------------------\n\
661   \t        Group Descriptor located at: 0xff3b12d4\n\
662   \t           depend: 0xff3b0f6c    ./sub.so\n\
663   \t            flags: 0x00000003    [ AVAIL-TO-DLSYM,ADD-DEPENDENCIES ]\n\
664   \t        ----------------------------------------------\n\
665   \t        Group Descriptor located at: 0xff3b12dc\n\
666   \t           depend: 0xff3b0a04    /lib/libc.so.1\n\
667   \t            flags: 0x00000004    [ AVAIL-TO-DLSYM,ADD-DEPENDENCIES ]\n\
668   \t        ----------------------------------------------\n\
669   \t        Group Descriptor located at: 0xff3b12e4\n\
670   \t           depend: 0xff3b065c    /lib/libdl.so.1\n\
671   \t            flags: 0x00000004    [ AVAIL-TO-DLSYM,ADD-DEPENDENCIES ]\n"
672
673
674#
675# Group handle and group descriptor messages.
676#
677
678@ MSG_GRPHDL_STR	"GrpHdl"
679
680@ MSG_GRPHDL_DCD	"Display a Group Handle"
681
682@ MSG_GRPHDL_LINE1	"Group Handle located at: 0x%0?p\n"
683@ MSG_GRPHDL_LINE2	"    owner:               %s\n"
684@ MSG_GRPHDL_LINE3	"    flags: 0x%08x    [ %#b ]\n"
685@ MSG_GRPHDL_LINE4	"   refcnt:   %8d    depends: 0\n"
686@ MSG_GRPHDL_LINE5	"   refcnt:   %8d    depends: 0x%0?p \
687			 Alist[used %u: total %u]\n"
688
689@ MSG_GRPHDL_HELP	"\
690   Decode a group handle.  A successful dlopen() of an object returns a\n\
691   handle applicable for subsequent dlsym() requests.  The handle maintains\n\
692   a reference count, flags and a table of group descriptors that define the\n\
693   dependencies associated with this group of objects.\n\
694   \n\
695   The -v option expands each group descriptor.\n\
696   \n\
697   Example:\n\n\
698   \t> 0xff3a0c58::GrpHdl\n\
699   \tGroup Handle located at: 0xff3a0c58\n\
700   \t----------------------------------------------\n\
701   \t   refcnt:          1    main\n\
702   \t    flags: 0x00000001    [ DLOPEN-ZERO ]\n\
703   \t  depends: 0xff3a0c89 Alist[next 1: cnt 2]\n"
704
705
706
707@ MSG_GRPDESC_STR	"GrpDesc"
708
709@ MSG_GRPDESC_DCD	"Display a Group Descriptor"
710
711@ MSG_GRPDESC_LINE1	"Group Descriptor located at: 0x%0?p\n"
712@ MSG_GRPDESC_LINE2	"   depend: 0x%0?p    %s\n"
713@ MSG_GRPDESC_LINE3	"    flags: 0x%08x    [ %#b ]\n"
714
715@ MSG_GRPDESC_HELP	"\
716   Decode a group descriptor.  A GrpHdl created by dlopen() maintains a\n\
717   list of group descriptors for each dependency.  See GrpHdl.\n\
718   \n\
719   Example\n\n\
720   \t> 0xff3b12d4::GrpDesc -v\n\
721   \tGroup Descriptor located at: 0xff3b12d4\n\
722   \t   depend: 0xff3b0f6c    ./sub.so\n\
723   \t    flags: 0x00000003    [ AVAIL-TO-DLSYM,ADD-DEPENDENCIES ]\n"
724
725
726@ MSG_BNDDESC_STR	"BndDesc"
727
728#
729# General purpose environment addition.
730#
731
732@ MSG_SETENV_STR	"Setenv"
733
734@ MSG_SETENV_DCD	"Set an environment variable"
735
736@ MSG_SETENV_HELP	"\
737   Set the associated environment variable.  This can be useful to establish\n\
738   runtime linker environment variables without affecting the debugger itself.\n\
739   \n\
740   Note, newer versions of mdb(1) provide setenv.  The mdb(1) implementation\n\
741   provides the ability to make environment changes at any point during\n\
742   application monitoring.  Where available, Setenv calls through to setenv.\n\
743   On older environments, Setenv only provides for changing the applications\n\
744   environment before it is invoked.\n\
745   \n\
746   Example\n\n\
747   \t> ::Setenv LD_DEBUG=files\n"
748