Home
last modified time | relevance | path

Searched refs:SectionSize (Results 1 – 20 of 20) sorted by relevance

/openbsd-src/gnu/llvm/llvm/lib/ObjCopy/wasm/
H A DWasmWriter.cpp24 size_t &SectionSize) { in createSectionHeader() argument
29 SectionSize = S.Contents.size(); in createSectionHeader()
31 SectionSize += getULEB128Size(S.Name.size()) + S.Name.size(); in createSectionHeader()
34 encodeULEB128(SectionSize, OS, 5); in createSectionHeader()
41 SectionSize = SectionSize + 1 + 5; in createSectionHeader()
50 size_t SectionSize; in finalize() local
51 SectionHeaders.push_back(createSectionHeader(S, SectionSize)); in finalize()
52 ObjectSize += SectionSize; in finalize()
H A DWasmWriter.h41 size_t &SectionSize);
/openbsd-src/gnu/llvm/llvm/lib/MC/
H A DMCDXContainerWriter.cpp57 uint64_t SectionSize = Layout.getSectionAddressSize(&Sec); in writeObject() local
59 if (SectionSize == 0) in writeObject()
62 assert(SectionSize < std::numeric_limits<uint32_t>::max() && in writeObject()
66 PartOffset += sizeof(dxbc::PartHeader) + SectionSize; in writeObject()
98 uint64_t SectionSize = Layout.getSectionAddressSize(&Sec); in writeObject() local
100 if (SectionSize == 0) in writeObject()
107 uint64_t PartSize = SectionSize; in writeObject()
128 Header.Size = (SectionSize + sizeof(dxbc::ProgramHeader) + 3) / 4; in writeObject()
131 Header.Bitcode.Size = SectionSize; in writeObject()
H A DMachObjectWriter.cpp221 uint64_t SectionSize = Layout.getSectionAddressSize(&Sec); in writeSection() local
240 W.write<uint64_t>(SectionSize); // size in writeSection()
243 W.write<uint32_t>(SectionSize); // size in writeSection()
H A DMCDwarf.cpp1094 const MCExpr *SectionSize = in emitGenDwarfRanges() local
1098 MCOS->emitULEB128Value(SectionSize); in emitGenDwarfRanges()
1117 const MCExpr *SectionSize = in emitGenDwarfRanges() local
1120 emitAbsValue(*MCOS, SectionSize, AddrSize); in emitGenDwarfRanges()
H A DWinCOFFObjectWriter.cpp957 Offset += COFF::SectionSize * Header.NumberOfSections; in assignFileOffsets()
/openbsd-src/gnu/llvm/llvm/lib/ExecutionEngine/Orc/TargetProcess/
H A DRegisterEHFrames.cpp92 size_t SectionSize, HandleFDEFn HandleFDE) { in walkLibunwindEHFrameSection() argument
94 const char *End = SectionStart + SectionSize; in walkLibunwindEHFrameSection()
/openbsd-src/gnu/llvm/llvm/lib/ExecutionEngine/RuntimeDyld/
H A DRuntimeDyld.cpp466 for (uint64_t SectionSize : SectionSizes) in computeAllocationSizeForSections() local
467 TotalSize += alignTo(SectionSize, Alignment); in computeAllocationSizeForSections()
573 uint64_t SectionSize = DataSize + PaddingSize + StubBufSize; in computeTotalAllocSize() local
581 SectionSize += 4; in computeTotalAllocSize()
583 if (!SectionSize) in computeTotalAllocSize()
584 SectionSize = 1; in computeTotalAllocSize()
588 CodeSectionSizes.push_back(SectionSize); in computeTotalAllocSize()
591 ROSectionSizes.push_back(SectionSize); in computeTotalAllocSize()
594 RWSectionSizes.push_back(SectionSize); in computeTotalAllocSize()
/openbsd-src/gnu/llvm/llvm/lib/Object/
H A DXCOFFObjectFile.cpp392 return toSection64(Sec)->SectionSize; in getSectionSize()
394 return toSection32(Sec)->SectionSize; in getSectionSize()
409 uint64_t SectionSize = getSectionSize(Sec); in getSectionContents() local
411 Data, reinterpret_cast<uintptr_t>(ContentStart), SectionSize)) in getSectionContents()
415 Twine::utohexstr(SectionSize) + " goes past the end of the file"); in getSectionContents()
417 return ArrayRef(ContentStart, SectionSize); in getSectionContents()
577 RelocAddress < Sec64->VirtualAddress + Sec64->SectionSize) { in getRelocationOffset()
591 RelocAddress < Sec32->VirtualAddress + Sec32->SectionSize) { in getRelocationOffset()
H A DCOFFObjectFile.cpp1199 uint32_t SectionSize = getSectionSize(Sec); in getSectionContents() local
1200 if (Error E = checkOffset(Data, ConStart, SectionSize)) in getSectionContents()
1202 Res = ArrayRef(reinterpret_cast<const uint8_t *>(ConStart), SectionSize); in getSectionContents()
H A DMachOObjectFile.cpp104 unsigned SectionSize = Is64 ? sizeof(MachO::section_64) : in getSectionPtr() local
107 uintptr_t SectionAddr = CommandAddr + SegmentLoadSize + Sec * SectionSize; in getSectionPtr()
291 const unsigned SectionSize = sizeof(Section); in parseSegmentLoadCommand() local
293 if (S.nsects > std::numeric_limits<uint32_t>::max() / SectionSize || in parseSegmentLoadCommand()
294 S.nsects * SectionSize > Load.C.cmdsize - SegmentLoadSize) in parseSegmentLoadCommand()
H A DWindowsResource.cpp654 FileSize += 2 * COFF::SectionSize; in performFileLayout()
/openbsd-src/gnu/llvm/llvm/lib/ObjCopy/XCOFF/
H A DXCOFFReader.cpp27 if (Sec.SectionSize) { in readSections()
/openbsd-src/gnu/llvm/llvm/lib/ExecutionEngine/IntelJITEvents/
H A DIntelJITEventListener.cpp70 unsigned int SectionSize) { in reportSection() argument
71 WrapperRef.iJitIttNotifyInfo(EventType, SectionName, SectionSize); in reportSection()
/openbsd-src/gnu/llvm/llvm/tools/obj2yaml/
H A Dxcoff2yaml.cpp71 YamlSec.Size = S.SectionSize; in dumpSections()
/openbsd-src/gnu/llvm/llvm/include/llvm/Object/
H A DXCOFFObjectFile.h175 support::ubig32_t SectionSize;
188 support::ubig64_t SectionSize;
/openbsd-src/gnu/llvm/llvm/include/llvm/BinaryFormat/
H A DCOFF.h60 SectionSize = 40, enumerator
/openbsd-src/gnu/llvm/llvm/lib/DebugInfo/DWARF/
H A DDWARFContext.cpp159 uint64_t SectionSize = StringOffsetsSection.Data.size(); in dumpStringOffsetsSection() local
215 if (Offset < SectionSize) { in dumpStringOffsetsSection()
217 OS << (SectionSize - Offset) << "\n"; in dumpStringOffsetsSection()
/openbsd-src/gnu/llvm/llvm/tools/llvm-readobj/
H A DXCOFFDumper.cpp997 W.printHex("Size", Sec.SectionSize); in printOverflowSectionHeader()
1010 W.printHex("Size", Sec.SectionSize); in printGenericSectionHeader()
/openbsd-src/gnu/llvm/llvm/lib/ObjectYAML/
H A DCOFFEmitter.cpp208 CP.SectionTableSize = COFF::SectionSize * CP.Obj.Sections.size(); in layoutCOFF()