Home
last modified time | relevance | path

Searched refs:Sec (Results 1 – 25 of 224) sorted by relevance

123456789

/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-objcopy/
Dllvm-objcopy.cpp153 using SectionPred = std::function<bool(const SectionBase &Sec)>;
188 static bool IsDebugSection(const SectionBase &Sec) { in IsDebugSection() argument
189 return Sec.Name.startswith(".debug") || Sec.Name.startswith(".zdebug") || in IsDebugSection()
190 Sec.Name == ".gdb_index"; in IsDebugSection()
193 static bool IsDWOSection(const SectionBase &Sec) { in IsDWOSection() argument
194 return Sec.Name.endswith(".dwo"); in IsDWOSection()
197 static bool OnlyKeepDWOPred(const Object &Obj, const SectionBase &Sec) { in OnlyKeepDWOPred() argument
199 if (&Sec == Obj.SectionNames) in OnlyKeepDWOPred()
203 return !IsDWOSection(Sec); in OnlyKeepDWOPred()
234 [&](const SectionBase &Sec) { return OnlyKeepDWOPred(*DWOFile, Sec); }); in SplitDWOToFile() argument
[all …]
DObject.cpp81 void SectionBase::removeSectionReferences(const SectionBase *Sec) {} in removeSectionReferences() argument
87 template <class ELFT> void ELFWriter<ELFT>::writeShdr(const SectionBase &Sec) { in writeShdr() argument
89 B += Sec.HeaderOffset; in writeShdr()
91 Shdr.sh_name = Sec.NameIndex; in writeShdr()
92 Shdr.sh_type = Sec.Type; in writeShdr()
93 Shdr.sh_flags = Sec.Flags; in writeShdr()
94 Shdr.sh_addr = Sec.Addr; in writeShdr()
95 Shdr.sh_offset = Sec.Offset; in writeShdr()
96 Shdr.sh_size = Sec.Size; in writeShdr()
97 Shdr.sh_link = Sec.Link; in writeShdr()
[all …]
DObject.h71 virtual void visit(const Section &Sec) = 0;
72 virtual void visit(const OwnedDataSection &Sec) = 0;
73 virtual void visit(const StringTableSection &Sec) = 0;
74 virtual void visit(const SymbolTableSection &Sec) = 0;
75 virtual void visit(const RelocationSection &Sec) = 0;
76 virtual void visit(const DynamicRelocationSection &Sec) = 0;
77 virtual void visit(const GnuDebugLinkSection &Sec) = 0;
78 virtual void visit(const GroupSection &Sec) = 0;
79 virtual void visit(const SectionIndexSection &Sec) = 0;
89 void visit(const Section &Sec) override;
[all …]
/external/llvm/include/llvm/MC/
DMCFragment.h137 explicit MCDummyFragment(MCSection *Sec)
138 : MCFragment(FT_Dummy, false, 0, Sec){};
148 MCSection *Sec)
149 : MCFragment(FType, HasInstructions, 0, Sec) {}
175 MCSection *Sec)
176 : MCEncodedFragment(FType, HasInstructions, Sec) {}
196 MCSection *Sec)
198 Sec) {}
224 MCDataFragment(MCSection *Sec = nullptr)
225 : MCEncodedFragmentWithFixups<32, 4>(FT_Data, false, Sec) {}
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Object/
DELFObjectFile.h60 virtual uint32_t getSectionType(DataRefImpl Sec) const = 0;
61 virtual uint64_t getSectionFlags(DataRefImpl Sec) const = 0;
62 virtual uint64_t getSectionOffset(DataRefImpl Sec) const = 0;
247 void moveSectionNext(DataRefImpl &Sec) const override;
248 std::error_code getSectionName(DataRefImpl Sec,
250 uint64_t getSectionAddress(DataRefImpl Sec) const override;
251 uint64_t getSectionIndex(DataRefImpl Sec) const override;
252 uint64_t getSectionSize(DataRefImpl Sec) const override;
253 std::error_code getSectionContents(DataRefImpl Sec,
255 uint64_t getSectionAlignment(DataRefImpl Sec) const override;
[all …]
DWasm.h162 void moveSectionNext(DataRefImpl &Sec) const override;
163 std::error_code getSectionName(DataRefImpl Sec,
165 uint64_t getSectionAddress(DataRefImpl Sec) const override;
166 uint64_t getSectionIndex(DataRefImpl Sec) const override;
167 uint64_t getSectionSize(DataRefImpl Sec) const override;
168 std::error_code getSectionContents(DataRefImpl Sec,
170 uint64_t getSectionAlignment(DataRefImpl Sec) const override;
171 bool isSectionCompressed(DataRefImpl Sec) const override;
172 bool isSectionText(DataRefImpl Sec) const override;
173 bool isSectionData(DataRefImpl Sec) const override;
[all …]
DELF.h143 Expected<Elf_Sym_Range> symbols(const Elf_Shdr *Sec) const { in symbols() argument
144 if (!Sec) in symbols()
146 return getSectionContentsAsArray<Elf_Sym>(Sec); in symbols()
149 Expected<Elf_Rela_Range> relas(const Elf_Shdr *Sec) const { in relas() argument
150 return getSectionContentsAsArray<Elf_Rela>(Sec); in relas()
153 Expected<Elf_Rel_Range> rels(const Elf_Shdr *Sec) const { in rels() argument
154 return getSectionContentsAsArray<Elf_Rel>(Sec); in rels()
157 Expected<Elf_Relr_Range> relrs(const Elf_Shdr *Sec) const { in relrs() argument
158 return getSectionContentsAsArray<Elf_Relr>(Sec); in relrs()
163 Expected<std::vector<Elf_Rela>> android_relas(const Elf_Shdr *Sec) const;
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/MC/
DMCFragment.h120 explicit MCDummyFragment(MCSection *Sec) : MCFragment(FT_Dummy, false, Sec) {} in MCDummyFragment() argument
136 MCSection *Sec) in MCEncodedFragment() argument
137 : MCFragment(FType, HasInstructions, Sec) {} in MCEncodedFragment()
194 MCSection *Sec) in MCEncodedFragmentWithContents() argument
195 : MCEncodedFragment(FType, HasInstructions, Sec) {} in MCEncodedFragmentWithContents()
215 MCSection *Sec) in MCEncodedFragmentWithFixups() argument
217 Sec) {} in MCEncodedFragmentWithFixups()
244 MCDataFragment(MCSection *Sec = nullptr)
245 : MCEncodedFragmentWithFixups<32, 4>(FT_Data, false, Sec) {}
259 MCCompactEncodedInstFragment(MCSection *Sec = nullptr)
[all …]
/external/llvm/include/llvm/Object/
DELFObjectFile.h60 virtual uint32_t getSectionType(DataRefImpl Sec) const = 0;
61 virtual uint64_t getSectionFlags(DataRefImpl Sec) const = 0;
222 void moveSectionNext(DataRefImpl &Sec) const override;
223 std::error_code getSectionName(DataRefImpl Sec,
225 uint64_t getSectionAddress(DataRefImpl Sec) const override;
226 uint64_t getSectionSize(DataRefImpl Sec) const override;
227 std::error_code getSectionContents(DataRefImpl Sec,
229 uint64_t getSectionAlignment(DataRefImpl Sec) const override;
230 bool isSectionCompressed(DataRefImpl Sec) const override;
231 bool isSectionText(DataRefImpl Sec) const override;
[all …]
DELF.h118 const Elf_Sym *symbol_begin(const Elf_Shdr *Sec) const { in symbol_begin() argument
119 if (!Sec) in symbol_begin()
121 if (Sec->sh_entsize != sizeof(Elf_Sym)) in symbol_begin()
123 return reinterpret_cast<const Elf_Sym *>(base() + Sec->sh_offset); in symbol_begin()
125 const Elf_Sym *symbol_end(const Elf_Shdr *Sec) const { in symbol_end() argument
126 if (!Sec) in symbol_end()
128 uint64_t Size = Sec->sh_size; in symbol_end()
131 return symbol_begin(Sec) + Size / sizeof(Elf_Sym); in symbol_end()
133 Elf_Sym_Range symbols(const Elf_Shdr *Sec) const { in symbols() argument
134 return makeArrayRef(symbol_begin(Sec), symbol_end(Sec)); in symbols()
[all …]
/external/swiftshader/third_party/LLVM/include/llvm/Object/
DMachO.h52 virtual error_code getSectionNext(DataRefImpl Sec, SectionRef &Res) const;
53 virtual error_code getSectionName(DataRefImpl Sec, StringRef &Res) const;
54 virtual error_code getSectionAddress(DataRefImpl Sec, uint64_t &Res) const;
55 virtual error_code getSectionSize(DataRefImpl Sec, uint64_t &Res) const;
56 virtual error_code getSectionContents(DataRefImpl Sec, StringRef &Res) const;
57 virtual error_code getSectionAlignment(DataRefImpl Sec, uint64_t &Res) const;
58 virtual error_code isSectionText(DataRefImpl Sec, bool &Res) const;
59 virtual error_code isSectionData(DataRefImpl Sec, bool &Res) const;
60 virtual error_code isSectionBSS(DataRefImpl Sec, bool &Res) const;
63 virtual relocation_iterator getSectionRelBegin(DataRefImpl Sec) const;
[all …]
DCOFF.h91 const coff_section *toSec(DataRefImpl Sec) const;
105 virtual error_code getSectionNext(DataRefImpl Sec, SectionRef &Res) const;
106 virtual error_code getSectionName(DataRefImpl Sec, StringRef &Res) const;
107 virtual error_code getSectionAddress(DataRefImpl Sec, uint64_t &Res) const;
108 virtual error_code getSectionSize(DataRefImpl Sec, uint64_t &Res) const;
109 virtual error_code getSectionContents(DataRefImpl Sec, StringRef &Res) const;
110 virtual error_code getSectionAlignment(DataRefImpl Sec, uint64_t &Res) const;
111 virtual error_code isSectionText(DataRefImpl Sec, bool &Res) const;
112 virtual error_code isSectionData(DataRefImpl Sec, bool &Res) const;
113 virtual error_code isSectionBSS(DataRefImpl Sec, bool &Res) const;
[all …]
/external/llvm/tools/llvm-readobj/
DELFDumper.cpp348 bool checkTLSSections(const Elf_Phdr &Phdr, const Elf_Shdr &Sec);
349 bool checkoffsets(const Elf_Phdr &Phdr, const Elf_Shdr &Sec);
350 bool checkVMA(const Elf_Phdr &Phdr, const Elf_Shdr &Sec);
351 bool checkPTDynamic(const Elf_Phdr &Phdr, const Elf_Shdr &Sec);
363 void printRelocations(const Elf_Shdr *Sec, const ELFO *Obj);
497 const typename ELFO::Elf_Shdr *Sec, in printVersionSymbolSection() argument
500 if (!Sec) in printVersionSymbolSection()
502 StringRef Name = unwrapOrError(Obj->getSectionName(Sec)); in printVersionSymbolSection()
503 W.printNumber("Section Name", Name, Sec->sh_name); in printVersionSymbolSection()
504 W.printHex("Address", Sec->sh_addr); in printVersionSymbolSection()
[all …]
/external/swiftshader/third_party/LLVM/lib/Object/
DCOFFObjectFile.cpp72 const coff_section *COFFObjectFile::toSec(DataRefImpl Sec) const { in toSec()
73 const coff_section *addr = reinterpret_cast<const coff_section*>(Sec.p); in toSec()
278 error_code COFFObjectFile::getSectionNext(DataRefImpl Sec, in getSectionNext() argument
280 const coff_section *sec = toSec(Sec); in getSectionNext()
282 Sec.p = reinterpret_cast<uintptr_t>(sec); in getSectionNext()
283 Result = SectionRef(Sec, this); in getSectionNext()
287 error_code COFFObjectFile::getSectionName(DataRefImpl Sec, in getSectionName() argument
289 const coff_section *sec = toSec(Sec); in getSectionName()
310 error_code COFFObjectFile::getSectionAddress(DataRefImpl Sec, in getSectionAddress() argument
312 const coff_section *sec = toSec(Sec); in getSectionAddress()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/tools/yaml2obj/
Dyaml2macho.cpp99 SectionType constructSection(MachOYAML::Section Sec) { in constructSection() argument
101 memcpy(reinterpret_cast<void *>(&TempSec.sectname[0]), &Sec.sectname[0], 16); in constructSection()
102 memcpy(reinterpret_cast<void *>(&TempSec.segname[0]), &Sec.segname[0], 16); in constructSection()
103 TempSec.addr = Sec.addr; in constructSection()
104 TempSec.size = Sec.size; in constructSection()
105 TempSec.offset = Sec.offset; in constructSection()
106 TempSec.align = Sec.align; in constructSection()
107 TempSec.reloff = Sec.reloff; in constructSection()
108 TempSec.nreloc = Sec.nreloc; in constructSection()
109 TempSec.flags = Sec.flags; in constructSection()
[all …]
Dyaml2wasm.cpp30 int writeRelocSection(raw_ostream &OS, WasmYAML::Section &Sec,
428 int WasmWriter::writeRelocSection(raw_ostream &OS, WasmYAML::Section &Sec, in writeRelocSection() argument
430 switch (Sec.Type) { in writeRelocSection()
438 auto CustomSection = dyn_cast<WasmYAML::CustomSection>(&Sec); in writeRelocSection()
453 encodeULEB128(Sec.Relocations.size(), OS); in writeRelocSection()
455 for (auto Reloc: Sec.Relocations) { in writeRelocSection()
479 for (const std::unique_ptr<WasmYAML::Section> &Sec : Obj.Sections) { in writeWasm() local
480 uint32_t Type = Sec->Type; in writeWasm()
489 encodeULEB128(Sec->Type, OS); in writeWasm()
492 if (auto S = dyn_cast<WasmYAML::CustomSection>(Sec.get())) { in writeWasm()
[all …]
/external/syzkaller/vendor/golang.org/x/sys/unix/
Dtimestruct.go13 func TimespecToNsec(ts Timespec) int64 { return int64(ts.Sec)*1e9 + int64(ts.Nsec) }
39 if int64(ts.Sec) != sec {
47 func TimevalToNsec(tv Timeval) int64 { return int64(tv.Sec)*1e9 + int64(tv.Usec)*1e3 }
65 return int64(ts.Sec), int64(ts.Nsec)
71 return int64(tv.Sec), int64(tv.Usec) * 1000
76 return int64(ts.Sec)*1e9 + int64(ts.Nsec)
81 return int64(tv.Sec)*1e9 + int64(tv.Usec)*1000
/external/swiftshader/third_party/llvm-7.0/llvm/lib/MC/
DWinCOFFObjectWriter.cpp168 void defineSection(MCSectionCOFF const &Sec);
189 const COFFSection &Sec, const MCSection &MCSec);
251 static uint32_t getAlignment(const MCSectionCOFF &Sec) { in getAlignment() argument
252 switch (Sec.getAlignment()) { in getAlignment()
353 COFFSection *Sec = nullptr; in DefineSymbol() local
355 Sec = SectionMap[Base->getFragment()->getParent()]; in DefineSymbol()
356 if (Sym->Section && Sym->Section != Sec) in DefineSymbol()
368 if (!Sec) in DefineSymbol()
371 WeakDefault->Section = Sec; in DefineSymbol()
388 Sym->Section = Sec; in DefineSymbol()
[all …]
DMCFragment.cpp35 for (MCSection &Sec : Asm) in MCAsmLayout()
36 if (!Sec.isVirtualSection()) in MCAsmLayout()
37 SectionOrder.push_back(&Sec); in MCAsmLayout()
38 for (MCSection &Sec : Asm) in MCAsmLayout()
39 if (Sec.isVirtualSection()) in MCAsmLayout()
40 SectionOrder.push_back(&Sec); in MCAsmLayout()
44 const MCSection *Sec = F->getParent(); in isFragmentValid() local
45 const MCFragment *LastValid = LastValidFragment.lookup(Sec); in isFragmentValid()
48 assert(LastValid->getParent() == Sec); in isFragmentValid()
63 MCSection *Sec = F->getParent(); in ensureValid() local
[all …]
/external/llvm/lib/Target/Mips/MCTargetDesc/
DMipsOptionRecord.cpp31 MCSectionELF *Sec = in EmitMipsOptionRecord() local
34 MCA.registerSection(*Sec); in EmitMipsOptionRecord()
35 Sec->setAlignment(8); in EmitMipsOptionRecord()
36 Streamer->SwitchSection(Sec); in EmitMipsOptionRecord()
50 MCSectionELF *Sec = Context.getELFSection(".reginfo", ELF::SHT_MIPS_REGINFO, in EmitMipsOptionRecord() local
52 MCA.registerSection(*Sec); in EmitMipsOptionRecord()
53 Sec->setAlignment(MTS->getABI().IsN32() ? 8 : 4); in EmitMipsOptionRecord()
54 Streamer->SwitchSection(Sec); in EmitMipsOptionRecord()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Mips/MCTargetDesc/
DMipsOptionRecord.cpp37 MCSectionELF *Sec = in EmitMipsOptionRecord() local
40 MCA.registerSection(*Sec); in EmitMipsOptionRecord()
41 Sec->setAlignment(8); in EmitMipsOptionRecord()
42 Streamer->SwitchSection(Sec); in EmitMipsOptionRecord()
56 MCSectionELF *Sec = Context.getELFSection(".reginfo", ELF::SHT_MIPS_REGINFO, in EmitMipsOptionRecord() local
58 MCA.registerSection(*Sec); in EmitMipsOptionRecord()
59 Sec->setAlignment(MTS->getABI().IsN32() ? 8 : 4); in EmitMipsOptionRecord()
60 Streamer->SwitchSection(Sec); in EmitMipsOptionRecord()
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-readobj/
DELFDumper.cpp410 bool checkTLSSections(const Elf_Phdr &Phdr, const Elf_Shdr &Sec);
411 bool checkoffsets(const Elf_Phdr &Phdr, const Elf_Shdr &Sec);
412 bool checkVMA(const Elf_Phdr &Phdr, const Elf_Shdr &Sec);
413 bool checkPTDynamic(const Elf_Phdr &Phdr, const Elf_Shdr &Sec);
426 void printRelocations(const Elf_Shdr *Sec, const ELFO *Obj);
567 const typename ELFO::Elf_Shdr *Sec, in printVersionSymbolSection() argument
570 if (!Sec) in printVersionSymbolSection()
572 StringRef Name = unwrapOrError(Obj->getSectionName(Sec)); in printVersionSymbolSection()
573 W.printNumber("Section Name", Name, Sec->sh_name); in printVersionSymbolSection()
574 W.printHex("Address", Sec->sh_addr); in printVersionSymbolSection()
[all …]
/external/llvm/lib/MC/
DWinCOFFObjectWriter.cpp156 void defineSection(MCSectionCOFF const &Sec);
266 void WinCOFFObjectWriter::defineSection(MCSectionCOFF const &Sec) { in defineSection() argument
267 COFFSection *coff_section = createSection(Sec.getSectionName()); in defineSection()
268 COFFSymbol *coff_symbol = createSymbol(Sec.getSectionName()); in defineSection()
269 if (Sec.getSelection() != COFF::IMAGE_COMDAT_SELECT_ASSOCIATIVE) { in defineSection()
270 if (const MCSymbol *S = Sec.getCOMDATSymbol()) { in defineSection()
286 coff_symbol->Aux[0].Aux.SectionDefinition.Selection = Sec.getSelection(); in defineSection()
288 coff_section->Header.Characteristics = Sec.getCharacteristics(); in defineSection()
291 switch (Sec.getAlignment()) { in defineSection()
339 coff_section->MCSection = &Sec; in defineSection()
[all …]
DMCFragment.cpp34 for (MCSection &Sec : Asm) in MCAsmLayout()
35 if (!Sec.isVirtualSection()) in MCAsmLayout()
36 SectionOrder.push_back(&Sec); in MCAsmLayout()
37 for (MCSection &Sec : Asm) in MCAsmLayout()
38 if (Sec.isVirtualSection()) in MCAsmLayout()
39 SectionOrder.push_back(&Sec); in MCAsmLayout()
43 const MCSection *Sec = F->getParent(); in isFragmentValid() local
44 const MCFragment *LastValid = LastValidFragment.lookup(Sec); in isFragmentValid()
47 assert(LastValid->getParent() == Sec); in isFragmentValid()
62 MCSection *Sec = F->getParent(); in ensureValid() local
[all …]
/external/llvm/lib/Object/
DCOFFObjectFile.cpp242 const coff_section *Sec = nullptr; in getSymbolSection() local
243 if (std::error_code EC = getSection(Symb.getSectionNumber(), Sec)) in getSymbolSection()
246 Ret.p = reinterpret_cast<uintptr_t>(Sec); in getSymbolSection()
256 const coff_section *Sec = toSec(Ref); in moveSectionNext() local
257 Sec += 1; in moveSectionNext()
258 Ref.p = reinterpret_cast<uintptr_t>(Sec); in moveSectionNext()
263 const coff_section *Sec = toSec(Ref); in getSectionName() local
264 return getSectionName(Sec, Result); in getSectionName()
268 const coff_section *Sec = toSec(Ref); in getSectionAddress() local
269 uint64_t Result = Sec->VirtualAddress; in getSectionAddress()
[all …]

123456789