| /NextBSD/contrib/llvm/include/llvm/Object/ |
| HD | ELFObjectFile.h | 54 virtual uint32_t getSectionType(DataRefImpl Sec) const = 0; 55 virtual uint64_t getSectionFlags(DataRefImpl Sec) const = 0; 211 void moveSectionNext(DataRefImpl &Sec) const override; 212 std::error_code getSectionName(DataRefImpl Sec, 214 uint64_t getSectionAddress(DataRefImpl Sec) const override; 215 uint64_t getSectionSize(DataRefImpl Sec) const override; 216 std::error_code getSectionContents(DataRefImpl Sec, 218 uint64_t getSectionAlignment(DataRefImpl Sec) const override; 219 bool isSectionText(DataRefImpl Sec) const override; 220 bool isSectionData(DataRefImpl Sec) const override; [all …]
|
| HD | MachO.h | 206 unsigned getSectionType(SectionRef Sec) const; 216 unsigned getSectionID(SectionRef Sec) const; 218 void moveSectionNext(DataRefImpl &Sec) const override; 219 std::error_code getSectionName(DataRefImpl Sec, 221 uint64_t getSectionAddress(DataRefImpl Sec) const override; 222 uint64_t getSectionSize(DataRefImpl Sec) const override; 223 std::error_code getSectionContents(DataRefImpl Sec, 225 uint64_t getSectionAlignment(DataRefImpl Sec) const override; 226 bool isSectionText(DataRefImpl Sec) const override; 227 bool isSectionData(DataRefImpl Sec) const override; [all …]
|
| HD | ObjectFile.h | 210 virtual void moveSectionNext(DataRefImpl &Sec) const = 0; 211 virtual std::error_code getSectionName(DataRefImpl Sec, 213 virtual uint64_t getSectionAddress(DataRefImpl Sec) const = 0; 214 virtual uint64_t getSectionSize(DataRefImpl Sec) const = 0; 215 virtual std::error_code getSectionContents(DataRefImpl Sec, 217 virtual uint64_t getSectionAlignment(DataRefImpl Sec) const = 0; 218 virtual bool isSectionText(DataRefImpl Sec) const = 0; 219 virtual bool isSectionData(DataRefImpl Sec) const = 0; 220 virtual bool isSectionBSS(DataRefImpl Sec) const = 0; 222 virtual bool isSectionVirtual(DataRefImpl Sec) const = 0; [all …]
|
| HD | ELF.h | 379 ErrorOr<ArrayRef<uint8_t> > getSectionContents(const Elf_Shdr *Sec) const; 495 ELFFile<ELFT>::getSectionContents(const Elf_Shdr *Sec) const { in getSectionContents() argument 496 if (Sec->sh_offset + Sec->sh_size > Buf.size()) in getSectionContents() 498 const uint8_t *Start = base() + Sec->sh_offset; in getSectionContents() 499 return makeArrayRef(Start, Sec->sh_size); in getSectionContents() 542 ELFFile<ELFT>::getRelocationSymbol(const Elf_Shdr *Sec, const RelT *Rel) const { in getRelocationSymbol() argument 543 if (!Sec->sh_link) in getRelocationSymbol() 545 ErrorOr<const Elf_Shdr *> SymTableOrErr = getSection(Sec->sh_link); in getRelocationSymbol() 613 for (const Elf_Shdr &Sec : sections()) { in ELFFile() local 614 switch (Sec.sh_type) { in ELFFile() [all …]
|
| HD | COFF.h | 577 const coff_section *toSec(DataRefImpl Sec) const; 658 void moveSectionNext(DataRefImpl &Sec) const override; 659 std::error_code getSectionName(DataRefImpl Sec, 661 uint64_t getSectionAddress(DataRefImpl Sec) const override; 662 uint64_t getSectionSize(DataRefImpl Sec) const override; 663 std::error_code getSectionContents(DataRefImpl Sec, 665 uint64_t getSectionAlignment(DataRefImpl Sec) const override; 666 bool isSectionText(DataRefImpl Sec) const override; 667 bool isSectionData(DataRefImpl Sec) const override; 668 bool isSectionBSS(DataRefImpl Sec) const override; [all …]
|
| /NextBSD/contrib/llvm/include/llvm/MC/ |
| HD | MCAssembler.h | 155 MCSection *Sec) 156 : MCFragment(FType, HasInstructions, 0, Sec) {} 182 MCSection *Sec) 183 : MCEncodedFragment(FType, HasInstructions, Sec) {} 203 MCSection *Sec) 205 Sec) {} 230 MCDataFragment(MCSection *Sec = nullptr) 231 : MCEncodedFragmentWithFixups<32, 4>(FT_Data, false, Sec) {} 247 MCCompactEncodedInstFragment(MCSection *Sec = nullptr) 248 : MCEncodedFragmentWithContents(FT_CompactEncodedInst, true, Sec) { [all …]
|
| HD | MCMachObjectWriter.h | 137 uint64_t getSectionAddress(const MCSection *Sec) const { in getSectionAddress() argument 138 return SectionAddress.lookup(Sec); in getSectionAddress() 174 const MCSection &Sec, uint64_t FileOffset, 213 void addRelocation(const MCSymbol *RelSymbol, const MCSection *Sec, in addRelocation() argument 216 Relocations[Sec].push_back(P); in addRelocation()
|
| HD | MCAsmLayout.h | 85 uint64_t getSectionAddressSize(const MCSection *Sec) const; 89 uint64_t getSectionFileSize(const MCSection *Sec) const;
|
| /NextBSD/contrib/llvm/lib/Target/Mips/MCTargetDesc/ |
| HD | MipsOptionRecord.cpp | 31 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()
|
| HD | MipsTargetStreamer.cpp | 595 MCSectionELF *Sec = Context.getELFSection(".pdr", ELF::SHT_PROGBITS, in emitDirectiveEnd() local 601 MCA.registerSection(*Sec); in emitDirectiveEnd() 602 Sec->setAlignment(4); in emitDirectiveEnd() 606 OS.SwitchSection(Sec); in emitDirectiveEnd() 817 MCSectionELF *Sec = Context.getELFSection( in emitMipsAbiFlags() local 819 MCA.registerSection(*Sec); in emitMipsAbiFlags() 820 Sec->setAlignment(8); in emitMipsAbiFlags() 821 OS.SwitchSection(Sec); in emitMipsAbiFlags()
|
| /NextBSD/contrib/llvm/lib/Object/ |
| HD | COFFObjectFile.cpp | 240 const coff_section *Sec = nullptr; in getSymbolSection() local 241 if (std::error_code EC = getSection(Symb.getSectionNumber(), Sec)) in getSymbolSection() 244 Ref.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 return Sec->VirtualAddress; in getSectionAddress() [all …]
|
| HD | SymbolSize.cpp | 34 static unsigned getSectionID(const ObjectFile &O, SectionRef Sec) { in getSectionID() argument 36 return M->getSectionID(Sec); in getSectionID() 37 return cast<COFFObjectFile>(O).getSectionID(Sec); in getSectionID() 69 for (SectionRef Sec : O.sections()) { in computeSymbolSizes() local 70 uint64_t Address = Sec.getAddress(); in computeSymbolSizes() 71 uint64_t Size = Sec.getSize(); in computeSymbolSizes() 73 {O.symbol_end(), Address + Size, 0, getSectionID(O, Sec)}); in computeSymbolSizes()
|
| HD | MachOObjectFile.cpp | 70 unsigned Sec) { in getSectionPtr() argument 79 uintptr_t SectionAddr = CommandAddr + SegmentLoadSize + Sec * SectionSize; in getSectionPtr() 155 DataRefImpl Sec) { in getSectionFlags() argument 157 MachO::section_64 Sect = O->getSection64(Sec); in getSectionFlags() 160 MachO::section Sect = O->getSection(Sec); in getSectionFlags() 220 const char *Sec = getSectionPtr(Obj, Load, J); in parseSegmentLoadCommand() local 221 Sections.push_back(Sec); in parseSegmentLoadCommand() 340 unsigned MachOObjectFile::getSectionType(SectionRef Sec) const { in getSectionType() 341 DataRefImpl DRI = Sec.getRawDataRefImpl(); in getSectionType() 472 void MachOObjectFile::moveSectionNext(DataRefImpl &Sec) const { in moveSectionNext() [all …]
|
| HD | COFFYAML.cpp | 481 void MappingTraits<COFFYAML::Section>::mapping(IO &IO, COFFYAML::Section &Sec) { in mapping() argument 483 IO, Sec.Header.Characteristics); in mapping() 484 IO.mapRequired("Name", Sec.Name); in mapping() 486 IO.mapOptional("VirtualAddress", Sec.Header.VirtualAddress, 0U); in mapping() 487 IO.mapOptional("VirtualSize", Sec.Header.VirtualSize, 0U); in mapping() 488 IO.mapOptional("Alignment", Sec.Alignment); in mapping() 489 IO.mapRequired("SectionData", Sec.SectionData); in mapping() 490 IO.mapOptional("Relocations", Sec.Relocations); in mapping()
|
| /NextBSD/contrib/llvm/lib/MC/ |
| HD | MachObjectWriter.cpp | 107 uint64_t MachObjectWriter::getPaddingSize(const MCSection *Sec, in getPaddingSize() argument 109 uint64_t EndAddr = getSectionAddress(Sec) + Layout.getSectionAddressSize(Sec); in getPaddingSize() 110 unsigned Next = Sec->getLayoutOrder() + 1; in getPaddingSize() 196 const MCSection &Sec, uint64_t FileOffset, in writeSection() argument 199 uint64_t SectionSize = Layout.getSectionAddressSize(&Sec); in writeSection() 200 const MCSectionMachO &Section = cast<MCSectionMachO>(Sec); in writeSection() 204 assert(Layout.getSectionFileSize(&Sec) == 0 && "Invalid file size!"); in writeSection() 217 write64(getSectionAddress(&Sec)); // address in writeSection() 220 write32(getSectionAddress(&Sec)); // address in writeSection() 234 write32(IndirectSymBase.lookup(&Sec)); // reserved1 in writeSection() [all …]
|
| HD | WinCOFFObjectWriter.cpp | 156 void defineSection(MCSectionCOFF const &Sec); 300 void WinCOFFObjectWriter::defineSection(MCSectionCOFF const &Sec) { in defineSection() argument 301 COFFSection *coff_section = createSection(Sec.getSectionName()); in defineSection() 302 COFFSymbol *coff_symbol = createSymbol(Sec.getSectionName()); in defineSection() 303 if (Sec.getSelection() != COFF::IMAGE_COMDAT_SELECT_ASSOCIATIVE) { in defineSection() 304 if (const MCSymbol *S = Sec.getCOMDATSymbol()) { in defineSection() 320 coff_symbol->Aux[0].Aux.SectionDefinition.Selection = Sec.getSelection(); in defineSection() 322 coff_section->Header.Characteristics = Sec.getCharacteristics(); in defineSection() 325 switch (Sec.getAlignment()) { in defineSection() 373 coff_section->MCSection = &Sec; in defineSection() [all …]
|
| HD | MCAssembler.cpp | 80 const MCSection *Sec = F->getParent(); in isFragmentValid() local 81 const MCFragment *LastValid = LastValidFragment.lookup(Sec); in isFragmentValid() 84 assert(LastValid->getParent() == Sec); in isFragmentValid() 99 MCSection *Sec = F->getParent(); in ensureValid() local 100 MCFragment *Cur = LastValidFragment[Sec]; in ensureValid() 102 Cur = Sec->begin(); in ensureValid() 207 uint64_t MCAsmLayout::getSectionAddressSize(const MCSection *Sec) const { in getSectionAddressSize() 209 const MCFragment &F = Sec->getFragmentList().back(); in getSectionAddressSize() 213 uint64_t MCAsmLayout::getSectionFileSize(const MCSection *Sec) const { in getSectionFileSize() 215 if (Sec->isVirtualSection()) in getSectionFileSize() [all …]
|
| HD | ELFObjectWriter.cpp | 122 unsigned addToSectionTable(const MCSectionELF *Sec); 198 const MCSectionELF &Sec); 209 void writeSectionData(const MCAssembler &Asm, MCSection &Sec, 217 void writeRelocations(const MCAssembler &Asm, const MCSectionELF &Sec); 239 unsigned ELFObjectWriter::addToSectionTable(const MCSectionELF *Sec) { in addToSectionTable() argument 240 SectionTable.push_back(Sec); in addToSectionTable() 241 StrTabBuilder.add(Sec->getSectionName()); in addToSectionTable() 562 auto &Sec = cast<MCSectionELF>(Sym->getSection()); in shouldRelocateWithSymbol() local 563 unsigned Flags = Sec.getFlags(); in shouldRelocateWithSymbol() 935 const MCSectionELF &Sec) { in createRelocationSection() argument [all …]
|
| HD | MCELFStreamer.cpp | 506 MCSection &Sec = *getCurrentSectionOnly(); in EmitInstToData() local 516 else if (isBundleLocked() && !Sec.isBundleGroupBeforeFirstInst()) in EmitInstToData() 532 if (Sec.getBundleLockState() == MCSection::BundleLockedAlignToEnd) { in EmitInstToData() 542 Sec.setBundleGroupBeforeFirstInst(false); in EmitInstToData() 574 MCSection &Sec = *getCurrentSectionOnly(); in EmitBundleLock() local 582 Sec.setBundleGroupBeforeFirstInst(true); in EmitBundleLock() 590 Sec.setBundleLockState(AlignToEnd ? MCSection::BundleLockedAlignToEnd in EmitBundleLock() 595 MCSection &Sec = *getCurrentSectionOnly(); in EmitBundleUnlock() local 602 else if (Sec.isBundleGroupBeforeFirstInst()) in EmitBundleUnlock() 613 Sec.setBundleLockState(MCSection::NotBundleLocked); in EmitBundleUnlock() [all …]
|
| HD | MCObjectStreamer.cpp | 224 bool MCObjectStreamer::mayHaveInstructions(MCSection &Sec) const { in mayHaveInstructions() 225 return Sec.hasInstructions(); in mayHaveInstructions() 232 MCSection *Sec = getCurrentSectionOnly(); in EmitInstruction() local 233 Sec->setHasInstructions(true); in EmitInstruction() 252 (Assembler.isBundlingEnabled() && Sec->isBundleLocked())) { in EmitInstruction() 442 const MCSection *Sec = getCurrentSection().first; in EmitZeros() local 443 assert(Sec && "need a section"); in EmitZeros() 444 unsigned ItemSize = Sec->isVirtualSection() ? 0 : 1; in EmitZeros()
|
| HD | MCContext.cpp | 429 MCSectionCOFF *MCContext::getAssociativeCOFFSection(MCSectionCOFF *Sec, in getAssociativeCOFFSection() argument 433 return Sec; in getAssociativeCOFFSection() 438 Sec->getCharacteristics() | COFF::IMAGE_SCN_LNK_COMDAT; in getAssociativeCOFFSection() 439 return getCOFFSection(Sec->getSectionName(), Characteristics, Sec->getKind(), in getAssociativeCOFFSection() 472 [&](MCSection *Sec) { return !MCOS.mayHaveInstructions(*Sec); }); in finalizeDwarfSections() argument
|
| /NextBSD/contrib/llvm/tools/llvm-readobj/ |
| HD | ELFDumper.cpp | 75 void printRelocations(const Elf_Shdr *Sec); 76 void printRelocation(const Elf_Shdr *Sec, typename ELFO::Elf_Rela Rel); 166 ErrorOr<const typename ELFO::Elf_Shdr *> Sec = Obj.getSection(SectionIndex); in getSectionNameIndex() local 167 if (!error(Sec.getError())) in getSectionNameIndex() 168 SectionName = errorOrDefault(Obj.getSectionName(*Sec)); in getSectionNameIndex() 621 for (const typename ELFO::Elf_Shdr &Sec : Obj->sections()) { in printSections() local 624 StringRef Name = errorOrDefault(Obj->getSectionName(&Sec)); in printSections() 628 W.printNumber("Name", Name, Sec.sh_name); in printSections() 630 getElfSectionType(Obj->getHeader()->e_machine, Sec.sh_type), in printSections() 631 Sec.sh_type); in printSections() [all …]
|
| HD | ARMEHABIPrinter.h | 367 for (const Elf_Shdr &Sec : ELF->sections()) { in FindExceptionTable() local 368 if (Sec.sh_type == ELF::SHT_REL && Sec.sh_info == IndexSectionIndex) { in FindExceptionTable() 369 for (Elf_Rel_iterator RI = ELF->rel_begin(&Sec), RE = ELF->rel_end(&Sec); in FindExceptionTable() 378 ELF->getRelocationSymbol(&Sec, &RelA); in FindExceptionTable() 531 for (const Elf_Shdr &Sec : ELF->sections()) { in PrintUnwindInformation() local 532 if (Sec.sh_type == ELF::SHT_ARM_EXIDX) { in PrintUnwindInformation() 536 if (ErrorOr<StringRef> SectionName = ELF->getSectionName(&Sec)) in PrintUnwindInformation() 538 SW.printHex("SectionOffset", Sec.sh_offset); in PrintUnwindInformation() 540 PrintIndexTable(SectionIndex, &Sec); in PrintUnwindInformation()
|
| /NextBSD/contrib/llvm/tools/llvm-cxxdump/ |
| HD | llvm-cxxdump.cpp | 73 const SectionRef &Sec) { in getRelocSections() argument 84 return SectionRelocMap[Sec]; in getRelocSections() 88 const SectionRef &Sec, uint64_t SecAddress, in collectRelocatedSymbols() argument 93 for (const SectionRef &SR : getRelocSections(Obj, Sec)) { in collectRelocatedSymbols() 114 const ObjectFile *Obj, const SectionRef &Sec, uint64_t SecAddress, in collectRelocationOffsets() argument 119 for (const SectionRef &SR : getRelocSections(Obj, Sec)) { in collectRelocationOffsets() 203 const SectionRef &Sec = *SecI; in dumpCXXData() local 205 if (Sec.isBSS() || Sec.isVirtual()) in dumpCXXData() 208 if (error(Sec.getContents(SecContents))) in dumpCXXData() 214 uint64_t SecAddress = Sec.getAddress(); in dumpCXXData() [all …]
|
| /NextBSD/contrib/llvm/lib/Target/AArch64/MCTargetDesc/ |
| HD | AArch64MachObjectWriter.cpp | 288 const MCSection &Sec = Symbol->getSection(); in recordRelocation() local 289 if (!Asm.getContext().getAsmInfo()->isSectionAtomizableBySymbols(Sec)) in recordRelocation() 347 const MCSection &Sec = Symbol->getSection(); in recordRelocation() local 348 Index = Sec.getOrdinal() + 1; in recordRelocation()
|