xref: /onnv-gate/usr/src/cmd/sgs/elfdump/common/elfdump.msg (revision 6206:6b0ed502a8e7)
10Sstevel@tonic-gate#
20Sstevel@tonic-gate# CDDL HEADER START
30Sstevel@tonic-gate#
40Sstevel@tonic-gate# The contents of this file are subject to the terms of the
51618Srie# Common Development and Distribution License (the "License").
61618Srie# You may not use this file except in compliance with the License.
70Sstevel@tonic-gate#
80Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
90Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
100Sstevel@tonic-gate# See the License for the specific language governing permissions
110Sstevel@tonic-gate# and limitations under the License.
120Sstevel@tonic-gate#
130Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
140Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
150Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
160Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
170Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
180Sstevel@tonic-gate#
190Sstevel@tonic-gate# CDDL HEADER END
200Sstevel@tonic-gate#
211324Srie
221324Srie#
23*6206Sab196087# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
241324Srie# Use is subject to license terms.
251324Srie#
260Sstevel@tonic-gate# ident	"%Z%%M%	%I%	%E% SMI"
271618Srie#
280Sstevel@tonic-gate
290Sstevel@tonic-gate@ _START_
300Sstevel@tonic-gate
310Sstevel@tonic-gate# Message file for cmd/sgs/elfdump.
320Sstevel@tonic-gate
330Sstevel@tonic-gate@ MSG_ID_ELFDUMP
340Sstevel@tonic-gate
350Sstevel@tonic-gate# Usage Messages
360Sstevel@tonic-gate
375411Sab196087@ MSG_USAGE_BRIEF	"usage: %s [-cCdegGhHiklmnrSsuvy] [-I index] \
385411Sab196087			 [-N name] [-T type] [-p | -w outfile] file...\n"
390Sstevel@tonic-gate@ MSG_USAGE_DETAIL1	"\t[-c]\t\tdump section header information\n"
400Sstevel@tonic-gate@ MSG_USAGE_DETAIL2	"\t[-C]\t\tdemangle C++ symbol names\n"
410Sstevel@tonic-gate@ MSG_USAGE_DETAIL3	"\t[-d]\t\tdump the contents of the .dynamic section\n"
420Sstevel@tonic-gate@ MSG_USAGE_DETAIL4	"\t[-e]\t\tdump the elf header\n"
430Sstevel@tonic-gate@ MSG_USAGE_DETAIL5	"\t[-g]\t\tdump the contents of the .group sections\n"
440Sstevel@tonic-gate@ MSG_USAGE_DETAIL6	"\t[-G]\t\tdump the contents of the .got section\n"
450Sstevel@tonic-gate@ MSG_USAGE_DETAIL7	"\t[-h]\t\tdump the contents of the .hash section\n"
460Sstevel@tonic-gate@ MSG_USAGE_DETAIL8	"\t[-H]\t\tdump the contents of the .SUNW_hwcap \
470Sstevel@tonic-gate			 section\n"
480Sstevel@tonic-gate@ MSG_USAGE_DETAIL9	"\t[-i]\t\tdump the contents of the .interp section\n"
494168Sab196087@ MSG_USAGE_DETAIL10	"\t[-I index]\tqualify an option with an index\n"
504168Sab196087@ MSG_USAGE_DETAIL11	"\t[-l]\t\tdump with no truncated section names\n"
514168Sab196087@ MSG_USAGE_DETAIL12	"\t[-k]\t\tcalculate elf checksum\n"
524168Sab196087@ MSG_USAGE_DETAIL13	"\t[-m]\t\tdump the contents of the .SUNW_move \
530Sstevel@tonic-gate			 section\n"
544168Sab196087@ MSG_USAGE_DETAIL14	"\t[-n]\t\tdump the contents of the .note section\n"
554168Sab196087@ MSG_USAGE_DETAIL15	"\t[-N name]\tqualify an option with a `name'\n"
564665Sab196087@ MSG_USAGE_DETAIL16	"\t[-P]\t\tuse program headers to generate \
574665Sab196087			 section headers\n"
584665Sab196087@ MSG_USAGE_DETAIL17	"\t[-p]\t\tdump the program headers\n"
594665Sab196087@ MSG_USAGE_DETAIL18	"\t[-r]\t\tdump the contents of the relocation \
600Sstevel@tonic-gate			 sections\n"
614665Sab196087@ MSG_USAGE_DETAIL19	"\t[-S]\t\tdump the contents of the sort index \
623492Sab196087			 sections\n"
634665Sab196087@ MSG_USAGE_DETAIL20	"\t[-s]\t\tdump the contents of the symbol table \
644665Sab196087			 sections\n"
655411Sab196087@ MSG_USAGE_DETAIL21	"\t[-T type]\tqualify an option with a section or \
665411Sab196087			 program header type\n"
675411Sab196087@ MSG_USAGE_DETAIL22	"\t[-u]\t\tdump the contents of a frame unwind \
680Sstevel@tonic-gate			 section\n"
695411Sab196087@ MSG_USAGE_DETAIL23	"\t[-v]\t\tdump the contents of the version sections\n"
705411Sab196087@ MSG_USAGE_DETAIL24	"\t[-w file]\twrite the contents of specified section \
710Sstevel@tonic-gate			 to `file'\n"
725411Sab196087@ MSG_USAGE_DETAIL25	"\t[-y]\t\tdump the contents of the .SUNW_syminfo \
730Sstevel@tonic-gate			 section\n"
740Sstevel@tonic-gate
750Sstevel@tonic-gate# Errors
760Sstevel@tonic-gate
770Sstevel@tonic-gate@ MSG_ERR_BADFILE	"%s: invalid file type\n"
780Sstevel@tonic-gate@ MSG_ERR_BADREL1       "%s: bad relocation entry: %s: relocation requires symbol\n"
794665Sab196087@ MSG_ERR_NOSHDR	"%s: section headers are not present: synthesizing \
804665Sab196087			 from program headers (-P option)\n"
814665Sab196087@ MSG_ERR_PNEEDSPH	"%s: file without program headers is incompatible \
824665Sab196087			 with -P option\n"
834156Sab196087@ MSG_ERR_NOSHSTRSEC	"%s: no header string table section (shstrtab). \
844156Sab196087			 header names are not available\n"
854156Sab196087@ MSG_ERR_SHSTRNULL	"%s: zero size section header string table \
864156Sab196087			 (shstrtab). header names are not available\n"
870Sstevel@tonic-gate@ MSG_ERR_FAILURE	"%s: %s failed: %s\n"
884146Sab196087@ MSG_ERR_BADSHDRALIGN	"%s: bad section header array alignment\n"
894146Sab196087@ MSG_ERR_BADPHDRALIGN	"%s: bad program header array alignment\n"
903862Srie@ MSG_ERR_BADSHNAME	"%s: section[%d]: invalid sh_name: %lld\n"
911618Srie@ MSG_ERR_BADSHLINK	"%s: %s: invalid sh_link: %d\n"
921618Srie@ MSG_ERR_BADSHINFO	"%s: %s: invalid sh_info: %d\n"
931618Srie@ MSG_ERR_BADSHTYPE	"%s: %s: invalid sh_type: %d\n"
940Sstevel@tonic-gate@ MSG_ERR_BADALIGN	"%s: %s: bad sh_offset alignment\n"
95*6206Sab196087@ MSG_ERR_BADSYM2	"%s: %s: index[%d]: bad symbol entry: %s: must be SHN_COMMON or \
960Sstevel@tonic-gate			 defined in SHT_NOBITS section\n"
97*6206Sab196087@ MSG_ERR_BADSYM3	"%s: %s: index[%d]: bad symbol entry: %s: must be defined in \
980Sstevel@tonic-gate			 a SHF_TLS section\n"
99*6206Sab196087@ MSG_ERR_BADSYM4	"%s: %s: index[%d]: bad symbol entry: %s: must be defined in \
1000Sstevel@tonic-gate			 a non-SHF_TLS section\n"
101*6206Sab196087@ MSG_ERR_BADSYM5	"%s: %s: index[%d]: bad symbol entry: %s: \
102*6206Sab196087			 invalid shndx: %d\n"
103*6206Sab196087@ MSG_ERR_BADSYM6	"%s: %s: index[%d]: bad symbol entry: %s: section[%d] \
1044474Sab196087			 size: %#llx: symbol (address %#llx, size %#llx) \
1054474Sab196087			 lies outside of containing section\n"
106*6206Sab196087@ MSG_ERR_BADSYM7	"%s: %s: index[%d]: suspicious global symbol entry: %s: lies \
1074832Srie			 within local symbol range (index < %lld)\n"
108*6206Sab196087@ MSG_ERR_BADSYM8	"%s: %s: index[%d]: suspicious local symbol entry: %s: lies \
1094832Srie			 within global symbol range (index >= %lld)\n"
1101618Srie
1111618Srie@ MSG_ERR_RELBADSYMNDX	"%s: bad symbol reference %d: from relocation \
1121618Srie			 entry: %d\n"
1131618Srie@ MSG_ERR_HSBADSYMNDX	"%s: bad symbol reference %d: from hash entry: %d\n"
1140Sstevel@tonic-gate@ MSG_ERR_BADSYMXINDEX1	"%s: %s: index[%d]: invalid SHN_XINDEX reference: \
1150Sstevel@tonic-gate			 SHT_SYMTAB_SHNDX section truncated: no entry for this \
1160Sstevel@tonic-gate			 symbol\n"
1170Sstevel@tonic-gate@ MSG_ERR_BADSYMXINDEX2	"%s: %s: index[%d]: invalid SHN_XINDEX reference: \
1180Sstevel@tonic-gate			 bad SHT_SYMTAB_SHNDX entry: invalid shndx: 0x%x\n"
1190Sstevel@tonic-gate@ MSG_ERR_BADSYMXINDEX3	"%s: %s: index[%d]: invalid SHN_XINDEX reference: \
1200Sstevel@tonic-gate			 SHT_SYMTAB_SHNDX section not found\n"
1211618Srie
1221618Srie@ MSG_ERR_BADSTOFF	"%s: %s: index[%d]: bad %s offset: 0x%x: max 0x%x\n"
1231618Srie@ MSG_ERR_BADSZ		"%s: %s: zero size or zero entry size information\n"
1240Sstevel@tonic-gate@ MSG_ERR_BADMINFO	"%s: %s: invalid m_info: 0x%llx\n"
1250Sstevel@tonic-gate@ MSG_ERR_BADHASH	"%s: %s: bad hash entry: symbol %s: exists in bucket \
1261618Srie			 %d, should be bucket %ld\n"
1273492Sab196087@ MSG_ERR_NODYNSYM	"%s: %s: associated SHT_DYNSYM section not found\n"
1283875Sab196087@ MSG_ERR_BADNDXSEC	"%s: %s: unexpected section type associated with \
1293875Sab196087			 index section: %s\n"
1303862Srie@ MSG_ERR_BADSORTNDX	"%s: %s: sort section has bad symbol index: %d\n"
1313875Sab196087@ MSG_ERR_BADVER	"%s: %s: index[%d]: version %d is out of range: \
1323875Sab196087			 version definitions available: 0-%d\n"
1334063Sab196087@ MSG_ERR_NOTSTRTAB	"%s: section[%d] is not a string table as expected \
1344063Sab196087			 by section[%d]\n";
1353862Srie
1363492Sab196087@ MSG_ERR_LDYNNOTADJ	"%s: bad dynamic symbol table layout: %s and %s \
1373492Sab196087			 sections are not adjacent\n"
1383862Srie@ MSG_ERR_SECMEMOVER	"%s: memory overlap between section[%d]: %s: %llx:%llx \
1393862Srie			 and section[%d]: %s: %llx:%llx\n"
1403862Srie@ MSG_ERR_SHDRMEMOVER	"%s: memory overlap between section header table: \
1413862Srie			 %llx:%llx and section[%d]: %s: %llx:%llx\n"
1425230Sab196087@ MSG_ERR_MULTDYN	"%s: %d dynamic sections seen (1 expected)\n"
1435230Sab196087@ MSG_ERR_DYNNOBCKSEC	"%s: object lacks %s section required by DT_%s dynamic \
1445230Sab196087			 entry\n"
1455230Sab196087@ MSG_ERR_DYNBADADDR	"%s: DT_%s (%#llx) does not match \
1465230Sab196087			 shdr[%d: %s].sh_addr (%#llx)\n"
1475230Sab196087@ MSG_ERR_DYNBADSIZE	"%s: DT_%s (%#llx) does not match \
1485230Sab196087			 shdr[%d: %s].sh_size (%#llx)\n"
1495230Sab196087@ MSG_ERR_DYNBADENTSIZE	"%s: DT_%s (%#llx) does not match \
1505230Sab196087			 shdr[%d: %s].sh_entsize (%#llx)\n"
1510Sstevel@tonic-gate
1520Sstevel@tonic-gate@ MSG_WARN_INVINTERP1	"%s: PT_INTERP header has no associated section\n"
1530Sstevel@tonic-gate@ MSG_WARN_INVINTERP2	"%s: interp section: %s: and PT_INTERP program \
1540Sstevel@tonic-gate			 header have conflicting size or offsets\n"
1550Sstevel@tonic-gate@ MSG_WARN_INVCAP1	"%s: PT_SUNWCAP header has no associated section\n"
1560Sstevel@tonic-gate@ MSG_WARN_INVCAP2	"%s: capabilities section: %s: requires PT_CAP program \
1570Sstevel@tonic-gate			 header\n"
1580Sstevel@tonic-gate@ MSG_WARN_INVCAP3	"%s: capabilities section: %s: and PT_CAP program \
1590Sstevel@tonic-gate			 header have conflicting size or offsets\n"
1600Sstevel@tonic-gate
1610Sstevel@tonic-gate# Elf Output Messages
1620Sstevel@tonic-gate
1630Sstevel@tonic-gate@ MSG_ELF_SHDR		"Section Header[%d]:  sh_name: %s"
1640Sstevel@tonic-gate@ MSG_ELF_PHDR		"Program Header[%d]:"
1650Sstevel@tonic-gate
1660Sstevel@tonic-gate@ MSG_ELF_SCN_CAP	"Hardware/Software Capabilities Section:  %s"
1670Sstevel@tonic-gate@ MSG_ELF_SCN_INTERP	"Interpreter Section:  %s"
1680Sstevel@tonic-gate@ MSG_ELF_SCN_VERDEF	"Version Definition Section:  %s"
1690Sstevel@tonic-gate@ MSG_ELF_SCN_VERNEED	"Version Needed Section:  %s"
1700Sstevel@tonic-gate@ MSG_ELF_SCN_SYMTAB	"Symbol Table Section:  %s"
1710Sstevel@tonic-gate@ MSG_ELF_SCN_RELOC	"Relocation Section:  %s"
1720Sstevel@tonic-gate@ MSG_ELF_SCN_UNWIND	"Unwind Section: %s"
1730Sstevel@tonic-gate@ MSG_ELF_SCN_DYNAMIC	"Dynamic Section:  %s"
1740Sstevel@tonic-gate@ MSG_ELF_SCN_NOTE	"Note Section:  %s"
1750Sstevel@tonic-gate@ MSG_ELF_SCN_HASH	"Hash Section:  %s"
1760Sstevel@tonic-gate@ MSG_ELF_SCN_SYMINFO	"Syminfo Section:  %s"
1771618Srie@ MSG_ELF_SCN_GOT	"Global Offset Table Section:  %s"
1781618Srie@ MSG_ELF_SCN_GRP	"Group Section:  %s"
1791618Srie@ MSG_ELF_SCN_MOVE	"Move Section:  %s"
1803492Sab196087@ MSG_ELF_SCN_SYMSORT1	"Symbol Sort Section:  %s (%s)"
1813492Sab196087@ MSG_ELF_SCN_SYMSORT2	"Symbol Sort Section:  %s (%s / %s)"
1820Sstevel@tonic-gate
1830Sstevel@tonic-gate@ MSG_ELF_HASH_BKTS1	"%10.10s  buckets contain %8d symbols"
1840Sstevel@tonic-gate@ MSG_ELF_HASH_BKTS2	"%10.10s  buckets         %8d symbols (globals)"
1851618Srie@ MSG_ELF_HASH_INFO	"    bucket  symndx      name"
1861324Srie@ MSG_HASH_OVERFLW	"%s: warning: section %s: too many symbols to count, \
1871324Srie			 bucket=%d count=%d"
1880Sstevel@tonic-gate@ MSG_ELF_ERR_SHDR	"\tunable to obtain section header: shstrtab[%lld]\n"
1890Sstevel@tonic-gate@ MSG_ELF_ERR_DATA	"\tunable to obtain section data: shstrtab[%lld]\n"
1900Sstevel@tonic-gate@ MSG_ELF_ERR_SCN	"\tunable to obtain section header: section[%d]\n"
1910Sstevel@tonic-gate@ MSG_ELF_ERR_SCNDATA	"\tunable to obtain section data: section[%d]\n"
1920Sstevel@tonic-gate@ MSG_ARCHIVE_SYMTAB	"\nSymbol Table: (archive)"
1930Sstevel@tonic-gate@ MSG_ARCHIVE_FIELDS	"     index    offset    member name and symbol"
1941324Srie
1950Sstevel@tonic-gate@ MSG_GOT_MULTIPLE	"%s: multiple relocations against \
1960Sstevel@tonic-gate			 the same GOT entry ndx: %d addr: 0x%llx\n"
1971324Srie@ MSG_GOT_UNEXPECTED	"%s: warning: section %s: section unexpected within \
1981324Srie			 relocatable object\n"
1990Sstevel@tonic-gate
2000Sstevel@tonic-gate# Miscellaneous clutter
2010Sstevel@tonic-gate
2020Sstevel@tonic-gate@ MSG_STR_NULL		"(null)"
2030Sstevel@tonic-gate@ MSG_STR_DEPRECATED	"(deprecated value)"
2040Sstevel@tonic-gate@ MSG_STR_UNKNOWN	"<unknown>"
2050Sstevel@tonic-gate@ MSG_STR_SECTION	"%.12s (section)"
2060Sstevel@tonic-gate@ MSG_STR_L_SECTION	"%s (section)"
2070Sstevel@tonic-gate@ MSG_STR_CHECKSUM	"elf checksum: 0x%lx"
2080Sstevel@tonic-gate
2090Sstevel@tonic-gate@ MSG_FMT_SCNNDX	"section[%d]"
2100Sstevel@tonic-gate
2110Sstevel@tonic-gate@ MSG_ERR_MALLOC	"%s: malloc: %s\n"
2120Sstevel@tonic-gate@ MSG_ERR_OPEN		"%s: open: %s\n"
2134665Sab196087@ MSG_ERR_READ		"%s: read: %s\n"
2145411Sab196087@ MSG_ERR_WRITE		"%s: write: %s\n"
2155411Sab196087@ MSG_ERR_BAD_T_SHT	"%s: unrecognized section header type: %s\n"
2165411Sab196087@ MSG_ERR_BAD_T_PT	"%s: unrecognized program header type: %s\n"
2175411Sab196087@ MSG_ERR_AMBIG_MATCH	"%s: ambiguous use of -I, -N, or -T. Remove \
2185411Sab196087			 -p option or section selection option(s)\n"
2190Sstevel@tonic-gate
2200Sstevel@tonic-gate#
2211618Srie# SHT_MOVE messages
2220Sstevel@tonic-gate#
2231618Srie@ MSG_MOVE_TITLE	"    symndx offset   size repeat stride   \
2241618Srie			 value               with respect to"
2251618Srie@ MSG_MOVE_ENTRY	"%10.10s %6lld %6d %6d %6d %#18.18llx  %s"
2260Sstevel@tonic-gate
2270Sstevel@tonic-gate#
2280Sstevel@tonic-gate# SHT_GROUP messages
2290Sstevel@tonic-gate#
2301618Srie@ MSG_GRP_TITLE		"     index    flags / section         signature symbol"
2311618Srie@ MSG_GRP_SIGNATURE	"       [0]   %-24s %s"
2320Sstevel@tonic-gate@ MSG_GRP_INVALSCN	"<invalid section>"
2330Sstevel@tonic-gate
2340Sstevel@tonic-gate#
2350Sstevel@tonic-gate# SHT_NOTE messages
2360Sstevel@tonic-gate#
2371618Srie@ MSG_NOTE_BADDATASZ	"%s: %s: note header exceeds section size. \
2380Sstevel@tonic-gate			 offset: 0x%x\n"
2391618Srie@ MSG_NOTE_BADNMSZ	"%s: %s: note name value exceeds section size. \
2400Sstevel@tonic-gate			 offset: 0x%x namesize: 0x%x\n"
2411618Srie@ MSG_NOTE_BADDESZ	"%s: %s: note data size exceeds section size. \
2420Sstevel@tonic-gate			 offset: 0x%x datasize: 0x%x\n"
2430Sstevel@tonic-gate
2440Sstevel@tonic-gate@ _END_
2450Sstevel@tonic-gate
2460Sstevel@tonic-gate# The following strings represent reserved words, files, pathnames and symbols.
2470Sstevel@tonic-gate# Reference to this strings is via the MSG_ORIG() macro, and thus no message
2480Sstevel@tonic-gate# translation is required.
2490Sstevel@tonic-gate
2501618Srie@ MSG_STR_OSQBRKT	"["
2511618Srie@ MSG_STR_CSQBRKT	"]"
2520Sstevel@tonic-gate
2531618Srie@ MSG_GRP_COMDAT	" COMDAT "
2541618Srie@ MSG_GRP_ENTRY		"%10.10s   %s [%lld]\n"
2551618Srie@ MSG_GRP_UNKNOWN	" 0x%x "
2560Sstevel@tonic-gate
2570Sstevel@tonic-gate@ MSG_ELF_GOT		".got"
2585230Sab196087@ MSG_ELF_INIT		".init"
2595230Sab196087@ MSG_ELF_FINI		".fini"
2605411Sab196087@ MSG_ELF_INTERP	".interp"
2610Sstevel@tonic-gate
2620Sstevel@tonic-gate@ MSG_ELF_GETEHDR	"elf_getehdr"
2630Sstevel@tonic-gate@ MSG_ELF_GETPHDR	"elf_getphdr"
2640Sstevel@tonic-gate@ MSG_ELF_GETSHDR	"elf_getshdr"
2650Sstevel@tonic-gate@ MSG_ELF_GETSCN	"elf_getscn"
2660Sstevel@tonic-gate@ MSG_ELF_GETDATA	"elf_getdata"
2670Sstevel@tonic-gate@ MSG_ELF_GETARHDR	"elf_getarhdr"
2680Sstevel@tonic-gate@ MSG_ELF_GETARSYM	"elf_getarsym"
2690Sstevel@tonic-gate@ MSG_ELF_RAND		"elf_rand"
2700Sstevel@tonic-gate@ MSG_ELF_BEGIN		"elf_begin"
271942Sahl@ MSG_ELF_GETPHNUM	"elf_getphnum"
2720Sstevel@tonic-gate@ MSG_ELF_GETSHNUM	"elf_getshnum"
2730Sstevel@tonic-gate@ MSG_ELF_GETSHSTRNDX	"elf_getshstrndx"
2744665Sab196087@ MSG_ELF_XLATETOM	"elf_xlatetom"
2750Sstevel@tonic-gate@ MSG_ELF_ARSYM		"ARSYM"
2760Sstevel@tonic-gate
2770Sstevel@tonic-gate@ MSG_GOT_SYM		"_GLOBAL_OFFSET_TABLE_"
2780Sstevel@tonic-gate
2795411Sab196087@ MSG_STR_OPTIONS	"CcdeGgHhiI:klmN:nPprSsT:uvw:y"
2800Sstevel@tonic-gate
2810Sstevel@tonic-gate@ MSG_STR_EMPTY		""
2820Sstevel@tonic-gate
2830Sstevel@tonic-gate@ MSG_FMT_INDENT	"	%s"
2840Sstevel@tonic-gate@ MSG_FMT_INDEX		" [%lld]"
2851618Srie@ MSG_FMT_INDEX2	"[%d]"
2860Sstevel@tonic-gate@ MSG_FMT_INTEGER	" %d"
2870Sstevel@tonic-gate@ MSG_FMT_HASH_INFO	"%10.10s  %-10s  %s"
2880Sstevel@tonic-gate@ MSG_FMT_ARSYM1	"%10.10s  0x%8.8x  (%s):%s"
2890Sstevel@tonic-gate@ MSG_FMT_ARSYM2	"%10.10s  0x%8.8x"
2900Sstevel@tonic-gate@ MSG_FMT_ARNAME	"%s(%s)"
2910Sstevel@tonic-gate@ MSG_FMT_NLSTR		"\n%s:"
2920Sstevel@tonic-gate@ MSG_FMT_NLSTRNL	"\n%s:\n"
2930Sstevel@tonic-gate
2940Sstevel@tonic-gate@ MSG_SUNW_OST_SGS	"SUNW_OST_SGS"
2950Sstevel@tonic-gate
2960Sstevel@tonic-gate# Unwind info
2971618Srie
2980Sstevel@tonic-gate@ MSG_SCN_FRM		".eh_frame"
2990Sstevel@tonic-gate@ MSG_SCN_FRMHDR	".eh_frame_hdr"
3001618Srie
3010Sstevel@tonic-gate@ MSG_UNW_FRMHDR	"Frame Header:"
3020Sstevel@tonic-gate@ MSG_UNW_FRMVERS	"  Version: %d"
3031618Srie@ MSG_UNW_FRPTRENC	"  FramePtrEnc: %-20s  FramePtr: 0x%llx"
3041618Srie@ MSG_UNW_FDCNENC	"  FdeCntEnc:   %-20s  FdeCnt: %lld"
3051618Srie@ MSG_UNW_TABENC	"  TableEnc:    %-20s"
3060Sstevel@tonic-gate@ MSG_UNW_BINSRTAB1	"  Binary Search Table:"
3071618Srie@ MSG_UNW_BINSRTAB2	"      InitialLoc          FdeLoc"
3081618Srie@ MSG_UNW_BINSRTABENT	"    0x%016llx  0x%016llx"
3090Sstevel@tonic-gate@ MSG_UNW_CIE		"CIE: [0x%08llx]"
3100Sstevel@tonic-gate@ MSG_UNW_CIELNGTH	" length: 0x%02x cieid: %d"
3110Sstevel@tonic-gate@ MSG_UNW_CIEVERS	" version: %d  augstring: `%s'"
3120Sstevel@tonic-gate@ MSG_UNW_CIECALGN	" codealign: 0x%llx  dataalign: %lld  \
3130Sstevel@tonic-gate			  retaddr: %d"
3144433Sab196087@ MSG_UNW_CIEAXVAL	" Auxiliary vals:"
3154433Sab196087@ MSG_UNW_CIEAXSIZ	"   size: %d"
3164433Sab196087@ MSG_UNW_CIEAXPERS	"   pers: 0x%02x %s 0x%08llx"
3174433Sab196087@ MSG_UNW_CIEAXCENC	"   cenc: 0x%02x %s"
3184433Sab196087@ MSG_UNW_CIEAXLSDA	"   lsda: 0x%02x %s"
3194433Sab196087@ MSG_UNW_CIEAXUNEC	"   Unexpected aug val: %c"
3200Sstevel@tonic-gate@ MSG_UNW_CIECFI	" CallFrameInstructions:"
3211618Srie@ MSG_UNW_CIEPRE	"   "
3220Sstevel@tonic-gate
3230Sstevel@tonic-gate@ MSG_UNW_FDE		" FDE: [0x%08llx]"
3240Sstevel@tonic-gate@ MSG_UNW_FDELNGTH	"    length: 0x%02x  cieptr: 0x%02x"
3250Sstevel@tonic-gate@ MSG_UNW_FDEINITLOC	"    initloc: 0x%08llx  addrrange: 0x%04llx"
3264433Sab196087@ MSG_UNW_FDEAXVAL	"   Auxiliary vals:"
3274433Sab196087@ MSG_UNW_FDEAXSIZE	"      size: 0x%llx"
3284433Sab196087@ MSG_UNW_FDEAXLSDA	"    lsda: 0x%llx"
3290Sstevel@tonic-gate@ MSG_UNW_FDECFI	"    CallFrameInstructions:"
3301618Srie@ MSG_UNW_FDEPRE	"      "
3311618Srie
3321618Srie@ MSG_UNW_TBLENTRY	"0x%02x "
3330Sstevel@tonic-gate
3340Sstevel@tonic-gate# Note messages
3350Sstevel@tonic-gate
3360Sstevel@tonic-gate@ MSG_NOTE_TYPE		"    type   %#x"
3370Sstevel@tonic-gate@ MSG_NOTE_NAMESZ	"    namesz %#x:"
3380Sstevel@tonic-gate@ MSG_NOTE_DESCSZ	"    descsz %#x:"
3390Sstevel@tonic-gate@ MSG_NOTE_DESC		"      desc[%d]\t%s"
3400Sstevel@tonic-gate@ MSG_NOTE_TOK		"%2.2x "
3414665Sab196087
3424665Sab196087# Names of fake sections generated from program header data
3434665Sab196087@ MSG_PHDRNAM_CAP		".SUNW_cap(phdr)"
3444665Sab196087@ MSG_PHDRNAM_DYN		".dynamic(phdr)"
3454665Sab196087@ MSG_PHDRNAM_DYNSTR		".dynstr(phdr)"
3464665Sab196087@ MSG_PHDRNAM_DYNSYM		".dynsym(phdr)"
3474665Sab196087@ MSG_PHDRNAM_FINIARR		".finiarray(phdr)"
3484665Sab196087@ MSG_PHDRNAM_HASH		".hash(phdr)"
3494665Sab196087@ MSG_PHDRNAM_INITARR		".initarray(phdr)"
3504665Sab196087@ MSG_PHDRNAM_INTERP		".interp(phdr)"
3514665Sab196087@ MSG_PHDRNAM_LDYNSYM		".SUNW_ldynsym(phdr)"
3524665Sab196087@ MSG_PHDRNAM_MOVE		".move(phdr)"
3534665Sab196087@ MSG_PHDRNAM_NOTE		".note(phdr)"
3544665Sab196087@ MSG_PHDRNAM_PREINITARR	".preinitarray(phdr)"
3554665Sab196087@ MSG_PHDRNAM_REL		".rel(phdr)"
3564665Sab196087@ MSG_PHDRNAM_RELA		".rela(phdr)"
3574665Sab196087@ MSG_PHDRNAM_SYMINFO		".syminfo(phdr)"
3584665Sab196087@ MSG_PHDRNAM_SYMSORT		".SUNW_symsort(phdr)"
3594665Sab196087@ MSG_PHDRNAM_TLSSORT		".SUNW_tlssort(phdr)"
3604665Sab196087@ MSG_PHDRNAM_UNWIND		".eh_frame_hdr(phdr)"
3614665Sab196087@ MSG_PHDRNAM_VER		".SUNW_version(phdr)"
3624665Sab196087
3635411Sab196087
3645411Sab196087# Names of sh_type SHT_* type constants
3655411Sab196087
3665411Sab196087@ MSG_SHT_NULL			"SHT_NULL"		# 0
3675411Sab196087@ MSG_SHT_NULL_ALT1		"null"
3685411Sab196087@ MSG_SHT_PROGBITS		"SHT_PROGBITS"		# 1
3695411Sab196087@ MSG_SHT_PROGBITS_ALT1		"progbits"
3705411Sab196087@ MSG_SHT_SYMTAB		"SHT_SYMTAB"		# 2
3715411Sab196087@ MSG_SHT_SYMTAB_ALT1		"symtab"
3725411Sab196087@ MSG_SHT_STRTAB		"SHT_STRTAB"		# 3
3735411Sab196087@ MSG_SHT_STRTAB_ALT1		"strtab"
3745411Sab196087@ MSG_SHT_RELA			"SHT_RELA"		# 4
3755411Sab196087@ MSG_SHT_RELA_ALT1		"rela"
3765411Sab196087@ MSG_SHT_HASH			"SHT_HASH"		# 5
3775411Sab196087@ MSG_SHT_HASH_ALT1		"hash"
3785411Sab196087@ MSG_SHT_DYNAMIC		"SHT_DYNAMIC"		# 6
3795411Sab196087@ MSG_SHT_DYNAMIC_ALT1		"dynamic"
3805411Sab196087@ MSG_SHT_NOTE			"SHT_NOTE"		# 7
3815411Sab196087@ MSG_SHT_NOTE_ALT1		"note"
3825411Sab196087@ MSG_SHT_NOBITS		"SHT_NOBITS"		# 8
3835411Sab196087@ MSG_SHT_NOBITS_ALT1		"nobits"
3845411Sab196087@ MSG_SHT_REL			"SHT_REL"		# 9
3855411Sab196087@ MSG_SHT_REL_ALT1		"rel"
3865411Sab196087@ MSG_SHT_SHLIB			"SHT_SHLIB"		# 10
3875411Sab196087@ MSG_SHT_SHLIB_ALT1		"shlib"
3885411Sab196087@ MSG_SHT_DYNSYM		"SHT_DYNSYM"		# 11
3895411Sab196087@ MSG_SHT_DYNSYM_ALT1		"dynsym"
3905411Sab196087@ MSG_SHT_INIT_ARRAY		"SHT_INIT_ARRAY"	# 14
3915411Sab196087@ MSG_SHT_INIT_ARRAY_ALT1	"init_array"
3925411Sab196087@ MSG_SHT_FINI_ARRAY		"SHT_FINI_ARRAY"	# 15
3935411Sab196087@ MSG_SHT_FINI_ARRAY_ALT1	"fini_array"
3945411Sab196087@ MSG_SHT_PREINIT_ARRAY		"SHT_PREINIT_ARRAY"	# 16
3955411Sab196087@ MSG_SHT_PREINIT_ARRAY_ALT1	"preinit_ARRAY"
3965411Sab196087@ MSG_SHT_GROUP			"SHT_GROUP"		# 17
3975411Sab196087@ MSG_SHT_GROUP_ALT1		"group"
3985411Sab196087@ MSG_SHT_SYMTAB_SHNDX		"SHT_SYMTAB_SHNDX"	# 18
3995411Sab196087@ MSG_SHT_SYMTAB_SHNDX_ALT1	"symtab_shndx"
4005411Sab196087@ MSG_SHT_SUNW_SYMSORT		"SHT_SUNW_symsort"	# 0x6ffffff1
4015411Sab196087@ MSG_SHT_SUNW_SYMSORT_ALT1	"sunw_symsort"
4025411Sab196087@ MSG_SHT_SUNW_TLSSORT		"SHT_SUNW_tlssort"	# 0x6ffffff2
4035411Sab196087@ MSG_SHT_SUNW_TLSSORT_ALT1	"sunw_tlssort"
4045411Sab196087@ MSG_SHT_SUNW_LDYNSYM		"SHT_SUNW_LDYNSYM"	# 0x6ffffff3
4055411Sab196087@ MSG_SHT_SUNW_LDYNSYM_ALT1	"sunw_ldynsym"
4065411Sab196087@ MSG_SHT_SUNW_DOF		"SHT_SUNW_dof"		# 0x6ffffff4
4075411Sab196087@ MSG_SHT_SUNW_DOF_ALT1		"sunw_dof"
4085411Sab196087@ MSG_SHT_SUNW_CAP		"SHT_SUNW_cap"		# 0x6ffffff5
4095411Sab196087@ MSG_SHT_SUNW_CAP_ALT1		"sunw_cap"
4105411Sab196087@ MSG_SHT_SUNW_SIGNATURE	"SHT_SUNW_SIGNATURE"	# 0x6ffffff6
4115411Sab196087@ MSG_SHT_SUNW_SIGNATURE_ALT1	"sunw_signature"
4125411Sab196087@ MSG_SHT_SUNW_ANNOTATE		"SHT_SUNW_ANNOTATE"	# 0x6ffffff7
4135411Sab196087@ MSG_SHT_SUNW_ANNOTATE_ALT1	"sunw_annotate"
4145411Sab196087@ MSG_SHT_SUNW_DEBUGSTR		"SHT_SUNW_DEBUGSTR"	# 0x6ffffff8
4155411Sab196087@ MSG_SHT_SUNW_DEBUGSTR_ALT1	"sunw_debugstr"
4165411Sab196087@ MSG_SHT_SUNW_DEBUG		"SHT_SUNW_DEBUG"	# 0x6ffffff9
4175411Sab196087@ MSG_SHT_SUNW_DEBUG_ALT1	"sunw_debug"
4185411Sab196087@ MSG_SHT_SUNW_MOVE		"SHT_SUNW_move"		# 0x6ffffffa
4195411Sab196087@ MSG_SHT_SUNW_MOVE_ALT1	"sunw_move"
4205411Sab196087@ MSG_SHT_SUNW_COMDAT		"SHT_SUNW_COMDAT"	# 0x6ffffffb
4215411Sab196087@ MSG_SHT_SUNW_COMDAT_ALT1	"sunw_comdat"
4225411Sab196087@ MSG_SHT_SUNW_SYMINFO		"SHT_SUNW_syminfo"	# 0x6ffffffc
4235411Sab196087@ MSG_SHT_SUNW_SYMINFO_ALT1	"sunw_syminfo"
4245411Sab196087@ MSG_SHT_SUNW_VERDEF		"SHT_SUNW_verdef"	# 0x6ffffffd
4255411Sab196087@ MSG_SHT_SUNW_VERDEF_ALT1	"sunw_verdef"
4265411Sab196087@ MSG_SHT_GNU_VERDEF		"SHT_GNU_verdef"	# 0x6ffffffd
4275411Sab196087@ MSG_SHT_GNU_VERDEF_ALT1	"gnu_verdef"
4285411Sab196087@ MSG_SHT_SUNW_VERNEED		"SHT_SUNW_verneed"	# 0x6ffffffe
4295411Sab196087@ MSG_SHT_SUNW_VERNEED_ALT1	"sunw_verneed"
4305411Sab196087@ MSG_SHT_GNU_VERNEED		"SHT_GNU_verneed"	# 0x6ffffffe
4315411Sab196087@ MSG_SHT_GNU_VERNEED_ALT1	"gnu_verneed"
4325411Sab196087@ MSG_SHT_SUNW_VERSYM		"SHT_SUNW_versym"	# 0x6fffffff
4335411Sab196087@ MSG_SHT_SUNW_VERSYM_ALT1	"sunw_versym"
4345411Sab196087@ MSG_SHT_GNU_VERSYM		"SHT_GNU_versym"	# 0x6fffffff
4355411Sab196087@ MSG_SHT_GNU_VERSYM_ALT1	"gnu_versym"
4365411Sab196087@ MSG_SHT_SPARC_GOTDATA		"SHT_SPARC_GOTDATA"	# 0x7000000
4375411Sab196087@ MSG_SHT_SPARC_GOTDATA_ALT1	"sparc_gotdata"
4385411Sab196087@ MSG_SHT_AMD64_UNWIND		"SHT_AMD64_UNWIND"	# 0x7000000
4395411Sab196087@ MSG_SHT_AMD64_UNWIND_ALT1	"amd64_unwind"
4405411Sab196087
4415411Sab196087
4425411Sab196087# Program header PT_ segment types
4435411Sab196087
4445411Sab196087@ MSG_PT_NULL			"PT_NULL"		# 0
4455411Sab196087@ MSG_PT_NULL_ALT1		"null"
4465411Sab196087@ MSG_PT_LOAD			"PT_LOAD"		# 1
4475411Sab196087@ MSG_PT_LOAD_ALT1		"load"
4485411Sab196087@ MSG_PT_DYNAMIC		"PT_DYNAMIC"		# 2
4495411Sab196087@ MSG_PT_DYNAMIC_ALT1		"dynamic"
4505411Sab196087@ MSG_PT_INTERP			"PT_INTERP"		# 3
4515411Sab196087@ MSG_PT_INTERP_ALT1		"interp"
4525411Sab196087@ MSG_PT_NOTE			"PT_NOTE"		# 4
4535411Sab196087@ MSG_PT_NOTE_ALT1		"note"
4545411Sab196087@ MSG_PT_SHLIB			"PT_SHLIB"		# 5
4555411Sab196087@ MSG_PT_SHLIB_ALT1		"shlib"
4565411Sab196087@ MSG_PT_PHDR			"PT_PHDR"		# 6
4575411Sab196087@ MSG_PT_PHDR_ALT1		"phdr"
4585411Sab196087@ MSG_PT_TLS			"PT_TLS"		# 7
4595411Sab196087@ MSG_PT_TLS_ALT1		"tls"
4605411Sab196087@ MSG_PT_SUNW_UNWIND		"PT_SUNW_UNWIND"	# 0x6464e550
4615411Sab196087@ MSG_PT_SUNW_UNWIND_ALT1	"sunw_unwind"
4625411Sab196087@ MSG_PT_SUNWBSS		"PT_SUNWBSS"		# 0x6ffffffa
4635411Sab196087@ MSG_PT_SUNWBSS_ALT1		"sunwbss"
4645411Sab196087@ MSG_PT_SUNWSTACK		"PT_SUNWSTACK"		# 0x6ffffffb
4655411Sab196087@ MSG_PT_SUNWSTACK_ALT1		"sunwstack"
4665411Sab196087@ MSG_PT_SUNWDTRACE		"PT_SUNWDTRACE"		# 0x6ffffffc
4675411Sab196087@ MSG_PT_SUNWDTRACE_ALT1	"sunwdtrace"
4685411Sab196087@ MSG_PT_SUNWCAP		"PT_SUNWCAP"		# 0x6ffffffd
4695411Sab196087@ MSG_PT_SUNWCAP_ALT1		"sunwcap"
470