Print this page
5688 ELF tools need to be more careful with dwarf data


 144                          entry\n"
 145 @ MSG_ERR_DYNBADADDR    "%s: %s (%#llx) does not match \
 146                          shdr[%d: %s].sh_addr (%#llx)\n"
 147 @ MSG_ERR_DYNBADSIZE    "%s: %s (%#llx) does not match \
 148                          shdr[%d: %s].sh_size (%#llx)\n"
 149 @ MSG_ERR_DYNBADENTSIZE "%s: %s (%#llx) does not match \
 150                          shdr[%d: %s].sh_entsize (%#llx)\n"
 151 @ MSG_ERR_DYNSYMVAL     "%s: %s: symbol value does not match \
 152                          %s entry: %s: value: %#llx\n"
 153 @ MSG_ERR_MALSTR        "%s: %s: malformed string table, initial or final \
 154                          byte\n"
 155 @ MSG_ERR_MULTEHFRMHDR  "%s: [%d: %s] multiple .eh_frame_hdr sections seen \
 156                          (1 expected)\n"
 157 @ MSG_ERR_BADEHFRMPTR   "%s: section[%d: %s] FramePtr (%#llx) does not match \
 158                          shdr[%d: %s].sh_addr (%#llx)\n"
 159 @ MSG_ERR_BADSORT       "%s: %s: index[%d]: invalid sort order\n"
 160 @ MSG_ERR_BADSIDYNNDX   "%s: [%d: %s][%d]: dynamic section index out of \
 161                          range (0 - %d): %d\n";
 162 @ MSG_ERR_BADSIDYNTAG   "%s: [%d: %s][%d]: dynamic element \
 163                          [%d: %s][%d] should have type %s: %s\n";

 164 
 165 
 166 @ MSG_WARN_INVINTERP1   "%s: PT_INTERP header has no associated section\n"
 167 @ MSG_WARN_INVINTERP2   "%s: interp section: %s: and PT_INTERP program \
 168                          header have conflicting size or offsets\n"
 169 @ MSG_WARN_INVCAP1      "%s: PT_SUNWCAP header has no associated section\n"
 170 @ MSG_WARN_INVCAP2      "%s: capabilities section[%d]: %s: requires PT_CAP \
 171                          program header\n"
 172 @ MSG_WARN_INVCAP3      "%s: capabilities section[%d]: %s: and PT_CAP program \
 173                          header have conflicting size or offsets\n"
 174 @ MSG_WARN_INVCAP4      "%s: capabilities section[%d]: %s: requires string \
 175                          table: invalid sh_info: %d\n";
 176 @ MSG_WARN_INADDR32SF1  "%s: capabilities section %s: software capability \
 177                          ADDR32: is ineffective within a 32-bit object\n"
 178 @ MSG_WARN_MULTEHFRM    "%s: section[%d: %s]: %s object has multiple \
 179                         .eh_frame sections\n"
 180 
 181 @ MSG_INFO_LINUXOSABI   "%s: %s object has Linux .note.ABI-tag section. \
 182                         Assuming %s\n"
 183 




 184 # exception_range_entry table entries.
 185 # TRANSLATION_NOTE - the following entries provide for a series of one or more
 186 # standard 32-bit and 64-bit .exception_ranges table entries that align with
 187 # the initial title.
 188 
 189 @ MSG_EXR_TITLE_32      "     index    offset     ret_addr   \
 190                          length     handler    type_blk"
 191 @ MSG_EXR_ENTRY_32      "%10.10s  0x%8.8llx 0x%8.8llx 0x%8.8llx 0x%8.8llx \
 192                          0x%8.8llx"
 193 @ MSG_EXR_TITLE_64      "     index    offset             ret_addr           \
 194                          length             handler            type_blk"
 195 @ MSG_EXR_ENTRY_64      "%10.10s  0x%16.16llx 0x%16.16llx 0x%16.16llx \
 196                          0x%16.16llx 0x%16.16llx"
 197 
 198 # Elf Output Messages
 199 
 200 @ MSG_ELF_SHDR          "Section Header[%d]:  sh_name: %s"
 201 @ MSG_ELF_PHDR          "Program Header[%d]:"
 202 
 203 @ MSG_ELF_SCN_CAP       "Capabilities Section:  %s"


 286 #
 287 # SHT_GROUP messages
 288 #
 289 @ MSG_GRP_TITLE         "     index    flags / section         signature symbol"
 290 @ MSG_GRP_SIGNATURE     "       [0]   %-24s %s"
 291 @ MSG_GRP_INVALSCN      "<invalid section>"
 292 
 293 #
 294 # SHT_NOTE messages
 295 #
 296 @ MSG_NOTE_BADDATASZ    "%s: %s: note header exceeds section size. \
 297                          offset: 0x%x\n"
 298 @ MSG_NOTE_BADNMSZ      "%s: %s: note name value exceeds section size. \
 299                          offset: 0x%x namesize: 0x%x\n"
 300 @ MSG_NOTE_BADDESZ      "%s: %s: note data size exceeds section size. \
 301                          offset: 0x%x datasize: 0x%x\n"
 302 @ MSG_NOTE_BADCOREARCH  "%s: elfdump core file note support not available for \
 303                          architecture: %s\n"
 304 @ MSG_NOTE_BADCOREDATA  "%s: elfdump core file note data truncated or \
 305                          otherwise malformed\n"

 306 
 307 @ _END_
 308 
 309 # The following strings represent reserved words, files, pathnames and symbols.
 310 # Reference to this strings is via the MSG_ORIG() macro, and thus no message
 311 # translation is required.
 312 
 313 @ MSG_STR_OSQBRKT       "["
 314 @ MSG_STR_CSQBRKT       "]"
 315 
 316 @ MSG_GRP_COMDAT        " COMDAT "
 317 @ MSG_GRP_ENTRY         "%10.10s   %s [%lld]\n"
 318 @ MSG_GRP_UNKNOWN       " 0x%x "
 319 
 320 @ MSG_ELF_GOT           ".got"
 321 @ MSG_ELF_INIT          ".init"
 322 @ MSG_ELF_FINI          ".fini"
 323 @ MSG_ELF_INTERP        ".interp"
 324 
 325 @ MSG_ELF_GETEHDR       "elf_getehdr"


 379 @ MSG_SCN_FRMHDR        ".eh_frame_hdr"
 380 @ MSG_SCN_EXRANGE       ".exception_ranges"
 381 
 382 @ MSG_UNW_FRMHDR        "Frame Header:"
 383 @ MSG_UNW_FRMVERS       "  Version: %d"
 384 @ MSG_UNW_FRPTRENC      "  FramePtrEnc: %-20s  FramePtr: %#llx"
 385 @ MSG_UNW_FDCNENC       "  FdeCntEnc:   %-20s  FdeCnt: %lld"
 386 @ MSG_UNW_TABENC        "  TableEnc:    %-20s"
 387 @ MSG_UNW_BINSRTAB1     "  Binary Search Table:"
 388 @ MSG_UNW_BINSRTAB2_32  "      InitialLoc    FdeLoc"
 389 @ MSG_UNW_BINSRTAB2_64  "      InitialLoc          FdeLoc"
 390 @ MSG_UNW_BINSRTABENT_32 "    0x%08llx    0x%08llx"
 391 @ MSG_UNW_BINSRTABENT_64 "    0x%016llx  0x%016llx"
 392 @ MSG_UNW_ZEROTERM      "ZERO terminator: [0x00000000]"
 393 @ MSG_UNW_CIE           "CIE: [%#llx]"
 394 @ MSG_UNW_CIELNGTH      " length: 0x%02x cieid: %d"
 395 @ MSG_UNW_CIEVERS       " version: %d  augmentation: `%s'"
 396 @ MSG_UNW_CIECALGN      " codealign: %#llx  dataalign: %lld  \
 397                           retaddr: %d"
 398 @ MSG_UNW_CIEAXVAL      " Augmentation Data:"
 399 @ MSG_UNW_CIEAXSIZ      "   size: %d"
 400 @ MSG_UNW_CIEAXPERS     "   personality:"
 401 @ MSG_UNW_CIEAXPERSENC  "       encoding: 0x%02x %s"
 402 @ MSG_UNW_CIEAXPERSRTN  "       routine:  %#08llx"
 403 @ MSG_UNW_CIEAXCENC     "   code pointer encoding: 0x%02x %s"
 404 @ MSG_UNW_CIEAXLSDA     "   lsda encoding: 0x%02x %s"
 405 @ MSG_UNW_CIEAXUNEC     "   Unexpected aug val: %c"
 406 @ MSG_UNW_CIECFI        " CallFrameInstructions:"
 407 
 408 @ MSG_UNW_FDE           " FDE: [%#llx]"
 409 @ MSG_UNW_FDELNGTH      "    length:  %#x  cieptr: %#x"
 410 @ MSG_UNW_FDEINITLOC    "    initloc: %#llx  addrrange: %#llx  endloc: %#llx"
 411 @ MSG_UNW_FDEAXVAL      "   Augmentation Data:"
 412 @ MSG_UNW_FDEAXSIZE     "      size: %#llx"
 413 @ MSG_UNW_FDEAXLSDA     "      lsda: %#llx"
 414 @ MSG_UNW_FDECFI        "   CallFrameInstructions:"
 415 
 416 # Unwind section Call Frame Instructions. These all start with a leading
 417 # "%*s%s", used to insert leading white space and the opcode name.
 418 
 419 @ MSG_CFA_ADV_LOC       "%*s%s: %s + %llu => %#llx"




 144                          entry\n"
 145 @ MSG_ERR_DYNBADADDR    "%s: %s (%#llx) does not match \
 146                          shdr[%d: %s].sh_addr (%#llx)\n"
 147 @ MSG_ERR_DYNBADSIZE    "%s: %s (%#llx) does not match \
 148                          shdr[%d: %s].sh_size (%#llx)\n"
 149 @ MSG_ERR_DYNBADENTSIZE "%s: %s (%#llx) does not match \
 150                          shdr[%d: %s].sh_entsize (%#llx)\n"
 151 @ MSG_ERR_DYNSYMVAL     "%s: %s: symbol value does not match \
 152                          %s entry: %s: value: %#llx\n"
 153 @ MSG_ERR_MALSTR        "%s: %s: malformed string table, initial or final \
 154                          byte\n"
 155 @ MSG_ERR_MULTEHFRMHDR  "%s: [%d: %s] multiple .eh_frame_hdr sections seen \
 156                          (1 expected)\n"
 157 @ MSG_ERR_BADEHFRMPTR   "%s: section[%d: %s] FramePtr (%#llx) does not match \
 158                          shdr[%d: %s].sh_addr (%#llx)\n"
 159 @ MSG_ERR_BADSORT       "%s: %s: index[%d]: invalid sort order\n"
 160 @ MSG_ERR_BADSIDYNNDX   "%s: [%d: %s][%d]: dynamic section index out of \
 161                          range (0 - %d): %d\n";
 162 @ MSG_ERR_BADSIDYNTAG   "%s: [%d: %s][%d]: dynamic element \
 163                          [%d: %s][%d] should have type %s: %s\n";
 164 @ MSG_ERR_BADCIEFDELEN  "%s: %s: invalid CIE/FDE length: %#llx at %#llx\n"                         
 165 
 166 
 167 @ MSG_WARN_INVINTERP1   "%s: PT_INTERP header has no associated section\n"
 168 @ MSG_WARN_INVINTERP2   "%s: interp section: %s: and PT_INTERP program \
 169                          header have conflicting size or offsets\n"
 170 @ MSG_WARN_INVCAP1      "%s: PT_SUNWCAP header has no associated section\n"
 171 @ MSG_WARN_INVCAP2      "%s: capabilities section[%d]: %s: requires PT_CAP \
 172                          program header\n"
 173 @ MSG_WARN_INVCAP3      "%s: capabilities section[%d]: %s: and PT_CAP program \
 174                          header have conflicting size or offsets\n"
 175 @ MSG_WARN_INVCAP4      "%s: capabilities section[%d]: %s: requires string \
 176                          table: invalid sh_info: %d\n";
 177 @ MSG_WARN_INADDR32SF1  "%s: capabilities section %s: software capability \
 178                          ADDR32: is ineffective within a 32-bit object\n"
 179 @ MSG_WARN_MULTEHFRM    "%s: section[%d: %s]: %s object has multiple \
 180                         .eh_frame sections\n"
 181 
 182 @ MSG_INFO_LINUXOSABI   "%s: %s object has Linux .note.ABI-tag section. \
 183                         Assuming %s\n"
 184 
 185 @ MSG_ERR_DWOVRFLW      "%s: %s: encoded DWARF data exceeds section size\n"
 186 @ MSG_ERR_DWBADENC      "%s: %s: bad DWARF encoding: %#x\n"
 187 @ MSG_ERR_DWNOCIE       "%s: %s: no CIE prior to FDE\n"
 188 
 189 # exception_range_entry table entries.
 190 # TRANSLATION_NOTE - the following entries provide for a series of one or more
 191 # standard 32-bit and 64-bit .exception_ranges table entries that align with
 192 # the initial title.
 193 
 194 @ MSG_EXR_TITLE_32      "     index    offset     ret_addr   \
 195                          length     handler    type_blk"
 196 @ MSG_EXR_ENTRY_32      "%10.10s  0x%8.8llx 0x%8.8llx 0x%8.8llx 0x%8.8llx \
 197                          0x%8.8llx"
 198 @ MSG_EXR_TITLE_64      "     index    offset             ret_addr           \
 199                          length             handler            type_blk"
 200 @ MSG_EXR_ENTRY_64      "%10.10s  0x%16.16llx 0x%16.16llx 0x%16.16llx \
 201                          0x%16.16llx 0x%16.16llx"
 202 
 203 # Elf Output Messages
 204 
 205 @ MSG_ELF_SHDR          "Section Header[%d]:  sh_name: %s"
 206 @ MSG_ELF_PHDR          "Program Header[%d]:"
 207 
 208 @ MSG_ELF_SCN_CAP       "Capabilities Section:  %s"


 291 #
 292 # SHT_GROUP messages
 293 #
 294 @ MSG_GRP_TITLE         "     index    flags / section         signature symbol"
 295 @ MSG_GRP_SIGNATURE     "       [0]   %-24s %s"
 296 @ MSG_GRP_INVALSCN      "<invalid section>"
 297 
 298 #
 299 # SHT_NOTE messages
 300 #
 301 @ MSG_NOTE_BADDATASZ    "%s: %s: note header exceeds section size. \
 302                          offset: 0x%x\n"
 303 @ MSG_NOTE_BADNMSZ      "%s: %s: note name value exceeds section size. \
 304                          offset: 0x%x namesize: 0x%x\n"
 305 @ MSG_NOTE_BADDESZ      "%s: %s: note data size exceeds section size. \
 306                          offset: 0x%x datasize: 0x%x\n"
 307 @ MSG_NOTE_BADCOREARCH  "%s: elfdump core file note support not available for \
 308                          architecture: %s\n"
 309 @ MSG_NOTE_BADCOREDATA  "%s: elfdump core file note data truncated or \
 310                          otherwise malformed\n"
 311 @ MSG_NOTE_BADCORETYPE  "%s: unknown note type %#x\n"
 312 
 313 @ _END_
 314 
 315 # The following strings represent reserved words, files, pathnames and symbols.
 316 # Reference to this strings is via the MSG_ORIG() macro, and thus no message
 317 # translation is required.
 318 
 319 @ MSG_STR_OSQBRKT       "["
 320 @ MSG_STR_CSQBRKT       "]"
 321 
 322 @ MSG_GRP_COMDAT        " COMDAT "
 323 @ MSG_GRP_ENTRY         "%10.10s   %s [%lld]\n"
 324 @ MSG_GRP_UNKNOWN       " 0x%x "
 325 
 326 @ MSG_ELF_GOT           ".got"
 327 @ MSG_ELF_INIT          ".init"
 328 @ MSG_ELF_FINI          ".fini"
 329 @ MSG_ELF_INTERP        ".interp"
 330 
 331 @ MSG_ELF_GETEHDR       "elf_getehdr"


 385 @ MSG_SCN_FRMHDR        ".eh_frame_hdr"
 386 @ MSG_SCN_EXRANGE       ".exception_ranges"
 387 
 388 @ MSG_UNW_FRMHDR        "Frame Header:"
 389 @ MSG_UNW_FRMVERS       "  Version: %d"
 390 @ MSG_UNW_FRPTRENC      "  FramePtrEnc: %-20s  FramePtr: %#llx"
 391 @ MSG_UNW_FDCNENC       "  FdeCntEnc:   %-20s  FdeCnt: %lld"
 392 @ MSG_UNW_TABENC        "  TableEnc:    %-20s"
 393 @ MSG_UNW_BINSRTAB1     "  Binary Search Table:"
 394 @ MSG_UNW_BINSRTAB2_32  "      InitialLoc    FdeLoc"
 395 @ MSG_UNW_BINSRTAB2_64  "      InitialLoc          FdeLoc"
 396 @ MSG_UNW_BINSRTABENT_32 "    0x%08llx    0x%08llx"
 397 @ MSG_UNW_BINSRTABENT_64 "    0x%016llx  0x%016llx"
 398 @ MSG_UNW_ZEROTERM      "ZERO terminator: [0x00000000]"
 399 @ MSG_UNW_CIE           "CIE: [%#llx]"
 400 @ MSG_UNW_CIELNGTH      " length: 0x%02x cieid: %d"
 401 @ MSG_UNW_CIEVERS       " version: %d  augmentation: `%s'"
 402 @ MSG_UNW_CIECALGN      " codealign: %#llx  dataalign: %lld  \
 403                           retaddr: %d"
 404 @ MSG_UNW_CIEAXVAL      " Augmentation Data:"
 405 @ MSG_UNW_CIEAXSIZ      "   size: %lld"
 406 @ MSG_UNW_CIEAXPERS     "   personality:"
 407 @ MSG_UNW_CIEAXPERSENC  "       encoding: 0x%02x %s"
 408 @ MSG_UNW_CIEAXPERSRTN  "       routine:  %#08llx"
 409 @ MSG_UNW_CIEAXCENC     "   code pointer encoding: 0x%02x %s"
 410 @ MSG_UNW_CIEAXLSDA     "   lsda encoding: 0x%02x %s"
 411 @ MSG_UNW_CIEAXUNEC     "   Unexpected aug val: %c"
 412 @ MSG_UNW_CIECFI        " CallFrameInstructions:"
 413 
 414 @ MSG_UNW_FDE           " FDE: [%#llx]"
 415 @ MSG_UNW_FDELNGTH      "    length:  %#x  cieptr: %#x"
 416 @ MSG_UNW_FDEINITLOC    "    initloc: %#llx  addrrange: %#llx  endloc: %#llx"
 417 @ MSG_UNW_FDEAXVAL      "   Augmentation Data:"
 418 @ MSG_UNW_FDEAXSIZE     "      size: %#llx"
 419 @ MSG_UNW_FDEAXLSDA     "      lsda: %#llx"
 420 @ MSG_UNW_FDECFI        "   CallFrameInstructions:"
 421 
 422 # Unwind section Call Frame Instructions. These all start with a leading
 423 # "%*s%s", used to insert leading white space and the opcode name.
 424 
 425 @ MSG_CFA_ADV_LOC       "%*s%s: %s + %llu => %#llx"