/external/llvm/tools/obj2yaml/ |
coff2yaml.cpp | 56 COFFYAML::Section Sec; 57 Sec.Name = Sect->Name; // FIXME: check the null termination! 59 Sec.Header.Characteristics = Characteristics; 60 Sec.Alignment = 1 << (((Characteristics >> 20) & 0xf) - 1); 64 Sec.SectionData = yaml::BinaryRef(sectionData); 76 Sec.Relocations = Relocations; 77 Sections.push_back(Sec);
|
/external/llvm/tools/yaml2obj/ |
yaml2coff.cpp | 42 COFFYAML::Section &Sec = *i; 46 StringRef Name = Sec.Name; 49 std::copy(Name.begin(), Name.end(), Sec.Header.Name); 58 Sec.Header.Name[0] = '/'; 59 std::copy(str.begin(), str.end(), Sec.Header.Name + 1); 62 Sec.Header.Characteristics |= (Log2_32(Sec.Alignment) + 1) << 20;
|
/external/llvm/lib/Target/AArch64/MCTargetDesc/ |
AArch64AsmBackend.cpp | 536 const MCSection *Sec = Fixup.getValue()->FindAssociatedSection(); 537 const MCSectionELF *SecELF = static_cast<const MCSectionELF *>(Sec);
|
/external/llvm/lib/Target/Mips/MCTargetDesc/ |
MipsTargetStreamer.cpp | 330 const MCSectionELF *Sec = Context.getELFSection( 333 OS.SwitchSection(Sec); 347 const MCSectionELF *Sec = 350 OS.SwitchSection(Sec); 639 const MCSectionELF *Sec = 642 MCSectionData &ABIShndxSD = MCA.getOrCreateSectionData(*Sec); 644 OS.SwitchSection(Sec);
|
/external/llvm/tools/llvm-size/ |
llvm-size.cpp | 142 MachO::section_64 Sec = MachO->getSection64(Load, J); 144 outs() << "\tSection (" << format("%.16s", &Sec.segname) << ", " 145 << format("%.16s", &Sec.sectname) << "): "; 147 outs() << "\tSection " << format("%.16s", &Sec.sectname) << ": "; 148 outs() << format(fmt.str().c_str(), Sec.size); 150 outs() << " (addr 0x" << format("%" PRIx64, Sec.addr) << " offset " 151 << Sec.offset << ")"; 153 sec_total += Sec.size; 168 MachO::section Sec = MachO->getSection(Load, J); 170 outs() << "\tSection (" << format("%.16s", &Sec.segname) << ", [all...] |
/external/llvm/lib/CodeGen/ |
TargetLoweringObjectFileImpl.cpp | 70 const MCSection *Sec = getContext().getELFSection(NameData, 76 Streamer.SwitchSection(Sec); [all...] |
/external/llvm/include/llvm/Object/ |
ELFObjectFile.h | 78 void moveSectionNext(DataRefImpl &Sec) const override; 79 std::error_code getSectionName(DataRefImpl Sec, 81 std::error_code getSectionAddress(DataRefImpl Sec, 83 std::error_code getSectionSize(DataRefImpl Sec, uint64_t &Res) const override; 84 std::error_code getSectionContents(DataRefImpl Sec, 86 std::error_code getSectionAlignment(DataRefImpl Sec, 88 std::error_code isSectionText(DataRefImpl Sec, bool &Res) const override; 89 std::error_code isSectionData(DataRefImpl Sec, bool &Res) const override; 90 std::error_code isSectionBSS(DataRefImpl Sec, bool &Res) const override; 91 std::error_code isSectionRequiredForExecution(DataRefImpl Sec, 538 const Elf_Shdr *sec = getRelSection(Rel); local 601 const Elf_Shdr *sec = getRelSection(Rel); local 615 const Elf_Shdr *sec = getRelSection(Rel); local 639 const Elf_Shdr *sec = getRelSection(Rel); local 662 const Elf_Shdr *sec = getRelSection(Rel); local 680 const Elf_Shdr *sec = getRelSection(Rel); local [all...] |
/external/llvm/tools/llvm-nm/ |
llvm-nm.cpp | 328 section_iterator Sec = MachO->section_end(); 329 MachO->getSymbolSection(I->Symb, Sec); 330 DataRefImpl Ref = Sec->getRawDataRefImpl(); 621 section_iterator Sec = Obj.section_end(); 622 Obj.getSymbolSection(Symb, Sec); 623 DataRefImpl Ref = Sec->getRawDataRefImpl(); [all...] |
/external/llvm/tools/llvm-readobj/ |
ELFDumper.cpp | 67 void printRelocations(const Elf_Shdr *Sec); 68 void printRelocation(const Elf_Shdr *Sec, typename ELFO::Elf_Rela Rel); 159 const typename ELFO::Elf_Shdr *Sec = Obj.getSection(SectionIndex); 160 SectionName = errorOrDefault(Obj.getSectionName(Sec)); 640 void ELFDumper<ELFT>::printRelocations(const Elf_Shdr *Sec) { 641 switch (Sec->sh_type) { 643 for (typename ELFO::Elf_Rel_Iter RI = Obj->begin_rel(Sec), 644 RE = Obj->end_rel(Sec); 650 printRelocation(Sec, Rela); 654 for (typename ELFO::Elf_Rela_Iter RI = Obj->begin_rela(Sec), [all...] |
/external/llvm/lib/ExecutionEngine/RuntimeDyld/ |
RuntimeDyldMachO.cpp | 75 virtual void updateSectionAddress(const SectionRef &Sec, uint64_t Addr) { 78 const_cast<char *>(objf->getSectionPointer(Sec.getRawDataRefImpl())); 80 uint64_t oldAddr = OldSectionAddrList[Sec.getRawDataRefImpl().d.a]; 92 if (*symSec == Sec) { 100 uint64_t getOldSectionAddr(const SectionRef &Sec) const { 101 return OldSectionAddrList[Sec.getRawDataRefImpl().d.a]; 731 SectionRef Sec = MachO->getRelocationSection(RE); 733 Sec.isText(IsCode); 734 Value.SectionID = findOrEmitSection(Obj, Sec, IsCode, ObjSectionToID); 735 uint64_t Addr = MachOObj.getOldSectionAddr(Sec); [all...] |
/external/llvm/lib/MC/ |
WinCOFFObjectWriter.cpp | 345 MCSectionCOFF const &Sec = 348 COFFSection *coff_section = createSection(Sec.getSectionName()); 349 COFFSymbol *coff_symbol = createSymbol(Sec.getSectionName()); 350 if (Sec.getSelection() != COFF::IMAGE_COMDAT_SELECT_ASSOCIATIVE) { 351 if (const MCSymbol *S = Sec.getCOMDATSymbol()) { 367 coff_symbol->Aux[0].Aux.SectionDefinition.Selection = Sec.getSelection(); 369 coff_section->Header.Characteristics = Sec.getCharacteristics(); 470 COFFSection *Sec = 473 if (coff_symbol->Section && coff_symbol->Section != Sec) 476 coff_symbol->Section = Sec; [all...] |
ELFObjectWriter.cpp | 462 sizeof(ELF::Elf32_Ehdr))); // e_shoff = sec hdr table off in bytes 760 auto &Sec = cast<MCSectionELF>(Sym.getSection()); 761 unsigned Flags = Sec.getFlags(); [all...] |
/external/llvm/lib/Object/ |
COFFObjectFile.cpp | 232 const coff_section *Sec = nullptr; 233 if (std::error_code EC = getSection(Symb->SectionNumber, Sec)) 236 Ref.p = reinterpret_cast<uintptr_t>(Sec); 243 const coff_section *Sec = toSec(Ref); 244 Sec += 1; 245 Ref.p = reinterpret_cast<uintptr_t>(Sec); 250 const coff_section *Sec = toSec(Ref); 251 return getSectionName(Sec, Result); 256 const coff_section *Sec = toSec(Ref); 257 Result = Sec->VirtualAddress [all...] |
MachOObjectFile.cpp | 260 unsigned Sec) { 269 uintptr_t SectionAddr = CommandAddr + SegmentLoadSize + Sec * SectionSize; 416 DataRefImpl Sec) { 418 MachO::section_64 Sect = O->getSection64(Sec); 421 MachO::section Sect = O->getSection(Sec); 449 const char *Sec = getSectionPtr(this, Load, J); 450 Sections.push_back(Sec); 578 DataRefImpl Sec; 579 Sec.d.a = SectionIndex-1; 580 getSectionSize(Sec, Size) [all...] |