Searched defs:Sec (Results 1 - 25 of 28) sorted by relevance

12

/external/llvm/lib/Target/Mips/MCTargetDesc/
H A DMipsOptionRecord.cpp31 const MCSectionELF *Sec = local
34 MCA.getOrCreateSectionData(*Sec).setAlignment(8);
35 Streamer->SwitchSection(Sec);
49 const MCSectionELF *Sec = Context.getELFSection( local
51 MCA.getOrCreateSectionData(*Sec)
53 Streamer->SwitchSection(Sec);
H A DMipsTargetStreamer.cpp567 const MCSectionELF *Sec = Context.getELFSection( local
573 MCSectionData &SecData = MCA.getOrCreateSectionData(*Sec);
578 OS.SwitchSection(Sec);
789 const MCSectionELF *Sec = Context.getELFSection( local
791 MCSectionData &ABIShndxSD = MCA.getOrCreateSectionData(*Sec);
793 OS.SwitchSection(Sec);
/external/llvm/lib/Target/AArch64/MCTargetDesc/
H A DAArch64ELFStreamer.cpp180 auto Sec = getCurrentSection().first; local
181 assert(Sec && "need a section");
182 Symbol->setSection(*Sec);
H A DAArch64MachObjectWriter.cpp296 const MCSection &Sec = Symbol->getSection(); local
297 if (!Asm.getContext().getAsmInfo()->isSectionAtomizableBySymbols(Sec))
/external/llvm/lib/Object/
H A DCOFFYAML.cpp481 void MappingTraits<COFFYAML::Section>::mapping(IO &IO, COFFYAML::Section &Sec) { argument
483 IO, Sec.Header.Characteristics);
484 IO.mapRequired("Name", Sec.Name);
486 IO.mapOptional("VirtualAddress", Sec.Header.VirtualAddress, 0U);
487 IO.mapOptional("VirtualSize", Sec.Header.VirtualSize, 0U);
488 IO.mapOptional("Alignment", Sec.Alignment);
489 IO.mapRequired("SectionData", Sec.SectionData);
490 IO.mapOptional("Relocations", Sec.Relocations);
H A DCOFFObjectFile.cpp307 const coff_section *Sec = nullptr; local
308 if (std::error_code EC = getSection(Symb.getSectionNumber(), Sec))
311 Ref.p = reinterpret_cast<uintptr_t>(Sec);
318 const coff_section *Sec = toSec(Ref); local
319 Sec += 1;
320 Ref.p = reinterpret_cast<uintptr_t>(Sec);
325 const coff_section *Sec = toSec(Ref); local
326 return getSectionName(Sec, Result);
330 const coff_section *Sec = toSec(Ref); local
331 return Sec
340 const coff_section *Sec = toSec(Ref); local
348 const coff_section *Sec = toSec(Ref); local
353 const coff_section *Sec = toSec(Ref); local
358 const coff_section *Sec = toSec(Ref); local
363 const coff_section *Sec = toSec(Ref); local
371 const coff_section *Sec = toSec(Ref); local
379 const coff_section *Sec = toSec(SecRef); local
385 getNumberOfRelocations(const coff_section *Sec, MemoryBufferRef M, const uint8_t *base) argument
403 getFirstReloc(const coff_section *Sec, MemoryBufferRef M, const uint8_t *Base) argument
420 const coff_section *Sec = toSec(Ref); local
428 const coff_section *Sec = toSec(Ref); local
942 getSectionName(const coff_section *Sec, StringRef &Res) const argument
991 getSectionContents(const coff_section *Sec, ArrayRef<uint8_t> &Res) const argument
[all...]
/external/llvm/lib/Target/X86/MCTargetDesc/
H A DX86MachObjectWriter.cpp210 const MCSection &Sec = Symbol->getSection(); local
211 if (!Asm.getContext().getAsmInfo()->isSectionAtomizableBySymbols(Sec))
/external/llvm/lib/ExecutionEngine/RuntimeDyld/
H A DRuntimeDyldELF.cpp57 void updateSectionAddress(const SectionRef &Sec, uint64_t Addr);
84 void DyldELFObject<ELFT>::updateSectionAddress(const SectionRef &Sec, argument
86 DataRefImpl ShdrRef = Sec.getRawDataRefImpl();
129 for (const auto &Sec : Obj->sections()) {
131 Sec.getName(SectionName);
133 DataRefImpl ShdrRef = Sec.getRawDataRefImpl();
H A DRuntimeDyldMachO.cpp78 SectionRef Sec = Obj.getRelocationSection(RelInfo); local
79 bool IsCode = Sec.isText();
80 Value.SectionID = findOrEmitSection(Obj, Sec, IsCode, ObjSectionToID);
81 uint64_t Addr = Sec.getAddress();
/external/llvm/tools/llvm-readobj/
H A DMachODumper.cpp293 DataRefImpl Sec,
296 MachO::section Sect = Obj->getSection(Sec);
308 MachO::section_64 Sect = Obj->getSection64(Sec);
292 getSection(const MachOObjectFile *Obj, DataRefImpl Sec, MachOSection &Section) argument
H A DELFDumper.cpp67 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));
643 void ELFDumper<ELFT>::printRelocations(const Elf_Shdr *Sec) { argument
644 switch (Sec->sh_type) {
646 for (typename ELFO::Elf_Rel_Iter RI = Obj->begin_rel(Sec),
647 RE = Obj->end_rel(Sec);
653 printRelocation(Sec, Rela);
657 for (typename ELFO::Elf_Rela_Iter RI = Obj->begin_rela(Sec),
667 printRelocation(const Elf_Shdr *Sec, typename ELFO::Elf_Rela Rel) argument
[all...]
/external/llvm/tools/llvm-size/
H A Dllvm-size.cpp142 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/tools/yaml2obj/
H A Dyaml2coff.cpp66 COFFYAML::Section &Sec = *i; local
70 StringRef Name = Sec.Name;
73 std::copy(Name.begin(), Name.end(), Sec.Header.Name);
82 Sec.Header.Name[0] = '/';
83 std::copy(str.begin(), str.end(), Sec.Header.Name + 1);
86 Sec.Header.Characteristics |= (Log2_32(Sec.Alignment) + 1) << 20;
/external/llvm/include/llvm/Object/
H A DELFObjectFile.h51 virtual uint64_t getSectionFlags(SectionRef Sec) const = 0;
52 virtual uint32_t getSectionType(SectionRef Sec) const = 0;
92 void moveSectionNext(DataRefImpl &Sec) const override;
93 std::error_code getSectionName(DataRefImpl Sec,
95 uint64_t getSectionAddress(DataRefImpl Sec) const override;
96 uint64_t getSectionSize(DataRefImpl Sec) const override;
97 std::error_code getSectionContents(DataRefImpl Sec,
99 uint64_t getSectionAlignment(DataRefImpl Sec) const override;
100 bool isSectionText(DataRefImpl Sec) const override;
101 bool isSectionData(DataRefImpl Sec) cons
424 DataRefImpl Sec; local
437 getSectionName(DataRefImpl Sec, StringRef &Result) const argument
458 getSectionContents(DataRefImpl Sec, StringRef &Result) const argument
495 sectionContainsSymbol(DataRefImpl Sec, DataRefImpl Symb) const argument
[all...]
H A DELF.h422 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 makeArrayRef(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/lib/CodeGen/
H A DTargetLoweringObjectFileImpl.cpp72 const MCSection *Sec = getContext().getELFSection(NameData, local
77 Streamer.SwitchSection(Sec);
1029 const MCSection *Sec = getDrectveSection(); local
1030 Streamer.SwitchSection(Sec);
/external/llvm/lib/MC/
H A DMCContext.cpp392 MCContext::getAssociativeCOFFSection(const MCSectionCOFF *Sec, argument
396 return Sec;
401 Sec->getCharacteristics() | COFF::IMAGE_SCN_LNK_COMDAT;
402 return getCOFFSection(Sec->getSectionName(), Characteristics, Sec->getKind(),
H A DMCObjectStreamer.cpp417 const MCSection *Sec = getCurrentSection().first; local
418 assert(Sec && "need a section");
419 unsigned ItemSize = Sec->isVirtualSection() ? 0 : 1;
H A DWinCOFFObjectWriter.cpp302 MCSectionCOFF const &Sec = local
305 COFFSection *coff_section = createSection(Sec.getSectionName());
306 COFFSymbol *coff_symbol = createSymbol(Sec.getSectionName());
307 if (Sec.getSelection() != COFF::IMAGE_COMDAT_SELECT_ASSOCIATIVE) {
308 if (const MCSymbol *S = Sec.getCOMDATSymbol()) {
324 coff_symbol->Aux[0].Aux.SectionDefinition.Selection = Sec.getSelection();
326 coff_section->Header.Characteristics = Sec.getCharacteristics();
428 COFFSection *Sec = local
431 if (coff_symbol->Section && coff_symbol->Section != Sec)
434 coff_symbol->Section = Sec;
942 COFFSection *Sec = SectionMap[&Section.getSection()]; local
[all...]
H A DELFObjectWriter.cpp721 auto &Sec = cast<MCSectionELF>(Sym.getSection()); local
722 unsigned Flags = Sec.getFlags();
/external/llvm/tools/llvm-cxxdump/
H A Dllvm-cxxdump.cpp72 const SectionRef &Sec) {
83 return SectionRelocMap[Sec];
87 const SectionRef &Sec, uint64_t SecAddress,
92 for (const SectionRef &SR : getRelocSections(Obj, Sec)) {
115 const ObjectFile *Obj, const SectionRef &Sec, uint64_t SecAddress,
120 for (const SectionRef &SR : getRelocSections(Obj, Sec)) {
200 const SectionRef &Sec = *SecI; local
202 if (Sec.isBSS() || Sec.isVirtual())
205 if (error(Sec
71 getRelocSections(const ObjectFile *Obj, const SectionRef &Sec) argument
86 collectRelocatedSymbols(const ObjectFile *Obj, const SectionRef &Sec, uint64_t SecAddress, uint64_t SymAddress, uint64_t SymSize, StringRef *I, StringRef *E) argument
114 collectRelocationOffsets( const ObjectFile *Obj, const SectionRef &Sec, uint64_t SecAddress, uint64_t SymAddress, uint64_t SymSize, StringRef SymName, std::map<std::pair<StringRef, uint64_t>, StringRef> &Collection) argument
[all...]
/external/llvm/tools/llvm-nm/
H A Dllvm-nm.cpp366 section_iterator Sec = MachO->section_end(); local
367 MachO->getSymbolSection(I->Symb, Sec);
368 DataRefImpl Ref = Sec->getRawDataRefImpl();
752 section_iterator Sec = Obj.section_end(); local
753 Obj.getSymbolSection(Symb, Sec);
754 DataRefImpl Ref = Sec->getRawDataRefImpl();
/external/llvm/include/llvm/MC/
H A DMCContext.h370 /// Gets or creates a section equivalent to Sec that is associated with the
373 /// as Sec and the function symbol as KeySym.
374 const MCSectionCOFF *getAssociativeCOFFSection(const MCSectionCOFF *Sec,
477 addGenDwarfSection(const MCSection *Sec) { argument
479 std::make_pair(Sec, std::make_pair(nullptr, nullptr)));
H A DMCDwarf.h161 void addLineEntry(const MCLineEntry &LineEntry, const MCSection *Sec) { argument
162 MCLineDivisions[Sec].push_back(LineEntry);
/external/llvm/lib/CodeGen/AsmPrinter/
H A DDwarfCompileUnit.cpp229 const MCSymbol *Sec) {
236 addSectionDelta(Die, Attribute, Label, Sec);
227 addSectionLabel(DIE &Die, dwarf::Attribute Attribute, const MCSymbol *Label, const MCSymbol *Sec) argument

Completed in 408 milliseconds

12