Lines Matching refs:W
530 DictScope D(W, "ElfHeader"); in printFileHeaders()
532 DictScope D(W, "Ident"); in printFileHeaders()
533 W.printBinary("Magic", makeArrayRef(Header->e_ident).slice(ELF::EI_MAG0, in printFileHeaders()
535 W.printEnum ("Class", Header->e_ident[ELF::EI_CLASS], in printFileHeaders()
537 W.printEnum ("DataEncoding", Header->e_ident[ELF::EI_DATA], in printFileHeaders()
539 W.printNumber("FileVersion", Header->e_ident[ELF::EI_VERSION]); in printFileHeaders()
540 W.printEnum ("OS/ABI", Header->e_ident[ELF::EI_OSABI], in printFileHeaders()
542 W.printNumber("ABIVersion", Header->e_ident[ELF::EI_ABIVERSION]); in printFileHeaders()
543 W.printBinary("Unused", makeArrayRef(Header->e_ident).slice(ELF::EI_PAD)); in printFileHeaders()
546 W.printEnum ("Type", Header->e_type, makeArrayRef(ElfObjectFileType)); in printFileHeaders()
547 W.printEnum ("Machine", Header->e_machine, makeArrayRef(ElfMachineType)); in printFileHeaders()
548 W.printNumber("Version", Header->e_version); in printFileHeaders()
549 W.printHex ("Entry", Header->e_entry); in printFileHeaders()
550 W.printHex ("ProgramHeaderOffset", Header->e_phoff); in printFileHeaders()
551 W.printHex ("SectionHeaderOffset", Header->e_shoff); in printFileHeaders()
553 W.printFlags("Flags", Header->e_flags, makeArrayRef(ElfHeaderMipsFlags), in printFileHeaders()
556 W.printFlags("Flags", Header->e_flags); in printFileHeaders()
557 W.printNumber("HeaderSize", Header->e_ehsize); in printFileHeaders()
558 W.printNumber("ProgramHeaderEntrySize", Header->e_phentsize); in printFileHeaders()
559 W.printNumber("ProgramHeaderCount", Header->e_phnum); in printFileHeaders()
560 W.printNumber("SectionHeaderEntrySize", Header->e_shentsize); in printFileHeaders()
561 W.printNumber("SectionHeaderCount", Header->e_shnum); in printFileHeaders()
562 W.printNumber("StringTableSectionIndex", Header->e_shstrndx); in printFileHeaders()
568 ListScope SectionsD(W, "Sections"); in printSections()
579 DictScope SectionD(W, "Section"); in printSections()
580 W.printNumber("Index", SectionIndex); in printSections()
581 W.printNumber("Name", Name, Section->sh_name); in printSections()
582 W.printHex("Type", in printSections()
585 W.printFlags ("Flags", Section->sh_flags, makeArrayRef(ElfSectionFlags)); in printSections()
586 W.printHex ("Address", Section->sh_addr); in printSections()
587 W.printHex ("Offset", Section->sh_offset); in printSections()
588 W.printNumber("Size", Section->sh_size); in printSections()
589 W.printNumber("Link", Section->sh_link); in printSections()
590 W.printNumber("Info", Section->sh_info); in printSections()
591 W.printNumber("AddressAlignment", Section->sh_addralign); in printSections()
592 W.printNumber("EntrySize", Section->sh_entsize); in printSections()
595 ListScope D(W, "Relocations"); in printSections()
600 ListScope D(W, "Symbols"); in printSections()
611 W.printBinaryBlock("SectionData", in printSections()
619 ListScope D(W, "Relocations"); in printRelocations()
632 W.startLine() << "Section (" << SectionNumber << ") " << Name << " {\n"; in printRelocations()
633 W.indent(); in printRelocations()
637 W.unindent(); in printRelocations()
638 W.startLine() << "}\n"; in printRelocations()
678 DictScope Group(W, "Relocation"); in printRelocation()
679 W.printHex("Offset", Rel.r_offset); in printRelocation()
680 W.printNumber("Type", RelocName, (int)Rel.getType(Obj->isMips64EL())); in printRelocation()
681 W.printNumber("Symbol", SymbolName.size() > 0 ? SymbolName : "-", in printRelocation()
683 W.printHex("Addend", Rel.r_addend); in printRelocation()
685 raw_ostream& OS = W.startLine(); in printRelocation()
686 OS << W.hex(Rel.r_offset) in printRelocation()
689 << " " << W.hex(Rel.r_addend) in printRelocation()
696 ListScope Group(W, "Symbols"); in printSymbols()
706 ListScope Group(W, "DynamicSymbols"); in printDynamicSymbols()
722 DictScope D(W, "Symbol"); in printSymbol()
723 W.printNumber("Name", FullSymbolName, Symbol->st_name); in printSymbol()
724 W.printHex ("Value", Symbol->st_value); in printSymbol()
725 W.printNumber("Size", Symbol->st_size); in printSymbol()
726 W.printEnum ("Binding", Symbol->getBinding(), in printSymbol()
728 W.printEnum ("Type", Symbol->getType(), makeArrayRef(ElfSymbolTypes)); in printSymbol()
729 W.printNumber("Other", Symbol->st_other); in printSymbol()
730 W.printHex("Section", SectionName, SectionIndex); in printSymbol()
919 W.startLine() << "UnwindInfo not implemented.\n"; in printUnwindInfo()
927 ARM::EHABI::PrinterContext<ELFType<support::little, 2, false> > Ctx(W, Obj); in printUnwindInfo()
930 W.startLine() << "UnwindInfo not implemented.\n"; in printUnwindInfo()
942 raw_ostream &OS = W.getOStream(); in printDynamicTable()
943 W.startLine() << "DynamicSection [ (" << Total << " entries)\n"; in printDynamicTable()
947 W.startLine() in printDynamicTable()
951 W.startLine() in printDynamicTable()
959 W.startLine() << "]\n"; in printDynamicTable()
964 ListScope D(W, "NeededLibraries"); in printNeededLibraries()
982 ListScope L(W, "ProgramHeaders"); in printProgramHeaders()
987 DictScope P(W, "ProgramHeader"); in printProgramHeaders()
988 W.printHex ("Type", in printProgramHeaders()
991 W.printHex ("Offset", PI->p_offset); in printProgramHeaders()
992 W.printHex ("VirtualAddress", PI->p_vaddr); in printProgramHeaders()
993 W.printHex ("PhysicalAddress", PI->p_paddr); in printProgramHeaders()
994 W.printNumber("FileSize", PI->p_filesz); in printProgramHeaders()
995 W.printNumber("MemSize", PI->p_memsz); in printProgramHeaders()
996 W.printFlags ("Flags", PI->p_flags, makeArrayRef(ElfSegmentFlags)); in printProgramHeaders()
997 W.printNumber("Alignment", PI->p_align); in printProgramHeaders()
1003 W.startLine() << "Attributes not implemented.\n"; in printAttributes()
1010 W.startLine() << "Attributes not implemented.\n"; in printAttributes()
1014 DictScope BA(W, "BuildAttributes"); in printAttributes()
1030 W.printHex("FormatVersion", (*Contents)[0]); in printAttributes()
1034 ARMAttributeParser(W).Parse(*Contents); in printAttributes()
1045 MipsGOTParser(const ObjectFile *Obj, StreamWriter &W) : Obj(Obj), W(W) {} in MipsGOTParser() argument
1056 StreamWriter &W; member in __anon07d3185e0411::MipsGOTParser
1076 W.startLine() << "The .got section is empty.\n"; in parseGOT()
1086 W.startLine() << "MIPS_LOCAL_GOTNO exceeds a number of GOT entries.\n"; in parseGOT()
1095 W.startLine() << "MIPS_GOTSYM exceeds a number of dynamic symbols.\n"; in parseGOT()
1102 W.startLine() << "Number of global GOT entries exceeds the size of GOT.\n"; in parseGOT()
1110 DictScope GS(W, "Primary GOT"); in parseGOT()
1112 W.printHex("Canonical gp value", GOTShdr.sh_addr + 0x7ff0); in parseGOT()
1114 ListScope RS(W, "Reserved entries"); in parseGOT()
1117 DictScope D(W, "Entry"); in parseGOT()
1119 W.printString("Purpose", StringRef("Lazy resolver")); in parseGOT()
1123 DictScope D(W, "Entry"); in parseGOT()
1125 W.printString("Purpose", StringRef("Module pointer (GNU extension)")); in parseGOT()
1129 ListScope LS(W, "Local entries"); in parseGOT()
1131 DictScope D(W, "Entry"); in parseGOT()
1136 ListScope GS(W, "Global entries"); in parseGOT()
1141 DictScope D(W, "Entry"); in parseGOT()
1147 W.printNumber("Number of TLS and multi-GOT entries", uint64_t(SpecGotNum)); in parseGOT()
1180 W.startLine() << "Cannot find MIPS_LOCAL_GOTNO dynamic table tag.\n"; in getGOTTags()
1185 W.startLine() << "Cannot find MIPS_GOTSYM dynamic table tag.\n"; in getGOTTags()
1196 W.printHex("Address", GotAddr + Offset); in printGotEntry()
1197 W.printNumber("Access", Offset - 0x7ff0); in printGotEntry()
1198 W.printHex("Initial", *It); in printGotEntry()
1206 W.printHex("Value", Sym->st_value); in printGlobalGotEntry()
1207 W.printEnum("Type", Sym->getType(), makeArrayRef(ElfSymbolTypes)); in printGlobalGotEntry()
1212 W.printHex("Section", SectionName, SectionIndex); in printGlobalGotEntry()
1215 W.printNumber("Name", FullSymbolName, Sym->st_name); in printGlobalGotEntry()
1220 W.startLine() << "MIPS PLT GOT is available for MIPS targets only.\n"; in printMipsPLTGOT()
1233 W.startLine() << "Cannot find PLTGOT dynamic table tag.\n"; in printMipsPLTGOT()
1239 W.startLine() << "There is no .got section in the file.\n"; in printMipsPLTGOT()
1243 MipsGOTParser<ELFT>(Obj, W).parseGOT(*GotShdr); in printMipsPLTGOT()