/external/llvm/lib/ExecutionEngine/RuntimeDyld/ |
H A D | RuntimeDyldELF.cpp | 62 void updateSectionAddress(const SectionRef &Sec, uint64_t Addr); 89 void updateSectionAddress(const SectionRef &Sec, uint64_t Addr) override { 91 ->updateSectionAddress(Sec, Addr); 128 void DyldELFObject<ELFT>::updateSectionAddress(const SectionRef &Sec, argument 130 DataRefImpl ShdrRef = Sec.getRawDataRefImpl();
|
H A D | RuntimeDyldMachO.cpp | 75 virtual void updateSectionAddress(const SectionRef &Sec, uint64_t Addr) { argument 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); local 733 Sec.isText(IsCode); 734 Value.SectionID = findOrEmitSection(Obj, Sec, IsCode, ObjSectionToID); 735 uint64_t Addr = MachOObj.getOldSectionAddr(Sec); [all...] |
/external/llvm/lib/Object/ |
H A D | COFFYAML.cpp | 378 void MappingTraits<COFFYAML::Section>::mapping(IO &IO, COFFYAML::Section &Sec) { argument 380 IO, Sec.Header.Characteristics); 381 IO.mapRequired("Name", Sec.Name); 383 IO.mapOptional("Alignment", Sec.Alignment); 384 IO.mapRequired("SectionData", Sec.SectionData); 385 IO.mapOptional("Relocations", Sec.Relocations);
|
H A D | COFFObjectFile.cpp | 232 const coff_section *Sec = nullptr; local 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); local 244 Sec += 1; 245 Ref.p = reinterpret_cast<uintptr_t>(Sec); 250 const coff_section *Sec = toSec(Ref); local 251 return getSectionName(Sec, Result); 256 const coff_section *Sec = toSec(Ref); local 257 Result = Sec 263 const coff_section *Sec = toSec(Ref); local 270 const coff_section *Sec = toSec(Ref); local 279 const coff_section *Sec = toSec(Ref); local 288 const coff_section *Sec = toSec(Ref); local 295 const coff_section *Sec = toSec(Ref); local 302 const coff_section *Sec = toSec(Ref); local 317 const coff_section *Sec = toSec(Ref); local 339 const coff_section *Sec = toSec(SecRef); local 352 const coff_section *Sec = toSec(Ref); local 369 getNumberOfRelocations(const coff_section *Sec, const uint8_t *base) argument 384 const coff_section *Sec = toSec(Ref); local 808 getSectionName(const coff_section *Sec, StringRef &Res) const argument 837 getSectionContents(const coff_section *Sec, ArrayRef<uint8_t> &Res) const argument [all...] |
H A D | 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); local 450 Sections.push_back(Sec); 578 DataRefImpl Sec; local 579 Sec.d.a = SectionIndex-1; 580 getSectionSize(Sec, Siz 259 getSectionPtr(const MachOObjectFile *O, MachOObjectFile::LoadCommandInfo L, unsigned Sec) argument 415 getSectionFlags(const MachOObjectFile *O, DataRefImpl Sec) argument 668 getSectionName(DataRefImpl Sec, StringRef &Result) const argument 675 getSectionAddress(DataRefImpl Sec, uint64_t &Res) const argument 687 getSectionSize(DataRefImpl Sec, uint64_t &Res) const argument 700 getSectionContents(DataRefImpl Sec, StringRef &Res) const argument 719 getSectionAlignment(DataRefImpl Sec, uint64_t &Res) const argument 734 isSectionText(DataRefImpl Sec, bool &Res) const argument 741 isSectionData(DataRefImpl Sec, bool &Result) const argument 751 isSectionBSS(DataRefImpl Sec, bool &Result) const argument 762 isSectionRequiredForExecution(DataRefImpl Sec, bool &Result) const argument 769 isSectionVirtual(DataRefImpl Sec, bool &Result) const argument 776 isSectionZeroInit(DataRefImpl Sec, bool &Res) const argument 785 isSectionReadOnlyData(DataRefImpl Sec, bool &Result) const argument 796 sectionContainsSymbol(DataRefImpl Sec, DataRefImpl Symb, bool &Result) const argument 851 DataRefImpl Sec; local 1782 const char *Sec = getSectionPtr(this, L, Index); local 1788 const char *Sec = getSectionPtr(this, L, Index); local 1837 DataRefImpl Sec; local [all...] |
/external/llvm/tools/llvm-readobj/ |
H A D | MachODumper.cpp | 159 DataRefImpl Sec, 162 MachO::section Sect = Obj->getSection(Sec); 174 MachO::section_64 Sect = Obj->getSection64(Sec); 158 getSection(const MachOObjectFile *Obj, DataRefImpl Sec, MachOSection &Section) argument
|
H A D | 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); local 160 SectionName = errorOrDefault(Obj.getSectionName(Sec)); 640 void ELFDumper<ELFT>::printRelocations(const Elf_Shdr *Sec) { argument 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), 664 printRelocation(const Elf_Shdr *Sec, typename ELFO::Elf_Rela Rel) argument [all...] |
/external/llvm/tools/obj2yaml/ |
H A D | coff2yaml.cpp | 56 COFFYAML::Section Sec; local 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/ |
H A D | yaml2coff.cpp | 42 COFFYAML::Section &Sec = *i; local 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/CodeGen/ |
H A D | TargetLoweringObjectFileImpl.cpp | 70 const MCSection *Sec = getContext().getELFSection(NameData, local 76 Streamer.SwitchSection(Sec); 936 const MCSection *Sec = getDrectveSection(); local 937 Streamer.SwitchSection(Sec); 962 const MCSection *Sec, 966 return Sec; 970 const MCSectionCOFF *SecCOFF = cast<MCSectionCOFF>(Sec); 961 getAssociativeCOFFSection(MCContext &Ctx, const MCSection *Sec, const MCSymbol *KeySym) argument
|
/external/llvm/lib/Target/AArch64/MCTargetDesc/ |
H A D | AArch64AsmBackend.cpp | 536 const MCSection *Sec = Fixup.getValue()->FindAssociatedSection(); local 537 const MCSectionELF *SecELF = static_cast<const MCSectionELF *>(Sec);
|
/external/llvm/lib/Target/Mips/MCTargetDesc/ |
H A D | MipsTargetStreamer.cpp | 330 const MCSectionELF *Sec = Context.getELFSection( local 333 OS.SwitchSection(Sec); 347 const MCSectionELF *Sec = local 350 OS.SwitchSection(Sec); 639 const MCSectionELF *Sec = local 642 MCSectionData &ABIShndxSD = MCA.getOrCreateSectionData(*Sec); 644 OS.SwitchSection(Sec);
|
/external/llvm/tools/llvm-size/ |
H A D | llvm-size.cpp | 142 MachO::section_64 Sec = MachO->getSection64(Load, J); local 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); local 170 outs() << "\tSection (" << format("%.16s", &Sec 209 MachO::section_64 Sec = MachO->getSection64(Load, J); local 235 MachO::section Sec = MachO->getSection(Load, J); local [all...] |
/external/llvm/include/llvm/Object/ |
H A D | 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, 367 DataRefImpl Sec; local 380 getSectionName(DataRefImpl Sec, StringRef &Result) const argument 390 getSectionAddress(DataRefImpl Sec, uint64_t &Result) const argument 397 getSectionSize(DataRefImpl Sec, uint64_t &Result) const argument 405 getSectionContents(DataRefImpl Sec, StringRef &Result) const argument 414 getSectionAlignment(DataRefImpl Sec, uint64_t &Result) const argument 421 isSectionText(DataRefImpl Sec, bool &Result) const argument 428 isSectionData(DataRefImpl Sec, bool &Result) const argument 437 isSectionBSS(DataRefImpl Sec, bool &Result) const argument 447 isSectionRequiredForExecution(DataRefImpl Sec, bool &Result) const argument 454 isSectionVirtual(DataRefImpl Sec, bool &Result) const argument 461 isSectionZeroInit(DataRefImpl Sec, bool &Result) const argument 468 isSectionReadOnlyData(DataRefImpl Sec, bool &Result) const argument 476 sectionContainsSymbol(DataRefImpl Sec, DataRefImpl Symb, bool &Result) const argument [all...] |
H A D | ELF.h | 422 ErrorOr<ArrayRef<uint8_t> > getSectionContents(const Elf_Shdr *Sec) const; 539 ELFFile<ELFT>::getSectionContents(const Elf_Shdr *Sec) const { 540 if (Sec->sh_offset + Sec->sh_size > Buf.size()) 542 const uint8_t *Start = base() + Sec->sh_offset; 543 return ArrayRef<uint8_t>(Start, Sec->sh_size); 586 ELFFile<ELFT>::getRelocationSymbol(const Elf_Shdr *Sec, const RelT *Rel) const { argument 587 if (!Sec->sh_link) 589 const Elf_Shdr *SymTable = getSection(Sec->sh_link); 659 for (const Elf_Shdr &Sec [all...] |
/external/llvm/tools/llvm-nm/ |
H A D | llvm-nm.cpp | 328 section_iterator Sec = MachO->section_end(); local 329 MachO->getSymbolSection(I->Symb, Sec); 330 DataRefImpl Ref = Sec->getRawDataRefImpl(); 621 section_iterator Sec = Obj.section_end(); local 622 Obj.getSymbolSection(Symb, Sec); 623 DataRefImpl Ref = Sec->getRawDataRefImpl();
|
/external/llvm/include/llvm/MC/ |
H A D | MCContext.h | 387 addGenDwarfSection(const MCSection *Sec) { argument 389 std::make_pair(Sec, std::make_pair(nullptr, nullptr)));
|
H A D | MCDwarf.h | 161 void addLineEntry(const MCLineEntry &LineEntry, const MCSection *Sec) { argument 162 MCLineDivisions[Sec].push_back(LineEntry);
|
/external/llvm/lib/MC/ |
H A D | WinCOFFObjectWriter.cpp | 345 MCSectionCOFF const &Sec = local 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 = local 473 if (coff_symbol->Section && coff_symbol->Section != Sec) 476 coff_symbol->Section = Sec; 904 COFFSection *Sec = SectionMap[&Section.getSection()]; local [all...] |
H A D | ELFObjectWriter.cpp | 760 auto &Sec = cast<MCSectionELF>(Sym.getSection()); local 761 unsigned Flags = Sec.getFlags(); 1361 const MCSectionData *Sec = Entry.Section; local 1362 if (Sec) 1363 Index = Sec->getOrdinal() + FileSymbolData.size() +
|
/external/llvm/lib/CodeGen/AsmPrinter/ |
H A D | DwarfDebug.cpp | 354 const MCSymbol *Sec) { 358 U.addSectionDelta(D, A, L, Sec); 352 addSectionLabel(AsmPrinter &Asm, DwarfUnit &U, DIE &D, dwarf::Attribute A, const MCSymbol *L, const MCSymbol *Sec) argument
|