Lines Matching refs:W
313 StreamWriter &W) { in printVersionSymbolSection() argument
314 DictScope SS(W, "Version symbols"); in printVersionSymbolSection()
318 W.printNumber("Section Name", Name, Sec->sh_name); in printVersionSymbolSection()
319 W.printHex("Address", Sec->sh_addr); in printVersionSymbolSection()
320 W.printHex("Offset", Sec->sh_offset); in printVersionSymbolSection()
321 W.printNumber("Link", Sec->sh_link); in printVersionSymbolSection()
330 ListScope Syms(W, "Symbols"); in printVersionSymbolSection()
332 DictScope S(W, "Symbol"); in printVersionSymbolSection()
335 W.printNumber("Version", *P); in printVersionSymbolSection()
336 W.printString("Name", FullSymbolName); in printVersionSymbolSection()
345 StreamWriter &W) { in printVersionDefinitionSection() argument
346 DictScope SD(W, "Version definition"); in printVersionDefinitionSection()
350 W.printNumber("Section Name", Name, Sec->sh_name); in printVersionDefinitionSection()
351 W.printHex("Address", Sec->sh_addr); in printVersionDefinitionSection()
352 W.printHex("Offset", Sec->sh_offset); in printVersionDefinitionSection()
353 W.printNumber("Link", Sec->sh_link); in printVersionDefinitionSection()
370 ListScope Entries(W, "Entries"); in printVersionDefinitionSection()
375 DictScope Entry(W, "Entry"); in printVersionDefinitionSection()
376 W.printHex("Offset", (uintptr_t)P - (uintptr_t)SecStartAddress); in printVersionDefinitionSection()
377 W.printNumber("Rev", VD->vd_version); in printVersionDefinitionSection()
379 W.printNumber("Flags", VD->vd_flags); in printVersionDefinitionSection()
380 W.printNumber("Index", VD->vd_ndx); in printVersionDefinitionSection()
381 W.printNumber("Cnt", VD->vd_cnt); in printVersionDefinitionSection()
382 W.printString("Name", StringRef((const char *)(Obj->base() + in printVersionDefinitionSection()
391 printVersionSymbolSection(this, Obj, dot_gnu_version_sec, W); in printVersionInfo()
394 printVersionDefinitionSection(this, Obj, dot_gnu_version_d_sec, W); in printVersionInfo()
1039 DictScope D(W, "ElfHeader"); in printFileHeaders()
1041 DictScope D(W, "Ident"); in printFileHeaders()
1042 W.printBinary("Magic", makeArrayRef(Header->e_ident).slice(ELF::EI_MAG0, in printFileHeaders()
1044 W.printEnum ("Class", Header->e_ident[ELF::EI_CLASS], in printFileHeaders()
1046 W.printEnum ("DataEncoding", Header->e_ident[ELF::EI_DATA], in printFileHeaders()
1048 W.printNumber("FileVersion", Header->e_ident[ELF::EI_VERSION]); in printFileHeaders()
1053 W.printHex("OS/ABI", "AMDGPU_HSA", ELF::ELFOSABI_AMDGPU_HSA); in printFileHeaders()
1055 W.printEnum ("OS/ABI", Header->e_ident[ELF::EI_OSABI], in printFileHeaders()
1057 W.printNumber("ABIVersion", Header->e_ident[ELF::EI_ABIVERSION]); in printFileHeaders()
1058 W.printBinary("Unused", makeArrayRef(Header->e_ident).slice(ELF::EI_PAD)); in printFileHeaders()
1061 W.printEnum ("Type", Header->e_type, makeArrayRef(ElfObjectFileType)); in printFileHeaders()
1062 W.printEnum ("Machine", Header->e_machine, makeArrayRef(ElfMachineType)); in printFileHeaders()
1063 W.printNumber("Version", Header->e_version); in printFileHeaders()
1064 W.printHex ("Entry", Header->e_entry); in printFileHeaders()
1065 W.printHex ("ProgramHeaderOffset", Header->e_phoff); in printFileHeaders()
1066 W.printHex ("SectionHeaderOffset", Header->e_shoff); in printFileHeaders()
1068 W.printFlags("Flags", Header->e_flags, makeArrayRef(ElfHeaderMipsFlags), in printFileHeaders()
1072 W.printFlags("Flags", Header->e_flags); in printFileHeaders()
1073 W.printNumber("HeaderSize", Header->e_ehsize); in printFileHeaders()
1074 W.printNumber("ProgramHeaderEntrySize", Header->e_phentsize); in printFileHeaders()
1075 W.printNumber("ProgramHeaderCount", Header->e_phnum); in printFileHeaders()
1076 W.printNumber("SectionHeaderEntrySize", Header->e_shentsize); in printFileHeaders()
1077 W.printNumber("SectionHeaderCount", Header->e_shnum); in printFileHeaders()
1078 W.printNumber("StringTableSectionIndex", Header->e_shstrndx); in printFileHeaders()
1084 ListScope SectionsD(W, "Sections"); in printSections()
1092 DictScope SectionD(W, "Section"); in printSections()
1093 W.printNumber("Index", SectionIndex); in printSections()
1094 W.printNumber("Name", Name, Sec.sh_name); in printSections()
1095 W.printHex("Type", in printSections()
1098 W.printFlags("Flags", Sec.sh_flags, makeArrayRef(ElfSectionFlags)); in printSections()
1099 W.printHex("Address", Sec.sh_addr); in printSections()
1100 W.printHex("Offset", Sec.sh_offset); in printSections()
1101 W.printNumber("Size", Sec.sh_size); in printSections()
1102 W.printNumber("Link", Sec.sh_link); in printSections()
1103 W.printNumber("Info", Sec.sh_info); in printSections()
1104 W.printNumber("AddressAlignment", Sec.sh_addralign); in printSections()
1105 W.printNumber("EntrySize", Sec.sh_entsize); in printSections()
1108 ListScope D(W, "Relocations"); in printSections()
1113 ListScope D(W, "Symbols"); in printSections()
1131 W.printBinaryBlock("SectionData", in printSections()
1139 ListScope D(W, "Relocations"); in printRelocations()
1150 W.startLine() << "Section (" << SectionNumber << ") " << Name << " {\n"; in printRelocations()
1151 W.indent(); in printRelocations()
1155 W.unindent(); in printRelocations()
1156 W.startLine() << "}\n"; in printRelocations()
1162 W.startLine() << "Dynamic Relocations {\n"; in printDynamicRelocations()
1163 W.indent(); in printDynamicRelocations()
1172 DictScope Group(W, "Relocation"); in printDynamicRelocations()
1173 W.printHex("Offset", Rel.r_offset); in printDynamicRelocations()
1174 W.printNumber("Type", RelocName, (int)Rel.getType(Obj->isMips64EL())); in printDynamicRelocations()
1175 W.printString("Symbol", SymbolName.size() > 0 ? SymbolName : "-"); in printDynamicRelocations()
1176 W.printHex("Addend", Rel.r_addend); in printDynamicRelocations()
1179 raw_ostream& OS = W.startLine(); in printDynamicRelocations()
1180 OS << W.hex(Rel.r_offset) << " " << RelocName << " " in printDynamicRelocations()
1182 << W.hex(Rel.r_addend) << "\n"; in printDynamicRelocations()
1185 W.unindent(); in printDynamicRelocations()
1186 W.startLine() << "}\n"; in printDynamicRelocations()
1231 DictScope Group(W, "Relocation"); in printRelocation()
1232 W.printHex("Offset", Rel.r_offset); in printRelocation()
1233 W.printNumber("Type", RelocName, (int)Rel.getType(Obj->isMips64EL())); in printRelocation()
1234 W.printNumber("Symbol", TargetName.size() > 0 ? TargetName : "-", in printRelocation()
1236 W.printHex("Addend", Rel.r_addend); in printRelocation()
1238 raw_ostream& OS = W.startLine(); in printRelocation()
1239 OS << W.hex(Rel.r_offset) << " " << RelocName << " " in printRelocation()
1241 << W.hex(Rel.r_addend) << "\n"; in printRelocation()
1259 ListScope Group(W, "Symbols"); in printSymbols()
1265 ListScope Group(W, "DynamicSymbols"); in printDynamicSymbols()
1279 DictScope D(W, "Symbol"); in printSymbol()
1280 W.printNumber("Name", FullSymbolName, Symbol->st_name); in printSymbol()
1281 W.printHex ("Value", Symbol->st_value); in printSymbol()
1282 W.printNumber("Size", Symbol->st_size); in printSymbol()
1283 W.printEnum ("Binding", Symbol->getBinding(), in printSymbol()
1287 W.printEnum ("Type", SymbolType, makeArrayRef(AMDGPUSymbolTypes)); in printSymbol()
1289 W.printEnum ("Type", SymbolType, makeArrayRef(ElfSymbolTypes)); in printSymbol()
1290 W.printNumber("Other", Symbol->st_other); in printSymbol()
1291 W.printHex("Section", SectionName, SectionIndex); in printSymbol()
1445 raw_ostream &OS = W.getOStream(); in printValue()
1530 W.startLine() << "UnwindInfo not implemented.\n"; in printUnwindInfo()
1538 W, Obj, DotSymtabSec); in printUnwindInfo()
1541 W.startLine() << "UnwindInfo not implemented.\n"; in printUnwindInfo()
1564 raw_ostream &OS = W.getOStream(); in printDynamicTable()
1565 W.startLine() << "DynamicSection [ (" << Total << " entries)\n"; in printDynamicTable()
1569 W.startLine() in printDynamicTable()
1576 W.startLine() << " " << format_hex(Tag, Is64 ? 18 : 10, true) << " " in printDynamicTable()
1582 W.startLine() << "]\n"; in printDynamicTable()
1587 ListScope D(W, "NeededLibraries"); in printNeededLibraries()
1605 ListScope L(W, "ProgramHeaders"); in printProgramHeaders()
1608 DictScope P(W, "ProgramHeader"); in printProgramHeaders()
1609 W.printHex("Type", in printProgramHeaders()
1612 W.printHex("Offset", Phdr.p_offset); in printProgramHeaders()
1613 W.printHex("VirtualAddress", Phdr.p_vaddr); in printProgramHeaders()
1614 W.printHex("PhysicalAddress", Phdr.p_paddr); in printProgramHeaders()
1615 W.printNumber("FileSize", Phdr.p_filesz); in printProgramHeaders()
1616 W.printNumber("MemSize", Phdr.p_memsz); in printProgramHeaders()
1617 W.printFlags("Flags", Phdr.p_flags, makeArrayRef(ElfSegmentFlags)); in printProgramHeaders()
1618 W.printNumber("Alignment", Phdr.p_align); in printProgramHeaders()
1624 DictScope D(W, "HashTable"); in printHashTable()
1627 W.printNumber("Num Buckets", HashTable->nbucket); in printHashTable()
1628 W.printNumber("Num Chains", HashTable->nchain); in printHashTable()
1629 W.printList("Buckets", HashTable->buckets()); in printHashTable()
1630 W.printList("Chains", HashTable->chains()); in printHashTable()
1635 DictScope D(W, "GnuHashTable"); in printGnuHashTable()
1638 W.printNumber("Num Buckets", GnuHashTable->nbuckets); in printGnuHashTable()
1639 W.printNumber("First Hashed Symbol Index", GnuHashTable->symndx); in printGnuHashTable()
1640 W.printNumber("Num Mask Words", GnuHashTable->maskwords); in printGnuHashTable()
1641 W.printNumber("Shift Count", GnuHashTable->shift2); in printGnuHashTable()
1642 W.printHexList("Bloom Filter", GnuHashTable->filter()); in printGnuHashTable()
1643 W.printList("Buckets", GnuHashTable->buckets()); in printGnuHashTable()
1646 W.printHexList("Values", in printGnuHashTable()
1656 W.startLine() << "Attributes not implemented.\n"; in printAttributes()
1662 W.startLine() << "Attributes not implemented.\n"; in printAttributes()
1666 DictScope BA(W, "BuildAttributes"); in printAttributes()
1681 W.printHex("FormatVersion", (*Contents)[0]); in printAttributes()
1685 ARMAttributeParser(W).Parse(*Contents); in printAttributes()
1702 Elf_Dyn_Range DynTable, StreamWriter &W);
1710 StreamWriter &W; member in __anon07d3185e0511::MipsGOTParser
1735 Elf_Dyn_Range DynTable, StreamWriter &W) in MipsGOTParser() argument
1736 : Dumper(Dumper), Obj(Obj), W(W) { in MipsGOTParser()
1763 W.startLine() << "Cannot find PLTGOT dynamic table tag.\n"; in parseGOT()
1767 W.startLine() << "Cannot find MIPS_LOCAL_GOTNO dynamic table tag.\n"; in parseGOT()
1771 W.startLine() << "Cannot find MIPS_GOTSYM dynamic table tag.\n"; in parseGOT()
1777 W.startLine() << "There is no .got section in the file.\n"; in parseGOT()
1783 W.startLine() << "The .got section is empty.\n"; in parseGOT()
1788 W.startLine() << "MIPS_LOCAL_GOTNO exceeds a number of GOT entries.\n"; in parseGOT()
1800 W.startLine() << "MIPS_GOTSYM exceeds a number of dynamic symbols.\n"; in parseGOT()
1807 W.startLine() << "Number of global GOT entries exceeds the size of GOT.\n"; in parseGOT()
1815 DictScope GS(W, "Primary GOT"); in parseGOT()
1817 W.printHex("Canonical gp value", GOTShdr->sh_addr + 0x7ff0); in parseGOT()
1819 ListScope RS(W, "Reserved entries"); in parseGOT()
1822 DictScope D(W, "Entry"); in parseGOT()
1824 W.printString("Purpose", StringRef("Lazy resolver")); in parseGOT()
1828 DictScope D(W, "Entry"); in parseGOT()
1830 W.printString("Purpose", StringRef("Module pointer (GNU extension)")); in parseGOT()
1834 ListScope LS(W, "Local entries"); in parseGOT()
1836 DictScope D(W, "Entry"); in parseGOT()
1841 ListScope GS(W, "Global entries"); in parseGOT()
1847 DictScope D(W, "Entry"); in parseGOT()
1854 W.printNumber("Number of TLS and multi-GOT entries", uint64_t(SpecGotNum)); in parseGOT()
1859 W.startLine() << "Cannot find MIPS_PLTGOT dynamic table tag.\n"; in parsePLT()
1863 W.startLine() << "Cannot find JMPREL dynamic table tag.\n"; in parsePLT()
1869 W.startLine() << "There is no .got.plt section in the file.\n"; in parsePLT()
1874 W.startLine() << "The .got.plt section is empty.\n"; in parsePLT()
1880 W.startLine() << "There is no .rel.plt section in the file.\n"; in parsePLT()
1894 DictScope GS(W, "PLT GOT"); in parsePLT()
1896 ListScope RS(W, "Reserved entries"); in parsePLT()
1902 ListScope GS(W, "Entries"); in parsePLT()
1942 W.printHex("Address", GotAddr + Offset); in printGotEntry()
1943 W.printNumber("Access", Offset - 0x7ff0); in printGotEntry()
1944 W.printHex("Initial", *It); in printGotEntry()
1953 W.printHex("Value", Sym->st_value); in printGlobalGotEntry()
1954 W.printEnum("Type", Sym->getType(), makeArrayRef(ElfSymbolTypes)); in printGlobalGotEntry()
1960 W.printHex("Section", SectionName, SectionIndex); in printGlobalGotEntry()
1964 W.printNumber("Name", FullSymbolName, Sym->st_name); in printGlobalGotEntry()
1971 DictScope D(W, "Entry"); in printPLTEntry()
1973 W.printHex("Address", PLTAddr + Offset); in printPLTEntry()
1974 W.printHex("Initial", *It); in printPLTEntry()
1975 W.printString("Purpose", Purpose); in printPLTEntry()
1983 DictScope D(W, "Entry"); in printPLTEntry()
1985 W.printHex("Address", PLTAddr + Offset); in printPLTEntry()
1986 W.printHex("Initial", *It); in printPLTEntry()
1987 W.printHex("Value", Sym->st_value); in printPLTEntry()
1988 W.printEnum("Type", Sym->getType(), makeArrayRef(ElfSymbolTypes)); in printPLTEntry()
1994 W.printHex("Section", SectionName, SectionIndex); in printPLTEntry()
1997 W.printNumber("Name", FullSymbolName, Sym->st_name); in printPLTEntry()
2002 W.startLine() << "MIPS PLT GOT is available for MIPS targets only.\n"; in printMipsPLTGOT()
2006 MipsGOTParser<ELFT> GOTParser(this, Obj, dynamic_table(), W); in printMipsPLTGOT()
2085 W.startLine() << "There is no .MIPS.abiflags section in the file.\n"; in printMipsABIFlags()
2090 W.startLine() << "The .MIPS.abiflags section is empty.\n"; in printMipsABIFlags()
2094 W.startLine() << "The .MIPS.abiflags section has a wrong size.\n"; in printMipsABIFlags()
2100 raw_ostream &OS = W.getOStream(); in printMipsABIFlags()
2101 DictScope GS(W, "MIPS ABI Flags"); in printMipsABIFlags()
2103 W.printNumber("Version", Flags->version); in printMipsABIFlags()
2104 W.startLine() << "ISA: "; in printMipsABIFlags()
2110 W.printEnum("ISA Extension", Flags->isa_ext, makeArrayRef(ElfMipsISAExtType)); in printMipsABIFlags()
2111 W.printFlags("ASEs", Flags->ases, makeArrayRef(ElfMipsASEFlags)); in printMipsABIFlags()
2112 W.printEnum("FP ABI", Flags->fp_abi, makeArrayRef(ElfMipsFpABIType)); in printMipsABIFlags()
2113 W.printNumber("GPR size", getMipsRegisterSize(Flags->gpr_size)); in printMipsABIFlags()
2114 W.printNumber("CPR1 size", getMipsRegisterSize(Flags->cpr1_size)); in printMipsABIFlags()
2115 W.printNumber("CPR2 size", getMipsRegisterSize(Flags->cpr2_size)); in printMipsABIFlags()
2116 W.printFlags("Flags 1", Flags->flags1, makeArrayRef(ElfMipsFlags1)); in printMipsABIFlags()
2117 W.printHex("Flags 2", Flags->flags2); in printMipsABIFlags()
2123 W.startLine() << "There is no .reginfo section in the file.\n"; in printMipsReginfo()
2128 W.startLine() << "The .reginfo section is empty.\n"; in printMipsReginfo()
2132 W.startLine() << "The .reginfo section has a wrong size.\n"; in printMipsReginfo()
2138 DictScope GS(W, "MIPS RegInfo"); in printMipsReginfo()
2139 W.printHex("GP", Reginfo->ri_gp_value); in printMipsReginfo()
2140 W.printHex("General Mask", Reginfo->ri_gprmask); in printMipsReginfo()
2141 W.printHex("Co-Proc Mask0", Reginfo->ri_cprmask[0]); in printMipsReginfo()
2142 W.printHex("Co-Proc Mask1", Reginfo->ri_cprmask[1]); in printMipsReginfo()
2143 W.printHex("Co-Proc Mask2", Reginfo->ri_cprmask[2]); in printMipsReginfo()
2144 W.printHex("Co-Proc Mask3", Reginfo->ri_cprmask[3]); in printMipsReginfo()