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

/external/llvm/lib/ExecutionEngine/RuntimeDyld/
H A DObjectImageCommon.h65 virtual void updateSectionAddress(const object::SectionRef &Sec, argument
H A DRuntimeDyldMachO.cpp325 SectionRef Sec = MachO->getRelocationSection(RE); local
326 Value.SectionID = findOrEmitSection(Obj, Sec, true, ObjSectionToID);
328 Sec.getAddress(Addr);
H A DRuntimeDyldELF.cpp61 void updateSectionAddress(const SectionRef &Sec, uint64_t Addr);
96 virtual void updateSectionAddress(const SectionRef &Sec, uint64_t Addr) argument
98 DyldObj->updateSectionAddress(Sec, Addr);
127 void DyldELFObject<ELFT>::updateSectionAddress(const SectionRef &Sec, argument
129 DataRefImpl ShdrRef = Sec.getRawDataRefImpl();
/external/llvm/tools/obj2yaml/
H A Dcoff2yaml.cpp59 COFFYAML::Section Sec; local
60 Sec.Name = Sect->Name; // FIXME: check the null termination!
62 Sec.Header.Characteristics = Characteristics;
63 Sec.Alignment = 1 << (((Characteristics >> 20) & 0xf) - 1);
67 Sec.SectionData = object::yaml::BinaryRef(sectionData);
81 Sec.Relocations = Relocations;
82 Sections.push_back(Sec);
/external/llvm/lib/Object/
H A DCOFFYAML.cpp264 void MappingTraits<COFFYAML::Section>::mapping(IO &IO, COFFYAML::Section &Sec) { argument
266 IO, Sec.Header.Characteristics);
267 IO.mapRequired("Name", Sec.Name);
269 IO.mapOptional("Alignment", Sec.Alignment);
270 IO.mapRequired("SectionData", Sec.SectionData);
271 IO.mapOptional("Relocations", Sec.Relocations);
H A DCOFFObjectFile.cpp76 const coff_section *COFFObjectFile::toSec(DataRefImpl Sec) const {
77 const coff_section *addr = reinterpret_cast<const coff_section*>(Sec.p);
287 DataRefImpl Sec;
288 Sec.p = reinterpret_cast<uintptr_t>(sec);
289 Result = section_iterator(SectionRef(Sec, this));
299 error_code COFFObjectFile::getSectionNext(DataRefImpl Sec, argument
301 const coff_section *sec = toSec(Sec);
303 Sec.p = reinterpret_cast<uintptr_t>(sec);
304 Result = SectionRef(Sec, this);
308 error_code COFFObjectFile::getSectionName(DataRefImpl Sec, argument
314 getSectionAddress(DataRefImpl Sec, uint64_t &Result) const argument
321 getSectionSize(DataRefImpl Sec, uint64_t &Result) const argument
328 getSectionContents(DataRefImpl Sec, StringRef &Result) const argument
337 getSectionAlignment(DataRefImpl Sec, uint64_t &Res) const argument
346 isSectionText(DataRefImpl Sec, bool &Result) const argument
353 isSectionData(DataRefImpl Sec, bool &Result) const argument
360 isSectionBSS(DataRefImpl Sec, bool &Result) const argument
367 isSectionRequiredForExecution(DataRefImpl Sec, bool &Result) const argument
374 isSectionVirtual(DataRefImpl Sec, bool &Result) const argument
381 isSectionZeroInit(DataRefImpl Sec, bool &Result) const argument
388 isSectionReadOnlyData(DataRefImpl Sec, bool &Result) const argument
395 sectionContainsSymbol(DataRefImpl Sec, DataRefImpl Symb, bool &Result) const argument
700 getSectionName(const coff_section *Sec, StringRef &Res) const argument
723 getSectionContents(const coff_section *Sec, ArrayRef<uint8_t> &Res) const argument
[all...]
H A DMachOObjectFile.cpp238 unsigned Sec) {
247 uintptr_t SectionAddr = CommandAddr + SegmentLoadSize + Sec * SectionSize;
404 DataRefImpl Sec) {
406 macho::Section64 Sect = O->getSection64(Sec);
409 macho::Section Sect = O->getSection(Sec);
436 const char *Sec = getSectionPtr(this, Load, J); local
437 Sections.push_back(Sec);
489 macho::Section64 Sec = getSection64(SecRel); local
490 Delta = Sec.Offset - Sec
237 getSectionPtr(const MachOObjectFile *O, MachOObjectFile::LoadCommandInfo L, unsigned Sec) argument
403 getSectionFlags(const MachOObjectFile *O, DataRefImpl Sec) argument
492 macho::Section Sec = getSection(SecRel); local
551 DataRefImpl Sec; local
668 getSectionNext(DataRefImpl Sec, SectionRef &Res) const argument
676 getSectionName(DataRefImpl Sec, StringRef &Result) const argument
683 getSectionAddress(DataRefImpl Sec, uint64_t &Res) const argument
695 getSectionSize(DataRefImpl Sec, uint64_t &Res) const argument
708 getSectionContents(DataRefImpl Sec, StringRef &Res) const argument
727 getSectionAlignment(DataRefImpl Sec, uint64_t &Res) const argument
742 isSectionText(DataRefImpl Sec, bool &Res) const argument
761 isSectionRequiredForExecution(DataRefImpl Sec, bool &Result) const argument
768 isSectionVirtual(DataRefImpl Sec, bool &Result) const argument
776 isSectionZeroInit(DataRefImpl Sec, bool &Res) const argument
784 isSectionReadOnlyData(DataRefImpl Sec, bool &Result) const argument
796 sectionContainsSymbol(DataRefImpl Sec, DataRefImpl Symb, bool &Result) const argument
1477 const char *Sec = getSectionPtr(this, L, Index); local
1483 const char *Sec = getSectionPtr(this, L, Index); local
[all...]
/external/llvm/tools/yaml2obj/
H A Dyaml2coff.cpp41 COFFYAML::Section &Sec = *i; local
45 StringRef Name = Sec.Name;
48 std::copy(Name.begin(), Name.end(), Sec.Header.Name);
57 Sec.Header.Name[0] = '/';
58 std::copy(str.begin(), str.end(), Sec.Header.Name + 1);
61 Sec.Header.Characteristics |= (Log2_32(Sec.Alignment) + 1) << 20;
H A Dyaml2elf.cpp314 const ELFYAML::Section &Sec = Sections[i]; local
317 SHeader.sh_name = SHStrTab.addString(Sec.Name);
318 SHeader.sh_type = Sec.Type;
319 SHeader.sh_flags = Sec.Flags;
320 SHeader.sh_addr = Sec.Address;
322 Sec.Content.writeAsBinary(CBA.getOSAndAlignedOffset(SHeader.sh_offset));
323 SHeader.sh_size = Sec.Content.binary_size();
325 if (!Sec.Link.empty()) {
327 if (SN2I.lookupSection(Sec.Link, Index)) {
328 errs() << "error: Unknown section referenced: '" << Sec
[all...]
/external/llvm/lib/MC/
H A DMCObjectSymbolizer.cpp201 void MCObjectSymbolizer::insertSection(SectionRef Sec) { argument
202 uint64_t SAddr; Sec.getAddress(SAddr);
203 uint64_t SSize; Sec.getSize(SSize);
213 SortedSections.insert(It, Sec);
H A DWinCOFFObjectWriter.cpp368 MCSectionCOFF const &Sec = local
371 COFFSection *coff_section = createSection(Sec.getSectionName());
372 COFFSymbol *coff_symbol = createSymbol(Sec.getSectionName());
382 coff_symbol->Aux[0].Aux.SectionDefinition.Selection = Sec.getSelection();
384 coff_section->Header.Characteristics = Sec.getCharacteristics();
800 COFFSection *Sec = SectionMap[&i->getSection()]; local
802 if (Sec->Number == -1)
805 Sec->Header.SizeOfRawData = Layout.getSectionAddressSize(i);
807 if (IsPhysicalSection(Sec)) {
808 Sec
[all...]
H A DMCDwarf.cpp330 const MCSection *Sec = *it; local
331 const MCLineSection *Line = MCLineSections.lookup(Sec);
332 EmitDwarfLineTable(MCOS, Sec, Line, CUID);
/external/llvm/tools/llvm-readobj/
H A DMachODumper.cpp166 DataRefImpl Sec,
169 macho::Section Sect = Obj->getSection(Sec);
181 macho::Section64 Sect = Obj->getSection64(Sec);
165 getSection(const MachOObjectFile *Obj, DataRefImpl Sec, MachOSection &Section) argument
H A DELFDumper.cpp565 void ELFDumper<ELFT>::printRelocation(section_iterator Sec, argument
/external/llvm/lib/CodeGen/
H A DTargetLoweringObjectFileImpl.cpp74 const MCSection *Sec = getContext().getELFSection(NameData, local
80 Streamer.SwitchSection(Sec);
804 const MCSection *Sec = getDrectveSection(); local
805 Streamer.SwitchSection(Sec);
/external/llvm/include/llvm/MC/
H A DMCContext.h319 void addMCLineSection(const MCSection *Sec, MCLineSection *Line) { argument
320 MCLineSections[Sec] = Line;
321 MCLineSectionOrder.push_back(Sec);
368 void setGenDwarfSection(const MCSection *Sec) { GenDwarfSection = Sec; } argument
/external/llvm/include/llvm/Object/
H A DELF.h690 virtual error_code getSectionNext(DataRefImpl Sec, SectionRef &Res) const;
691 virtual error_code getSectionName(DataRefImpl Sec, StringRef &Res) const;
692 virtual error_code getSectionAddress(DataRefImpl Sec, uint64_t &Res) const;
693 virtual error_code getSectionSize(DataRefImpl Sec, uint64_t &Res) const;
694 virtual error_code getSectionContents(DataRefImpl Sec, StringRef &Res) const;
695 virtual error_code getSectionAlignment(DataRefImpl Sec, uint64_t &Res) const;
696 virtual error_code isSectionText(DataRefImpl Sec, bool &Res) const;
697 virtual error_code isSectionData(DataRefImpl Sec, bool &Res) const;
698 virtual error_code isSectionBSS(DataRefImpl Sec, bool &Res) const;
699 virtual error_code isSectionRequiredForExecution(DataRefImpl Sec,
1263 DataRefImpl Sec; local
1280 getSectionNext(DataRefImpl Sec, SectionRef &Result) const argument
1290 getSectionName(DataRefImpl Sec, StringRef &Result) const argument
1298 getSectionAddress(DataRefImpl Sec, uint64_t &Result) const argument
1306 getSectionSize(DataRefImpl Sec, uint64_t &Result) const argument
1314 getSectionContents(DataRefImpl Sec, StringRef &Result) const argument
1323 getSectionContents(const Elf_Shdr *Sec, StringRef &Result) const argument
1331 getSectionAlignment(DataRefImpl Sec, uint64_t &Result) const argument
1339 isSectionText(DataRefImpl Sec, bool &Result) const argument
1350 isSectionData(DataRefImpl Sec, bool &Result) const argument
1362 isSectionBSS(DataRefImpl Sec, bool &Result) const argument
1374 isSectionRequiredForExecution( DataRefImpl Sec, bool &Result) const argument
1385 isSectionVirtual(DataRefImpl Sec, bool &Result) const argument
1396 isSectionZeroInit(DataRefImpl Sec, bool &Result) const argument
1406 isSectionReadOnlyData(DataRefImpl Sec, bool &Result) const argument
1417 sectionContainsSymbol(DataRefImpl Sec, DataRefImpl Symb, bool &Result) const argument
[all...]

Completed in 2066 milliseconds