Home
last modified time | relevance | path

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

/llvm-project-15.0.7/llvm/lib/ObjCopy/ELF/
H A DELFObject.h34 class SectionBase; variable
373 bool operator()(const SectionBase *Lhs, const SectionBase *Rhs) const;
390 class SectionBase {
415 SectionBase() = default;
416 SectionBase(const SectionBase &) = default;
431 replaceSectionReferences(const DenseMap<SectionBase *, SectionBase *> &);
440 bool operator()(const SectionBase *Lhs, const SectionBase *Rhs) const { in operator()
722 const DenseMap<SectionBase *, SectionBase *> &FromTo) override;
794 const DenseMap<SectionBase *, SectionBase *> &FromTo) override;
835 const DenseMap<SectionBase *, SectionBase *> &FromTo) override;
[all …]
H A DELFObjcopy.cpp59 static bool isDWOSection(const SectionBase &Sec) { in isDWOSection()
206 function_ref<Expected<SectionBase *>(const SectionBase *)> AddSection) { in replaceDebugSections()
210 SmallVector<SectionBase *, 13> ToReplace; in replaceDebugSections()
216 DenseMap<SectionBase *, SectionBase *> FromTo; in replaceDebugSections()
217 for (SectionBase *S : ToReplace) { in replaceDebugSections()
325 for (SectionBase &Sec : Obj.sections()) in updateAndRemoveSymbols()
511 [&Config, &Obj](const SectionBase *S) -> Expected<SectionBase *> { in replaceAndRemoveSections()
520 [&Obj](const SectionBase *S) { in replaceAndRemoveSections()
633 for (SectionBase &Sec : Obj.sections()) { in handleArgs()
694 DenseSet<SectionBase *> RenamedSections; in handleArgs()
[all …]
H A DELFObject.cpp61 void SectionBase::finalize() {} in finalize()
62 void SectionBase::markSymbols() {} in markSymbols()
64 const DenseMap<SectionBase *, SectionBase *> &) {} in replaceSectionReferences() argument
65 void SectionBase::onRemove() {} in onRemove()
729 const DenseMap<SectionBase *, SectionBase *> &FromTo) { in replaceSectionReferences() argument
968 const DenseMap<SectionBase *, SectionBase *> &FromTo) { in replaceSectionReferences() argument
1063 const DenseMap<SectionBase *, SectionBase *> &FromTo) { in replaceSectionReferences() argument
1080 Expected<SectionBase *> Sec = in initialize()
2163 const DenseMap<SectionBase *, SectionBase *> &FromTo) { in replaceSections() argument
2287 [](const SectionBase *Lhs, const SectionBase *Rhs) { in layoutSections()
[all …]
/llvm-project-15.0.7/lld/ELF/
H A DInputSection.h46 class SectionBase {
80 return const_cast<SectionBase *>(this)->getOutputSection(); in getOutputSection()
94 constexpr SectionBase(Kind sectionKind, StringRef name, uint64_t flags, in SectionBase() function
105 class InputSectionBase : public SectionBase {
116 static bool classof(const SectionBase *s) { return s->kind() != Output; } in classof()
127 SectionBase *parent = nullptr;
272 static bool classof(const SectionBase *s) { return s->kind() == Merge; } in classof()
328 static bool classof(const SectionBase *s) { return s->kind() == EHFrame; } in classof()
352 static bool classof(const SectionBase *s) { in classof()
353 return s->kind() == SectionBase::Regular || in classof()
[all …]
H A DOutputSections.h34 class OutputSection final : public SectionBase {
38 static bool classof(const SectionBase *s) { in classof()
39 return s->kind() == SectionBase::Output; in classof()
H A DLinkerScript.h33 class SectionBase; variable
39 ExprValue(SectionBase *sec, bool forceAbsolute, uint64_t val, in ExprValue()
51 SectionBase *sec;
H A DRelocations.h23 class SectionBase; variable
170 llvm::DenseMap<std::pair<std::pair<SectionBase *, uint64_t>, int64_t>,
H A DSymbols.h34 class SectionBase; variable
328 uint8_t type, uint64_t value, uint64_t size, SectionBase *section) in Defined()
338 SectionBase *section;
H A DSyntheticSections.h53 static bool classof(const SectionBase *d) { in classof()
72 static bool classof(const SectionBase *d) { in classof()
193 static bool classof(const SectionBase *s) { return s->bss; } in classof()
541 static bool classof(const SectionBase *d) { in classof()
1083 static bool classof(const SectionBase *sec) { in classof()
1254 inline Partition &SectionBase::getPartition() const { in getPartition()
H A DInputSection.cpp57 : SectionBase(sectionKind, name, flags, entsize, alignment, type, info, in InputSectionBase()
63 if (sectionKind == SectionBase::Merge && rawData.size() > UINT32_MAX) in InputSectionBase()
147 uint64_t SectionBase::getOffset(uint64_t offset) const { in getOffset()
179 uint64_t SectionBase::getVA(uint64_t offset) const { in getVA()
184 OutputSection *SectionBase::getOutputSection() { in getOutputSection()
392 SectionBase *section = d->section; in copyRelocations()
1396 /*Alignment*/ entsize, data, name, SectionBase::Merge) {} in MergeInputSection()
H A DMapFile.cpp40 using SymbolMapTy = DenseMap<const SectionBase *,
H A DARMErrataFix.cpp82 static bool classof(const SectionBase *d) { in classof()
H A DAArch64ErrataFix.cpp382 static bool classof(const SectionBase *d) { in classof()
H A DSymbols.cpp77 SectionBase *isec = d.section; in getSymVA()
H A DWriter.cpp156 } else if (s->kind() == SectionBase::Regular && part.armExidx && in combineEhSections()
165 static Defined *addOptionalRegular(StringRef name, SectionBase *sec, in addOptionalRegular()
683 SectionBase *sec = d->section; in includeInSymtab()
1727 const SectionBase *sec = def->section; in fixSymbolsAfterShrinking()
H A DLinkerScript.cpp220 SectionBase *sec = value.isAbsolute() ? nullptr : value.sec; in addSymbol()
268 DenseMap<const Defined *, std::pair<SectionBase *, uint64_t>>;
H A DOutputSections.cpp71 : SectionBase(Output, name, flags, /*Entsize*/ 0, /*Alignment*/ 1, type, in OutputSection()
H A DRelocations.cpp297 static void replaceWithDefined(Symbol &sym, SectionBase &sec, uint64_t value, in replaceWithDefined()
2037 SectionBase *target) { in isThunkSectionCompatible()