Home
last modified time | relevance | path

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

/freebsd-14.2/contrib/llvm-project/llvm/lib/ObjCopy/ELF/
H A DELFObject.h34 class SectionBase; variable
376 bool operator()(const SectionBase *Lhs, const SectionBase *Rhs) const;
393 class SectionBase {
418 SectionBase() = default;
419 SectionBase(const SectionBase &) = default;
434 replaceSectionReferences(const DenseMap<SectionBase *, SectionBase *> &);
445 bool operator()(const SectionBase *Lhs, const SectionBase *Rhs) const { in operator()
734 const DenseMap<SectionBase *, SectionBase *> &FromTo) override;
806 const DenseMap<SectionBase *, SectionBase *> &FromTo) override;
847 const DenseMap<SectionBase *, SectionBase *> &FromTo) override;
[all …]
H A DELFObjcopy.cpp58 static bool isDWOSection(const SectionBase &Sec) { in isDWOSection()
222 function_ref<Expected<SectionBase *>(const SectionBase *)> AddSection) { in replaceDebugSections()
226 SmallVector<SectionBase *, 13> ToReplace; in replaceDebugSections()
232 DenseMap<SectionBase *, SectionBase *> FromTo; in replaceDebugSections()
233 for (SectionBase *S : ToReplace) { in replaceDebugSections()
341 for (SectionBase &Sec : Obj.sections()) in updateAndRemoveSymbols()
527 [&Config, &Obj](const SectionBase *S) -> Expected<SectionBase *> { in replaceAndRemoveSections()
536 [&Obj](const SectionBase *S) { in replaceAndRemoveSections()
649 for (SectionBase &Sec : Obj.sections()) { in handleArgs()
711 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()
763 const DenseMap<SectionBase *, SectionBase *> &FromTo) { in replaceSectionReferences() argument
1002 const DenseMap<SectionBase *, SectionBase *> &FromTo) { in replaceSectionReferences() argument
1097 const DenseMap<SectionBase *, SectionBase *> &FromTo) { in replaceSectionReferences() argument
2205 const DenseMap<SectionBase *, SectionBase *> &FromTo) { in replaceSections() argument
2329 [](const SectionBase *Lhs, const SectionBase *Rhs) { in layoutSections()
2354 [](const SectionBase *Lhs, const SectionBase *Rhs) { in layoutSectionsForOnlyKeepDebug()
[all …]
/freebsd-14.2/contrib/llvm-project/lld/ELF/
H A DInputSection.h49 class SectionBase {
83 return const_cast<SectionBase *>(this)->getOutputSection(); in getOutputSection()
97 constexpr SectionBase(Kind sectionKind, StringRef name, uint64_t flags, in SectionBase() function
124 class InputSectionBase : public SectionBase {
135 static bool classof(const SectionBase *s) { return s->kind() != Output; } in classof()
146 SectionBase *parent = nullptr;
300 static bool classof(const SectionBase *s) { return s->kind() == Merge; } in classof()
382 static bool classof(const SectionBase *s) { in classof()
383 return s->kind() == SectionBase::Regular || in classof()
384 s->kind() == SectionBase::Synthetic; in classof()
[all …]
H A DOutputSections.h35 class OutputSection final : public SectionBase {
39 static bool classof(const SectionBase *s) { in classof()
40 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.h22 class SectionBase; variable
183 llvm::DenseMap<std::pair<std::pair<SectionBase *, uint64_t>, int64_t>,
H A DSymbols.h35 class SectionBase; variable
358 uint8_t type, uint64_t value, uint64_t size, SectionBase *section) in Defined()
369 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()
155 uint64_t SectionBase::getOffset(uint64_t offset) const { in getOffset()
187 uint64_t SectionBase::getVA(uint64_t offset) const { in getVA()
192 OutputSection *SectionBase::getOutputSection() { in getOutputSection()
441 SectionBase *section = d->section; in copyRelocations()
1359 /*Alignment*/ entsize, data, name, SectionBase::Merge) {} in MergeInputSection()
H A DSyntheticSections.h54 static bool classof(const SectionBase *d) { in classof()
174 static bool classof(const SectionBase *s) { return s->bss; } in classof()
543 static bool classof(const SectionBase *d) { in classof()
1107 static bool classof(const SectionBase *sec) { in classof()
1331 inline Partition &SectionBase::getPartition() const { in getPartition()
H A DMapFile.cpp40 using SymbolMapTy = DenseMap<const SectionBase *,
H A DWriter.cpp145 static Defined *addOptionalRegular(StringRef name, SectionBase *sec, in addOptionalRegular()
254 static void demoteDefined(Defined &sym, DenseMap<SectionBase *, size_t> &map) { in demoteDefined() argument
278 DenseMap<InputFile *, DenseMap<SectionBase *, size_t>> sectionIndexMap; in demoteSymbolsAndComputeIsPreemptible()
745 SectionBase *sec = d->section; in includeInSymtab()
765 DenseMap<SectionBase *, size_t> sectionIndexMap; in demoteAndCopyLocalSymbols()
1788 const SectionBase *sec = def->section; in fixSymbolsAfterShrinking()
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()
1592 if (s && s->kind() == SectionBase::Regular && s->isLive() && in scanRelocations()
2148 SectionBase *target) { in isThunkSectionCompatible()
H A DLinkerScript.cpp220 SectionBase *sec = value.isAbsolute() ? nullptr : value.sec; in addSymbol()
273 DenseMap<const Defined *, std::pair<SectionBase *, uint64_t>>;
H A DOutputSections.cpp77 : SectionBase(Output, name, flags, /*Entsize*/ 0, /*Alignment*/ 1, type, in OutputSection()
H A DSyntheticSections.cpp3367 return s->kind() == SectionBase::Regular && part.armExidx && in combineEhSections()