# # CDDL HEADER START # # The contents of this file are subject to the terms of the # Common Development and Distribution License (the "License"). # You may not use this file except in compliance with the License. # # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE # or http://www.opensolaris.org/os/licensing. # See the License for the specific language governing permissions # and limitations under the License. # # When distributing Covered Code, include this CDDL HEADER in each # file and include the License file at usr/src/OPENSOLARIS.LICENSE. # If applicable, add the following below this CDDL HEADER, with the # fields enclosed by brackets "[]" replaced with your own identifying # information: Portions Copyright [yyyy] [name of copyright owner] # # CDDL HEADER END # # # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # # ident "%Z%%M% %I% %E% SMI" # @ _START_ # Message file for cmd/sgs/elfdump. @ MSG_ID_ELFDUMP # Usage Messages @ MSG_USAGE_BRIEF "usage: %s [-cCdegGhHiklmnprsuvy] [-N name] \ [-w file] file(s)\n" @ MSG_USAGE_DETAIL1 "\t[-c]\t\tdump section header information\n" @ MSG_USAGE_DETAIL2 "\t[-C]\t\tdemangle C++ symbol names\n" @ MSG_USAGE_DETAIL3 "\t[-d]\t\tdump the contents of the .dynamic section\n" @ MSG_USAGE_DETAIL4 "\t[-e]\t\tdump the elf header\n" @ MSG_USAGE_DETAIL5 "\t[-g]\t\tdump the contents of the .group sections\n" @ MSG_USAGE_DETAIL6 "\t[-G]\t\tdump the contents of the .got section\n" @ MSG_USAGE_DETAIL7 "\t[-h]\t\tdump the contents of the .hash section\n" @ MSG_USAGE_DETAIL8 "\t[-H]\t\tdump the contents of the .SUNW_hwcap \ section\n" @ MSG_USAGE_DETAIL9 "\t[-i]\t\tdump the contents of the .interp section\n" @ MSG_USAGE_DETAIL9_1 "\t[-l]\t\tdump with no truncated section names\n" @ MSG_USAGE_DETAIL10 "\t[-k]\t\tcalculate elf checksum\n" @ MSG_USAGE_DETAIL11 "\t[-m]\t\tdump the contents of the .SUNW_move \ section\n" @ MSG_USAGE_DETAIL12 "\t[-n]\t\tdump the contents of the .note section\n" @ MSG_USAGE_DETAIL13 "\t[-N name]\tqualify an option with a `name'\n" @ MSG_USAGE_DETAIL14 "\t[-p]\t\tdump the program headers\n" @ MSG_USAGE_DETAIL15 "\t[-r]\t\tdump the contents of the relocation \ sections\n" @ MSG_USAGE_DETAIL16 "\t[-s]\t\tdump the contents of the symbol table \ sections\n" @ MSG_USAGE_DETAIL17 "\t[-u]\t\tdump the contents of a frame unwind \ section\n" @ MSG_USAGE_DETAIL18 "\t[-v]\t\tdump the contents of the version sections\n" @ MSG_USAGE_DETAIL19 "\t[-w file]\twrite the contents of specified section \ to `file'\n" @ MSG_USAGE_DETAIL20 "\t[-y]\t\tdump the contents of the .SUNW_syminfo \ section\n" # Errors @ MSG_ERR_BADFILE "%s: invalid file type\n" @ MSG_ERR_BADREL1 "%s: bad relocation entry: %s: relocation requires symbol\n" @ MSG_ERR_SHSTRNULL "%s: zero size section header string table (shstrtab)\n" @ MSG_ERR_FAILURE "%s: %s failed: %s\n" @ MSG_ERR_BADSHNAME "%s: %s: invalid sh_name: %lld\n" @ MSG_ERR_BADSHLINK "%s: %s: invalid sh_link: %d\n" @ MSG_ERR_BADSHINFO "%s: %s: invalid sh_info: %d\n" @ MSG_ERR_BADSHTYPE "%s: %s: invalid sh_type: %d\n" @ MSG_ERR_BADALIGN "%s: %s: bad sh_offset alignment\n" @ MSG_ERR_BADSYM2 "%s: %s: bad symbol entry: %s: must be SHN_COMMON or \ defined in SHT_NOBITS section\n" @ MSG_ERR_BADSYM3 "%s: %s: bad symbol entry: %s: must be defined in \ a SHF_TLS section\n" @ MSG_ERR_BADSYM4 "%s: %s: bad symbol entry: %s: must be defined in \ a non-SHF_TLS section\n" @ MSG_ERR_BADSYM5 "%s: %s: bad symbol entry: %s: invalid shndx: %d\n" @ MSG_ERR_BADSYM6 "%s: %s: bad symbol entry: %s: section[%d] size: %lld: \ symbol (address %#llx, size %lld) lies outside \ of containing section\n" @ MSG_ERR_RELBADSYMNDX "%s: bad symbol reference %d: from relocation \ entry: %d\n" @ MSG_ERR_HSBADSYMNDX "%s: bad symbol reference %d: from hash entry: %d\n" @ MSG_ERR_BADSYMXINDEX1 "%s: %s: index[%d]: invalid SHN_XINDEX reference: \ SHT_SYMTAB_SHNDX section truncated: no entry for this \ symbol\n" @ MSG_ERR_BADSYMXINDEX2 "%s: %s: index[%d]: invalid SHN_XINDEX reference: \ bad SHT_SYMTAB_SHNDX entry: invalid shndx: 0x%x\n" @ MSG_ERR_BADSYMXINDEX3 "%s: %s: index[%d]: invalid SHN_XINDEX reference: \ SHT_SYMTAB_SHNDX section not found\n" @ MSG_ERR_BADSTOFF "%s: %s: index[%d]: bad %s offset: 0x%x: max 0x%x\n" @ MSG_ERR_BADSZ "%s: %s: zero size or zero entry size information\n" @ MSG_ERR_BADMINFO "%s: %s: invalid m_info: 0x%llx\n" @ MSG_ERR_BADHASH "%s: %s: bad hash entry: symbol %s: exists in bucket \ %d, should be bucket %ld\n" @ MSG_WARN_INVINTERP1 "%s: PT_INTERP header has no associated section\n" @ MSG_WARN_INVINTERP2 "%s: interp section: %s: and PT_INTERP program \ header have conflicting size or offsets\n" @ MSG_WARN_INVCAP1 "%s: PT_SUNWCAP header has no associated section\n" @ MSG_WARN_INVCAP2 "%s: capabilities section: %s: requires PT_CAP program \ header\n" @ MSG_WARN_INVCAP3 "%s: capabilities section: %s: and PT_CAP program \ header have conflicting size or offsets\n" # Elf Output Messages @ MSG_ELF_SHDR "Section Header[%d]: sh_name: %s" @ MSG_ELF_PHDR "Program Header[%d]:" @ MSG_ELF_SCN_CAP "Hardware/Software Capabilities Section: %s" @ MSG_ELF_SCN_INTERP "Interpreter Section: %s" @ MSG_ELF_SCN_VERDEF "Version Definition Section: %s" @ MSG_ELF_SCN_VERNEED "Version Needed Section: %s" @ MSG_ELF_SCN_SYMTAB "Symbol Table Section: %s" @ MSG_ELF_SCN_RELOC "Relocation Section: %s" @ MSG_ELF_SCN_UNWIND "Unwind Section: %s" @ MSG_ELF_SCN_DYNAMIC "Dynamic Section: %s" @ MSG_ELF_SCN_NOTE "Note Section: %s" @ MSG_ELF_SCN_HASH "Hash Section: %s" @ MSG_ELF_SCN_SYMINFO "Syminfo Section: %s" @ MSG_ELF_SCN_GOT "Global Offset Table Section: %s" @ MSG_ELF_SCN_GRP "Group Section: %s" @ MSG_ELF_SCN_MOVE "Move Section: %s" @ MSG_ELF_HASH_BKTS1 "%10.10s buckets contain %8d symbols" @ MSG_ELF_HASH_BKTS2 "%10.10s buckets %8d symbols (globals)" @ MSG_ELF_HASH_INFO " bucket symndx name" @ MSG_HASH_OVERFLW "%s: warning: section %s: too many symbols to count, \ bucket=%d count=%d" @ MSG_ELF_ERR_SHDR "\tunable to obtain section header: shstrtab[%lld]\n" @ MSG_ELF_ERR_DATA "\tunable to obtain section data: shstrtab[%lld]\n" @ MSG_ELF_ERR_SCN "\tunable to obtain section header: section[%d]\n" @ MSG_ELF_ERR_SCNDATA "\tunable to obtain section data: section[%d]\n" @ MSG_ARCHIVE_SYMTAB "\nSymbol Table: (archive)" @ MSG_ARCHIVE_FIELDS " index offset member name and symbol" @ MSG_GOT_MULTIPLE "%s: multiple relocations against \ the same GOT entry ndx: %d addr: 0x%llx\n" @ MSG_GOT_UNEXPECTED "%s: warning: section %s: section unexpected within \ relocatable object\n" # Miscellaneous clutter @ MSG_STR_NULL "(null)" @ MSG_STR_DEPRECATED "(deprecated value)" @ MSG_STR_UNKNOWN "" @ MSG_STR_SECTION "%.12s (section)" @ MSG_STR_L_SECTION "%s (section)" @ MSG_STR_CHECKSUM "elf checksum: 0x%lx" @ MSG_FMT_SCNNDX "section[%d]" @ MSG_ERR_MALLOC "%s: malloc: %s\n" @ MSG_ERR_OPEN "%s: open: %s\n" # # SHT_MOVE messages # @ MSG_MOVE_TITLE " symndx offset size repeat stride \ value with respect to" @ MSG_MOVE_ENTRY "%10.10s %6lld %6d %6d %6d %#18.18llx %s" # # SHT_GROUP messages # @ MSG_GRP_TITLE " index flags / section signature symbol" @ MSG_GRP_SIGNATURE " [0] %-24s %s" @ MSG_GRP_INVALSCN "" # # SHT_NOTE messages # @ MSG_NOTE_BADDATASZ "%s: %s: note header exceeds section size. \ offset: 0x%x\n" @ MSG_NOTE_BADNMSZ "%s: %s: note name value exceeds section size. \ offset: 0x%x namesize: 0x%x\n" @ MSG_NOTE_BADDESZ "%s: %s: note data size exceeds section size. \ offset: 0x%x datasize: 0x%x\n" @ _END_ # The following strings represent reserved words, files, pathnames and symbols. # Reference to this strings is via the MSG_ORIG() macro, and thus no message # translation is required. @ MSG_STR_OSQBRKT "[" @ MSG_STR_CSQBRKT "]" @ MSG_GRP_COMDAT " COMDAT " @ MSG_GRP_ENTRY "%10.10s %s [%lld]\n" @ MSG_GRP_UNKNOWN " 0x%x " @ MSG_ELF_GOT ".got" @ MSG_ELF_GETEHDR "elf_getehdr" @ MSG_ELF_GETPHDR "elf_getphdr" @ MSG_ELF_GETSHDR "elf_getshdr" @ MSG_ELF_GETSCN "elf_getscn" @ MSG_ELF_GETDATA "elf_getdata" @ MSG_ELF_GETARHDR "elf_getarhdr" @ MSG_ELF_GETARSYM "elf_getarsym" @ MSG_ELF_RAND "elf_rand" @ MSG_ELF_BEGIN "elf_begin" @ MSG_ELF_GETPHNUM "elf_getphnum" @ MSG_ELF_GETSHNUM "elf_getshnum" @ MSG_ELF_GETSHSTRNDX "elf_getshstrndx" @ MSG_ELF_ARSYM "ARSYM" @ MSG_GOT_SYM "_GLOBAL_OFFSET_TABLE_" @ MSG_STR_OPTIONS "CcdeGgHhiklmN:nprsuvw:y" @ MSG_STR_EMPTY "" @ MSG_FMT_INDENT " %s" @ MSG_FMT_INDEX " [%lld]" @ MSG_FMT_INDEX2 "[%d]" @ MSG_FMT_INTEGER " %d" @ MSG_FMT_HASH_INFO "%10.10s %-10s %s" @ MSG_FMT_ARSYM1 "%10.10s 0x%8.8x (%s):%s" @ MSG_FMT_ARSYM2 "%10.10s 0x%8.8x" @ MSG_FMT_ARNAME "%s(%s)" @ MSG_FMT_NLSTR "\n%s:" @ MSG_FMT_NLSTRNL "\n%s:\n" @ MSG_SUNW_OST_SGS "SUNW_OST_SGS" # Unwind info @ MSG_SCN_FRM ".eh_frame" @ MSG_SCN_FRMHDR ".eh_frame_hdr" @ MSG_UNW_FRMHDR "Frame Header:" @ MSG_UNW_FRMVERS " Version: %d" @ MSG_UNW_FRPTRENC " FramePtrEnc: %-20s FramePtr: 0x%llx" @ MSG_UNW_FDCNENC " FdeCntEnc: %-20s FdeCnt: %lld" @ MSG_UNW_TABENC " TableEnc: %-20s" @ MSG_UNW_BINSRTAB1 " Binary Search Table:" @ MSG_UNW_BINSRTAB2 " InitialLoc FdeLoc" @ MSG_UNW_BINSRTABENT " 0x%016llx 0x%016llx" @ MSG_UNW_CIE "CIE: [0x%08llx]" @ MSG_UNW_CIELNGTH " length: 0x%02x cieid: %d" @ MSG_UNW_CIEVERS " version: %d augstring: `%s'" @ MSG_UNW_CIECALGN " codealign: 0x%llx dataalign: %lld \ retaddr: %d" @ MSG_UNW_CIEAUXVAL " Auxiliary vals:" @ MSG_UNW_CIEAUXSIZE " size: %d" @ MSG_UNW_CIEAUXPERS " pers: 0x%02x %s 0x%08llx" @ MSG_UNW_CIEAUXCENC " cenc: 0x%02x %s" @ MSG_UNW_CIEAUXLSDA " lsda: 0x%02x %s" @ MSG_UNW_CIEAUXUNEC " Unexpected aug val: %c" @ MSG_UNW_CIECFI " CallFrameInstructions:" @ MSG_UNW_CIEPRE " " @ MSG_UNW_FDE " FDE: [0x%08llx]" @ MSG_UNW_FDELNGTH " length: 0x%02x cieptr: 0x%02x" @ MSG_UNW_FDEINITLOC " initloc: 0x%08llx addrrange: 0x%04llx" @ MSG_UNW_FDEAUXVAL " Auxiliary vals:" @ MSG_UNW_FDEAUXSIZE " size: 0x%llx" @ MSG_UNW_FDEAUXLSDA " lsda: 0x%llx" @ MSG_UNW_FDECFI " CallFrameInstructions:" @ MSG_UNW_FDEPRE " " @ MSG_UNW_TBLENTRY "0x%02x " # Note messages @ MSG_NOTE_TYPE " type %#x" @ MSG_NOTE_NAMESZ " namesz %#x:" @ MSG_NOTE_DESCSZ " descsz %#x:" @ MSG_NOTE_DESC " desc[%d]\t%s" @ MSG_NOTE_TOK "%2.2x "