HomeSort by relevance Sort by last modified time
    Searched refs:Sec (Results 1 - 25 of 75) sorted by null

1 2 3

  /external/llvm/lib/Target/Mips/MCTargetDesc/
MipsOptionRecord.cpp 31 MCSectionELF *Sec =
34 MCA.registerSection(*Sec);
35 Sec->setAlignment(8);
36 Streamer->SwitchSection(Sec);
50 MCSectionELF *Sec = Context.getELFSection(".reginfo", ELF::SHT_MIPS_REGINFO,
52 MCA.registerSection(*Sec);
53 Sec->setAlignment(MTS->getABI().IsN32() ? 8 : 4);
54 Streamer->SwitchSection(Sec);
  /external/llvm/include/llvm/Object/
ELFObjectFile.h 54 virtual uint32_t getSectionType(DataRefImpl Sec) const = 0;
55 virtual uint64_t getSectionFlags(DataRefImpl Sec) const = 0;
213 void moveSectionNext(DataRefImpl &Sec) const override;
214 std::error_code getSectionName(DataRefImpl Sec,
216 uint64_t getSectionAddress(DataRefImpl Sec) const override;
217 uint64_t getSectionSize(DataRefImpl Sec) const override;
218 std::error_code getSectionContents(DataRefImpl Sec,
220 uint64_t getSectionAlignment(DataRefImpl Sec) const override;
221 bool isSectionText(DataRefImpl Sec) const override;
222 bool isSectionData(DataRefImpl Sec) const override
667 const Elf_Shdr *sec = getRelSection(Rel); local
688 const Elf_Shdr *sec = getRelSection(Rel); local
697 const Elf_Shdr *sec = getRelSection(Rel); local
    [all...]
ELF.h 125 const Elf_Sym *symbol_begin(const Elf_Shdr *Sec) const {
126 if (!Sec)
128 if (Sec->sh_entsize != sizeof(Elf_Sym))
130 return reinterpret_cast<const Elf_Sym *>(base() + Sec->sh_offset);
132 const Elf_Sym *symbol_end(const Elf_Shdr *Sec) const {
133 if (!Sec)
135 uint64_t Size = Sec->sh_size;
138 return symbol_begin(Sec) + Size / sizeof(Elf_Sym);
140 Elf_Sym_Range symbols(const Elf_Shdr *Sec) const {
141 return make_range(symbol_begin(Sec), symbol_end(Sec))
    [all...]
ObjectFile.h 209 virtual void moveSectionNext(DataRefImpl &Sec) const = 0;
210 virtual std::error_code getSectionName(DataRefImpl Sec,
212 virtual uint64_t getSectionAddress(DataRefImpl Sec) const = 0;
213 virtual uint64_t getSectionSize(DataRefImpl Sec) const = 0;
214 virtual std::error_code getSectionContents(DataRefImpl Sec,
216 virtual uint64_t getSectionAlignment(DataRefImpl Sec) const = 0;
217 virtual bool isSectionText(DataRefImpl Sec) const = 0;
218 virtual bool isSectionData(DataRefImpl Sec) const = 0;
219 virtual bool isSectionBSS(DataRefImpl Sec) const = 0;
221 virtual bool isSectionVirtual(DataRefImpl Sec) const = 0
    [all...]
MachO.h 206 unsigned getSectionType(SectionRef Sec) const;
215 unsigned getSectionID(SectionRef Sec) const;
217 void moveSectionNext(DataRefImpl &Sec) const override;
218 std::error_code getSectionName(DataRefImpl Sec,
220 uint64_t getSectionAddress(DataRefImpl Sec) const override;
221 uint64_t getSectionSize(DataRefImpl Sec) const override;
222 std::error_code getSectionContents(DataRefImpl Sec,
224 uint64_t getSectionAlignment(DataRefImpl Sec) const override;
225 bool isSectionText(DataRefImpl Sec) const override;
226 bool isSectionData(DataRefImpl Sec) const override
    [all...]
COFF.h 577 const coff_section *toSec(DataRefImpl Sec) const;
657 void moveSectionNext(DataRefImpl &Sec) const override;
658 std::error_code getSectionName(DataRefImpl Sec,
660 uint64_t getSectionAddress(DataRefImpl Sec) const override;
661 uint64_t getSectionSize(DataRefImpl Sec) const override;
662 std::error_code getSectionContents(DataRefImpl Sec,
664 uint64_t getSectionAlignment(DataRefImpl Sec) const override;
665 bool isSectionText(DataRefImpl Sec) const override;
666 bool isSectionData(DataRefImpl Sec) const override;
667 bool isSectionBSS(DataRefImpl Sec) const override
    [all...]
  /external/llvm/lib/Object/
SymbolSize.cpp 34 static unsigned getSectionID(const ObjectFile &O, SectionRef Sec) {
36 return M->getSectionID(Sec);
37 return cast<COFFObjectFile>(O).getSectionID(Sec);
69 for (SectionRef Sec : O.sections()) {
70 uint64_t Address = Sec.getAddress();
71 uint64_t Size = Sec.getSize();
73 {O.symbol_end(), Address + Size, 0, getSectionID(O, Sec)});
COFFObjectFile.cpp 243 const coff_section *Sec = nullptr;
244 if (std::error_code EC = getSection(Symb.getSectionNumber(), Sec))
247 Ret.p = reinterpret_cast<uintptr_t>(Sec);
257 const coff_section *Sec = toSec(Ref);
258 Sec += 1;
259 Ref.p = reinterpret_cast<uintptr_t>(Sec);
264 const coff_section *Sec = toSec(Ref);
265 return getSectionName(Sec, Result);
269 const coff_section *Sec = toSec(Ref);
270 uint64_t Result = Sec->VirtualAddress
    [all...]
MachOObjectFile.cpp 70 unsigned Sec) {
79 uintptr_t SectionAddr = CommandAddr + SegmentLoadSize + Sec * SectionSize;
155 DataRefImpl Sec) {
157 MachO::section_64 Sect = O->getSection64(Sec);
160 MachO::section Sect = O->getSection(Sec);
220 const char *Sec = getSectionPtr(Obj, Load, J);
221 Sections.push_back(Sec);
340 unsigned MachOObjectFile::getSectionType(SectionRef Sec) const {
341 DataRefImpl DRI = Sec.getRawDataRefImpl();
404 section_iterator Sec = *getSymbolSection(Symb)
    [all...]
FunctionIndexObjectFile.cpp 37 for (const SectionRef &Sec : Obj.sections()) {
39 if (std::error_code EC = Sec.getName(SecName))
43 if (std::error_code EC = Sec.getContents(SecContents))
  /external/llvm/include/llvm/MC/
MCAsmLayout.h 85 uint64_t getSectionAddressSize(const MCSection *Sec) const;
89 uint64_t getSectionFileSize(const MCSection *Sec) const;
MCAssembler.h 148 explicit MCDummyFragment(MCSection *Sec)
149 : MCFragment(FT_Dummy, false, 0, Sec){};
159 MCSection *Sec)
160 : MCFragment(FType, HasInstructions, 0, Sec) {}
186 MCSection *Sec)
187 : MCEncodedFragment(FType, HasInstructions, Sec) {}
207 MCSection *Sec)
209 Sec) {}
234 MCDataFragment(MCSection *Sec = nullptr)
235 : MCEncodedFragmentWithFixups<32, 4>(FT_Data, false, Sec) {}
    [all...]
MCMachObjectWriter.h 137 uint64_t getSectionAddress(const MCSection *Sec) const {
138 return SectionAddress.lookup(Sec);
175 void writeSection(const MCAsmLayout &Layout, const MCSection &Sec,
215 void addRelocation(const MCSymbol *RelSymbol, const MCSection *Sec,
218 Relocations[Sec].push_back(P);
  /external/llvm/lib/MC/
MachObjectWriter.cpp 106 uint64_t MachObjectWriter::getPaddingSize(const MCSection *Sec,
108 uint64_t EndAddr = getSectionAddress(Sec) + Layout.getSectionAddressSize(Sec);
109 unsigned Next = Sec->getLayoutOrder() + 1;
197 const MCSection &Sec, uint64_t VMAddr,
201 uint64_t SectionSize = Layout.getSectionAddressSize(&Sec);
202 const MCSectionMachO &Section = cast<MCSectionMachO>(Sec);
206 assert(Layout.getSectionFileSize(&Sec) == 0 && "Invalid file size!");
232 write32(IndirectSymBase.lookup(&Sec)); // reserved1
608 for (const MCSection *Sec : Layout.getSectionOrder())
    [all...]
MCAssembler.cpp 71 for (MCSection &Sec : Asm)
72 if (!Sec.isVirtualSection())
73 SectionOrder.push_back(&Sec);
74 for (MCSection &Sec : Asm)
75 if (Sec.isVirtualSection())
76 SectionOrder.push_back(&Sec);
80 const MCSection *Sec = F->getParent();
81 const MCFragment *LastValid = LastValidFragment.lookup(Sec);
84 assert(LastValid->getParent() == Sec);
99 MCSection *Sec = F->getParent()
    [all...]
WinCOFFObjectWriter.cpp 157 void defineSection(MCSectionCOFF const &Sec);
267 void WinCOFFObjectWriter::defineSection(MCSectionCOFF const &Sec) {
268 COFFSection *coff_section = createSection(Sec.getSectionName());
269 COFFSymbol *coff_symbol = createSymbol(Sec.getSectionName());
270 if (Sec.getSelection() != COFF::IMAGE_COMDAT_SELECT_ASSOCIATIVE) {
271 if (const MCSymbol *S = Sec.getCOMDATSymbol()) {
287 coff_symbol->Aux[0].Aux.SectionDefinition.Selection = Sec.getSelection();
289 coff_section->Header.Characteristics = Sec.getCharacteristics();
292 switch (Sec.getAlignment()) {
340 coff_section->MCSection = &Sec;
    [all...]
ELFObjectWriter.cpp 125 unsigned addToSectionTable(const MCSectionELF *Sec);
201 const MCSectionELF &Sec);
212 void writeSectionData(const MCAssembler &Asm, MCSection &Sec,
220 void writeRelocations(const MCAssembler &Asm, const MCSectionELF &Sec);
242 unsigned ELFObjectWriter::addToSectionTable(const MCSectionELF *Sec) {
243 SectionTable.push_back(Sec);
244 StrTabBuilder.add(Sec->getSectionName());
339 WriteWord(0); // e_shoff = sec hdr table off in bytes
562 auto &Sec = cast<MCSectionELF>(Sym->getSection());
563 unsigned Flags = Sec.getFlags()
    [all...]
MCELFStreamer.cpp 501 MCSection &Sec = *getCurrentSectionOnly();
511 else if (isBundleLocked() && !Sec.isBundleGroupBeforeFirstInst())
527 if (Sec.getBundleLockState() == MCSection::BundleLockedAlignToEnd) {
537 Sec.setBundleGroupBeforeFirstInst(false);
569 MCSection &Sec = *getCurrentSectionOnly();
577 Sec.setBundleGroupBeforeFirstInst(true);
585 Sec.setBundleLockState(AlignToEnd ? MCSection::BundleLockedAlignToEnd
590 MCSection &Sec = *getCurrentSectionOnly();
597 else if (Sec.isBundleGroupBeforeFirstInst())
608 Sec.setBundleLockState(MCSection::NotBundleLocked)
    [all...]
MCObjectStreamer.cpp 224 bool MCObjectStreamer::mayHaveInstructions(MCSection &Sec) const {
225 return Sec.hasInstructions();
232 MCSection *Sec = getCurrentSectionOnly();
233 Sec->setHasInstructions(true);
252 (Assembler.isBundlingEnabled() && Sec->isBundleLocked())) {
440 const MCSection *Sec = getCurrentSection().first;
441 assert(Sec && "need a section");
442 unsigned ItemSize = Sec->isVirtualSection() ? 0 : 1;
  /external/llvm/tools/llvm-readobj/
ELFDumper.cpp 107 void printRelocations(const Elf_Shdr *Sec);
129 void LoadVersionDefs(const Elf_Shdr *sec) const;
231 void ELFDumper<ELFT>::LoadVersionNeeds(const Elf_Shdr *sec) const {
232 unsigned vn_size = sec->sh_size; // Size of section in bytes
233 unsigned vn_count = sec->sh_info; // Number of Verneed entries
234 const char *sec_start = (const char *)Obj->base() + sec->sh_offset;
265 void ELFDumper<ELFT>::LoadVersionDefs(const Elf_Shdr *sec) const {
266 unsigned vd_size = sec->sh_size; // Size of section in bytes
267 unsigned vd_count = sec->sh_info; // Number of Verdef entries
268 const char *sec_start = (const char *)Obj->base() + sec->sh_offset
    [all...]
  /external/llvm/tools/dsymutil/
MachOUtils.cpp 276 MCSection *Sec = Layout.getSectionOrder()[i];
277 if (Sec->begin() == Sec->end() || !Layout.getSectionFileSize(Sec))
280 unsigned Align = Sec->getAlignment();
285 Writer.writeSection(Layout, *Sec, VMAddr, FileOffset, 0, 0, 0);
287 FileOffset += Layout.getSectionAddressSize(Sec);
288 VMAddr += Layout.getSectionAddressSize(Sec);
392 MCSection *Sec = Layout.getSectionOrder()[i];
393 if (Sec->begin() == Sec->end()
    [all...]
  /external/llvm/tools/llvm-size/
llvm-size.cpp 141 MachO::section_64 Sec = MachO->getSection64(Load, J);
143 outs() << "\tSection (" << format("%.16s", &Sec.segname) << ", "
144 << format("%.16s", &Sec.sectname) << "): ";
146 outs() << "\tSection " << format("%.16s", &Sec.sectname) << ": ";
147 outs() << format(fmt.str().c_str(), Sec.size);
149 outs() << " (addr 0x" << format("%" PRIx64, Sec.addr) << " offset "
150 << Sec.offset << ")";
152 sec_total += Sec.size;
167 MachO::section Sec = MachO->getSection(Load, J);
169 outs() << "\tSection (" << format("%.16s", &Sec.segname) << ",
    [all...]
  /external/llvm/tools/llvm-cxxdump/
llvm-cxxdump.cpp 70 const SectionRef &Sec, uint64_t SecAddress,
75 for (const SectionRef &SR : SectionRelocMap[Sec]) {
94 const ObjectFile *Obj, const SectionRef &Sec, uint64_t SecAddress,
99 for (const SectionRef &SR : SectionRelocMap[Sec]) {
187 const SectionRef &Sec = *SecI;
189 if (Sec.isBSS() || Sec.isVirtual())
192 error(Sec.getContents(SecContents));
196 uint64_t SecAddress = Sec.getAddress();
197 uint64_t SecSize = Sec.getSize()
    [all...]
  /external/llvm/include/llvm/DebugInfo/
DIContext.h 172 /// the same Sec should give the same address.
173 virtual uint64_t getSectionLoadAddress(const object::SectionRef &Sec) const = 0;
185 virtual bool getLoadedSectionContents(const object::SectionRef &Sec,
  /external/llvm/tools/yaml2obj/
yaml2elf.cpp 194 for (const auto &Sec : Doc.Sections)
195 DotShStrtab.add(Sec->Name);
198 for (const auto &Sec : Doc.Sections) {
200 SHeader.sh_name = DotShStrtab.getOffset(Sec->Name);
201 SHeader.sh_type = Sec->Type;
202 SHeader.sh_flags = Sec->Flags;
203 SHeader.sh_addr = Sec->Address;
204 SHeader.sh_addralign = Sec->AddressAlign;
206 if (!Sec->Link.empty()) {
208 if (SN2I.lookup(Sec->Link, Index))
    [all...]

Completed in 1045 milliseconds

1 2 3