reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/llvm-readobj/ELFDumper.cpp
  532       OS.PadToColumn(F.Column);
  533     OS << F.Str;
  534     OS.flush();
  535     return OS;
 2755   OS << "ELF Header:\n";
 2756   OS << "  Magic:  ";
 2759     OS << format(" %02x", static_cast<int>(e->e_ident[i]));
 2760   OS << "\n";
 2762   printFields(OS, "Class:", Str);
 2764   printFields(OS, "Data:", Str);
 2765   OS.PadToColumn(2u);
 2766   OS << "Version:";
 2767   OS.PadToColumn(37u);
 2768   OS << to_hexString(e->e_ident[ELF::EI_VERSION]);
 2770     OS << " (current)";
 2771   OS << "\n";
 2773   printFields(OS, "OS/ABI:", Str);
 2775   printFields(OS, "ABI Version:", Str);
 2777   printFields(OS, "Type:", Str);
 2779   printFields(OS, "Machine:", Str);
 2781   printFields(OS, "Version:", Str);
 2783   printFields(OS, "Entry point address:", Str);
 2785   printFields(OS, "Start of program headers:", Str);
 2787   printFields(OS, "Start of section headers:", Str);
 2799   printFields(OS, "Flags:", Str);
 2801   printFields(OS, "Size of this header:", Str);
 2803   printFields(OS, "Size of program headers:", Str);
 2805   printFields(OS, "Number of program headers:", Str);
 2807   printFields(OS, "Size of section headers:", Str);
 2809   printFields(OS, "Number of section headers:", Str);
 2811   printFields(OS, "Section header string table index:", Str);
 2890     OS << "\n"
 2898         OS.flush();
 2906       OS << "   [" << format_decimal(GM.Index, 5) << "]   " << GM.Name << "\n";
 2911     OS << "There are no section groups in this file.\n";
 2970   OS << Addend << "\n";
 2977     OS << "    ";
 2979     OS << " ";
 2981     OS << "Data  ";
 2983     OS << "Offset";
 2985     OS << "             Info             Type"
 2988     OS << "     Info    Type                Sym. Value  Symbol's Name";
 2990     OS << " + Addend";
 2991   OS << "\n";
 3023     OS << "\nRelocation section '" << Name << "' at offset 0x"
 3047           OS << to_string(format_hex_no_prefix(R, ELFT::Is64Bits ? 16 : 8))
 3061     OS << "\nThere are no relocations in this file.\n";
 3195   OS << "There are " << to_string(Sections.size())
 3198   OS << "Section Headers:\n";
 3206   OS << "\n";
 3226     OS.PadToColumn(Fields[0].Column);
 3227     OS << "[" << right_justify(Fields[0].Str, 2) << "]";
 3230     OS.PadToColumn(Fields[7].Column);
 3231     OS << right_justify(Fields[7].Str, 3);
 3232     OS.PadToColumn(Fields[8].Column);
 3233     OS << right_justify(Fields[8].Str, 2);
 3234     OS.PadToColumn(Fields[9].Column);
 3235     OS << right_justify(Fields[9].Str, 3);
 3236     OS.PadToColumn(Fields[10].Column);
 3237     OS << right_justify(Fields[10].Str, 2);
 3238     OS << "\n";
 3241   OS << "Key to Flags:\n"
 3255     OS << "\nSymbol table '" << Name << "' contains " << Entries
 3258     OS << "\n Symbol table for image:\n";
 3261     OS << "   Num:    Value          Size Type    Bind   Vis";
 3263     OS << "   Num:    Value  Size Type    Bind   Vis";
 3266     OS << "             ";
 3267   OS << "       Ndx Name\n";
 3353   OS << "\n";
 3387   OS << "\n";
 3409     OS << "\n Symbol table of .hash for image:\n";
 3411       OS << "  Num Buc:    Value          Size   Type   Bind Vis      Ndx Name";
 3413       OS << "  Num Buc:    Value  Size   Type   Bind Vis      Ndx Name";
 3414     OS << "\n";
 3442     OS << "\n Symbol table of .gnu.hash for image:\n";
 3444       OS << "  Num Buc:    Value          Size   Type   Bind Vis      Ndx Name";
 3446       OS << "  Num Buc:    Value  Size   Type   Bind Vis      Ndx Name";
 3447     OS << "\n";
 3551   OS << "\nElf file type is "
 3558     OS << "  Type           Offset   VirtAddr           PhysAddr         "
 3561     OS << "  Type           Offset   VirtAddr   PhysAddr   FileSiz "
 3579       OS << "\n      [Requesting program interpreter: ";
 3580       OS << reinterpret_cast<const char *>(Obj->base()) + Phdr.p_offset << "]";
 3582     OS << "\n";
 3588   OS << "\n Section to Segment mapping:\n  Segment Sections...\n";
 3594     OS << format("   %2.2d     ", Phnum++);
 3612     OS << Sections << "\n";
 3613     OS.flush();
 3624     OS << "   None  " << Sections << '\n';
 3625     OS.flush();
 3673   OS << "Dynamic section at offset "
 3681     OS << "  Tag                Type                 Name/Value\n";
 3683     OS << "  Tag        Type                 Name/Value\n";
 3689     OS << "  " << format_hex(Tag, Is64 ? 18 : 10)
 3691     this->dumper()->printDynamicEntry(OS, Tag, Entry.getVal());
 3692     OS << "\n";
 3703     OS << "\n'RELA' relocation section at offset "
 3713     OS << "\n'REL' relocation section at offset "
 3728     OS << "\n'RELR' relocation section at offset "
 3742     OS << "\n'PLT' relocation section at offset "
 3789   printGNUVersionSectionProlog(OS, "Version symbols", Entries, Obj, Sec,
 3799     OS << "  " << format_hex_no_prefix(VersymRow, 3) << ":";
 3808         OS << "   0 (*local*)    ";
 3811         OS << "   1 (*global*)   ";
 3814         OS << format("%4x%c", Versym->vs_index & VERSYM_VERSION,
 3825         OS << left_justify(VersionName, 13);
 3829     OS << '\n';
 3831   OS << '\n';
 3862   printGNUVersionSectionProlog(OS, "Version definition", VerDefsNum, Obj, Sec,
 3877     OS << format("  0x%04x: Rev: %u  Flags: %s  Index: %u  Cnt: %u",
 3885     OS << format("  Name: %s\n",
 3891       OS << format("  0x%04x: Parent %u: %s\n", VerdauxBuf - Begin, I,
 3897   OS << '\n';
 3907   printGNUVersionSectionProlog(OS, "Version needs", VerneedNum, Obj, Sec,
 3924     OS << format("  0x%04x: Version: %u  File: %s  Cnt: %u\n",
 3935       OS << format("  0x%04x:   Name: %s  Flags: %s  Version: %u\n",
 3944   OS << '\n';
 3998     OS << "Histogram for bucket list length (total of " << NBucket
 4003       OS << format("%7lu  %-10lu (%5.1f%%)     %5.1f%%\n", I, Count[I],
 4048     OS << "Histogram for `.gnu.hash' bucket list length (total of " << NBucket
 4053       OS << format("%7lu  %-10lu (%5.1f%%)     %5.1f%%\n", I, Count[I],
 4062   OS << "GNUStyle::printCGProfile not implemented\n";
 4601     OS << "Displaying notes found at file offset " << format_hex(Offset, 10)
 4612     OS << "  " << left_justify(Name, 20) << ' '
 4615       OS << getGNUNoteTypeName(Type) << '\n';
 4617       OS << getFreeBSDNoteTypeName(Type) << '\n';
 4619       OS << getAMDNoteTypeName(Type) << '\n';
 4621       OS << getAMDGPUNoteTypeName(Type) << '\n';
 4627         OS << NoteType << '\n';
 4629         OS << "Unknown note type: (" << format_hex(Type, 10) << ")\n";
 4635       printGNUNote<ELFT>(OS, Type, Descriptor);
 4639         OS << "    " << N.Type << ":\n        " << N.Value << '\n';
 4643         OS << "    " << N.Type << ":\n        " << N.Value << '\n';
 4651           printCoreNote<ELFT>(OS, *Note);
 4656       OS << "   description data:";
 4658         OS << " " << format("%02x", B);
 4659       OS << '\n';
 4692   OS << "printELFLinkerOptions not implemented!\n";
 4764   OS.PadToColumn(2);
 4765   OS << format_decimal(Size, 11);
 4766   OS.PadToColumn(18);
 4767   OS << FuncName << "\n";
 4967     OS << "\nStack Sizes:\n";
 4968     OS.PadToColumn(9);
 4969     OS << "Size";
 4970     OS.PadToColumn(18);
 4971     OS << "Function\n";
 4987     OS.PadToColumn(2);
 4988     OS << format_hex_no_prefix(Parser.getGotAddress(E), 8 + Bias);
 4989     OS.PadToColumn(11 + Bias);
 4990     OS << format_decimal(Parser.getGotOffset(E), 6) << "(gp)";
 4991     OS.PadToColumn(22 + Bias);
 4992     OS << format_hex_no_prefix(*E, 8 + Bias);
 4993     OS.PadToColumn(31 + 2 * Bias);
 4994     OS << Purpose << "\n";
 4997   OS << (Parser.IsStatic ? "Static GOT:\n" : "Primary GOT:\n");
 4998   OS << " Canonical gp value: "
 5001   OS << " Reserved entries:\n";
 5003     OS << "           Address     Access          Initial Purpose\n";
 5005     OS << "   Address     Access  Initial Purpose\n";
 5011     OS << "\n";
 5012     OS << " Local entries:\n";
 5014       OS << "           Address     Access          Initial\n";
 5016       OS << "   Address     Access  Initial\n";
 5025     OS << "\n";
 5026     OS << " Global entries:\n";
 5028       OS << "           Address     Access          Initial         Sym.Val."
 5031       OS << "   Address     Access  Initial Sym.Val. Type    Ndx Name\n";
 5037       OS.PadToColumn(2);
 5038       OS << to_string(format_hex_no_prefix(Parser.getGotAddress(&E), 8 + Bias));
 5039       OS.PadToColumn(11 + Bias);
 5040       OS << to_string(format_decimal(Parser.getGotOffset(&E), 6)) + "(gp)";
 5041       OS.PadToColumn(22 + Bias);
 5042       OS << to_string(format_hex_no_prefix(E, 8 + Bias));
 5043       OS.PadToColumn(31 + 2 * Bias);
 5044       OS << to_string(format_hex_no_prefix(Sym->st_value, 8 + Bias));
 5045       OS.PadToColumn(40 + 3 * Bias);
 5046       OS << printEnum(Sym->getType(), makeArrayRef(ElfSymbolTypes));
 5047       OS.PadToColumn(48 + 3 * Bias);
 5048       OS << getSymbolSectionNdx(Parser.Obj, Sym,
 5050       OS.PadToColumn(52 + 3 * Bias);
 5051       OS << SymName << "\n";
 5056     OS << "\n Number of TLS and multi-GOT entries "
 5064     OS.PadToColumn(2);
 5065     OS << format_hex_no_prefix(Parser.getPltAddress(E), 8 + Bias);
 5066     OS.PadToColumn(11 + Bias);
 5067     OS << format_hex_no_prefix(*E, 8 + Bias);
 5068     OS.PadToColumn(20 + 2 * Bias);
 5069     OS << Purpose << "\n";
 5072   OS << "PLT GOT:\n\n";
 5074   OS << " Reserved entries:\n";
 5075   OS << "   Address  Initial Purpose\n";
 5081     OS << "\n";
 5082     OS << " Entries:\n";
 5083     OS << "   Address  Initial Sym.Val. Type    Ndx Name\n";
 5089       OS.PadToColumn(2);
 5090       OS << to_string(format_hex_no_prefix(Parser.getPltAddress(&E), 8 + Bias));
 5091       OS.PadToColumn(11 + Bias);
 5092       OS << to_string(format_hex_no_prefix(E, 8 + Bias));
 5093       OS.PadToColumn(20 + 2 * Bias);
 5094       OS << to_string(format_hex_no_prefix(Sym->st_value, 8 + Bias));
 5095       OS.PadToColumn(29 + 3 * Bias);
 5096       OS << printEnum(Sym->getType(), makeArrayRef(ElfSymbolTypes));
 5097       OS.PadToColumn(37 + 3 * Bias);
 5098       OS << getSymbolSectionNdx(Parser.Obj, Sym,
 5100       OS.PadToColumn(41 + 3 * Bias);
 5101       OS << SymName << "\n";
 5122   OS << "MIPS ABI Flags Version: " << Flags->version << "\n\n";
 5123   OS << "ISA: MIPS" << int(Flags->isa_level);
 5125     OS << "r" << int(Flags->isa_rev);
 5126   OS << "\n";
 5127   OS << "GPR size: " << getMipsRegisterSize(Flags->gpr_size) << "\n";
 5128   OS << "CPR1 size: " << getMipsRegisterSize(Flags->cpr1_size) << "\n";
 5129   OS << "CPR2 size: " << getMipsRegisterSize(Flags->cpr2_size) << "\n";
 5130   OS << "FP ABI: " << printEnum(Flags->fp_abi, makeArrayRef(ElfMipsFpABIType))
 5132   OS << "ISA Extension: "
 5135     OS << "ASEs: None\n";
 5138     OS << "ASEs: " << printFlags(Flags->ases, makeArrayRef(ElfMipsASEFlags))
 5140   OS << "FLAGS 1: " << format_hex_no_prefix(Flags->flags1, 8, false) << "\n";
 5141   OS << "FLAGS 2: " << format_hex_no_prefix(Flags->flags2, 8, false) << "\n";
 5142   OS << "\n";