Home
last modified time | relevance | path

Searched refs:SectionBase (Results 1 – 19 of 19) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/ObjCopy/ELF/
H A DELFObject.h34 class SectionBase; variable
51 ArrayRef<std::unique_ptr<SectionBase>> Sections;
54 using iterator = pointee_iterator<const std::unique_ptr<SectionBase> *>;
56 explicit SectionTableRef(ArrayRef<std::unique_ptr<SectionBase>> Secs) in SectionTableRef()
64 Expected<SectionBase *> getSection(uint32_t Index, Twine ErrMsg);
286 void writeSection(const SectionBase *Sec, ArrayRef<uint8_t> Data);
335 void writeShdr(const SectionBase &Sec);
387 std::vector<const SectionBase *> Sections;
389 Error checkSection(const SectionBase &S) const;
484 void writeSection(const SectionBase &S, ArrayRef<uint8_t> Data);
[all …]
H A DELFObjcopy.cpp52 using SectionPred = std::function<bool(const SectionBase &Sec)>;
54 static bool isDebugSection(const SectionBase &Sec) { in isDebugSection()
58 static bool isDWOSection(const SectionBase &Sec) { in isDWOSection()
62 static bool onlyKeepDWOPred(const Object &Obj, const SectionBase &Sec) { in onlyKeepDWOPred()
110 static void setSectionType(SectionBase &Sec, uint64_t Type) { in setSectionType()
118 static Error setSectionFlagsAndType(SectionBase &Sec, SectionFlag Flags, in setSectionFlagsAndType()
221 SmallVector<std::pair<SectionBase *, std::function<SectionBase *()>>, 0> in compressOrDecompressSections()
223 for (SectionBase &Sec : sections()) { in compressOrDecompressSections()
257 DenseMap<SectionBase *, SectionBase *> FromTo; in compressOrDecompressSections()
372 for (SectionBase &Sec : Obj.sections()) in updateAndRemoveSymbols()
[all …]
H A DELFObject.cpp53 Error SectionBase::removeSectionReferences( in removeSectionReferences()
54 bool, function_ref<bool(const SectionBase *)>) { in removeSectionReferences() argument
58 Error SectionBase::removeSymbols(function_ref<bool(const Symbol &)>) { in removeSymbols()
62 Error SectionBase::initialize(SectionTableRef) { return Error::success(); } in initialize()
63 void SectionBase::finalize() {} in finalize()
64 void SectionBase::markSymbols() {} in markSymbols()
65 void SectionBase::replaceSectionReferences( in replaceSectionReferences()
66 const DenseMap<SectionBase *, SectionBase *> &) {} in replaceSectionReferences() argument
67 void SectionBase::onRemove() {} in onRemove()
69 template <class ELFT> void ELFWriter<ELFT>::writeShdr(const SectionBase &Sec) { in writeShdr()
[all …]
/freebsd/contrib/llvm-project/lld/ELF/
H A DInputSection.h62 class SectionBase {
99 return const_cast<SectionBase *>(this)->getOutputSection(); in getOutputSection()
113 constexpr SectionBase(Kind sectionKind, StringRef name, uint64_t flags, in SectionBase() function
140 class InputSectionBase : public SectionBase {
151 static bool classof(const SectionBase *s) { return s->kind() != Output; } in classof()
162 SectionBase *parent = nullptr;
323 static bool classof(const SectionBase *s) { return s->kind() == Merge; } in classof()
381 static bool classof(const SectionBase *s) { return s->kind() == EHFrame; } in classof()
405 static bool classof(const SectionBase *s) { in classof()
406 return s->kind() == SectionBase::Regular || in classof()
[all …]
H A DOutputSections.h36 class OutputSection final : public SectionBase {
40 static bool classof(const SectionBase *s) { in classof()
41 return s->kind() == SectionBase::Output; in classof()
H A DLinkerScript.h35 class SectionBase; variable
41 ExprValue(SectionBase *sec, bool forceAbsolute, uint64_t val, in ExprValue()
53 SectionBase *sec;
H A DSymbols.h35 class SectionBase; variable
376 uint8_t type, uint64_t value, uint64_t size, SectionBase *section) in Defined()
387 SectionBase *section;
H A DInputSection.cpp57 : SectionBase(sectionKind, name, flags, entsize, addralign, type, info, in InputSectionBase()
63 if (sectionKind == SectionBase::Merge && content().size() > UINT32_MAX) in InputSectionBase()
190 uint64_t SectionBase::getOffset(uint64_t offset) const { in getOffset()
223 uint64_t SectionBase::getVA(uint64_t offset) const { in getVA()
228 OutputSection *SectionBase::getOutputSection() { in getOutputSection()
351 source.name, SectionBase::Spill),
485 SectionBase *section = d->section; in copyRelocations()
1408 /*Alignment*/ entsize, data, name, SectionBase::Merge) {} in MergeInputSection()
H A DRelocations.h23 class SectionBase; variable
187 llvm::DenseMap<std::pair<std::pair<SectionBase *, uint64_t>, int64_t>,
H A DSyntheticSections.h59 static bool classof(const SectionBase *d) { in classof()
179 static bool classof(const SectionBase *s) { return s->bss; } in classof()
548 static bool classof(const SectionBase *d) { in classof()
1245 static bool classof(const SectionBase *sec) { in classof()
1478 inline Partition &SectionBase::getPartition() const { in getPartition()
H A DMapFile.cpp40 using SymbolMapTy = DenseMap<const SectionBase *,
H A DWriter.cpp141 static Defined *addOptionalRegular(StringRef name, SectionBase *sec, in addOptionalRegular()
250 static void demoteDefined(Defined &sym, DenseMap<SectionBase *, size_t> &map) { in demoteDefined() argument
274 DenseMap<InputFile *, DenseMap<SectionBase *, size_t>> sectionIndexMap; in demoteSymbolsAndComputeIsPreemptible()
459 SectionBase *sec = d->section; in includeInSymtab()
479 DenseMap<SectionBase *, size_t> sectionIndexMap; in demoteAndCopyLocalSymbols()
1564 const SectionBase *sec = def->section; in fixSymbolsAfterShrinking()
H A DOutputSections.cpp78 : SectionBase(Output, name, flags, /*Entsize*/ 0, /*Alignment*/ 1, type, in OutputSection()
627 SectionBase *section = d->section; in encodeOneCrel()
H A DAArch64ErrataFix.cpp383 static bool classof(const SectionBase *d) { in classof()
H A DARMErrataFix.cpp82 static bool classof(const SectionBase *d) { in classof()
H A DSymbols.cpp82 SectionBase *isec = d.section; in getSymVA()
H A DRelocations.cpp317 static void replaceWithDefined(Symbol &sym, SectionBase &sec, uint64_t value, in replaceWithDefined()
1651 if (s && s->kind() == SectionBase::Regular && s->isLive() && in scanRelocations()
2210 SectionBase *target) { in isThunkSectionCompatible()
H A DLinkerScript.cpp213 SectionBase *sec = value.isAbsolute() ? nullptr : value.sec; in addSymbol()
266 DenseMap<const Defined *, std::pair<SectionBase *, uint64_t>>;
H A DSyntheticSections.cpp3979 return s->kind() == SectionBase::Regular && part.armExidx && in combineEhSections()
4636 static Defined *addOptionalRegular(StringRef name, SectionBase *sec, in addOptionalRegular()