Home
last modified time | relevance | path

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

/openbsd-src/gnu/llvm/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);
283 void writeSection(const SectionBase *Sec, ArrayRef<uint8_t> Data);
332 void writeShdr(const SectionBase &Sec);
373 bool operator()(const SectionBase *Lhs, const SectionBase *Rhs) const;
376 std::set<const SectionBase *, SectionCompare> Sections;
379 Error checkSection(const SectionBase &Sec);
[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()
100 static void setSectionFlagsAndType(SectionBase &Sec, SectionFlag Flags) { in setSectionFlagsAndType()
198 static bool isCompressable(const SectionBase &Sec) { in isCompressable()
204 Object &Obj, function_ref<bool(const SectionBase &)> ShouldReplace, in replaceDebugSections()
205 function_ref<Expected<SectionBase *>(const SectionBase *)> AddSection) { in replaceDebugSections()
209 SmallVector<SectionBase *, 13> ToReplace; in replaceDebugSections()
215 DenseMap<SectionBase *, SectionBase *> FromTo; in replaceDebugSections()
[all …]
H A DELFObject.cpp51 Error SectionBase::removeSectionReferences( in removeSectionReferences()
52 bool, function_ref<bool(const SectionBase *)>) { in removeSectionReferences() argument
56 Error SectionBase::removeSymbols(function_ref<bool(const Symbol &)>) { in removeSymbols()
60 Error SectionBase::initialize(SectionTableRef) { return Error::success(); } in initialize()
61 void SectionBase::finalize() {} in finalize()
62 void SectionBase::markSymbols() {} in markSymbols()
63 void SectionBase::replaceSectionReferences( in replaceSectionReferences()
64 const DenseMap<SectionBase *, SectionBase *> &) {} in replaceSectionReferences() argument
65 void SectionBase::onRemove() {} in onRemove()
67 template <class ELFT> void ELFWriter<ELFT>::writeShdr(const SectionBase &Sec) { in writeShdr()
[all …]
/openbsd-src/gnu/llvm/lld/ELF/
H A DInputSection.h47 class SectionBase {
81 return const_cast<SectionBase *>(this)->getOutputSection(); in getOutputSection()
95 constexpr SectionBase(Kind sectionKind, StringRef name, uint64_t flags, in SectionBase() function
106 class InputSectionBase : public SectionBase {
117 static bool classof(const SectionBase *s) { return s->kind() != Output; } in classof()
128 SectionBase *parent = nullptr;
279 static bool classof(const SectionBase *s) { return s->kind() == Merge; } in classof()
337 static bool classof(const SectionBase *s) { return s->kind() == EHFrame; } in classof()
361 static bool classof(const SectionBase *s) { in classof()
362 return s->kind() == SectionBase::Regular || 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
169 llvm::DenseMap<std::pair<std::pair<SectionBase *, uint64_t>, int64_t>,
H A DSymbols.h35 class SectionBase; variable
347 uint8_t type, uint64_t value, uint64_t size, SectionBase *section) in Defined()
365 SectionBase *section;
H A DInputSection.cpp56 : SectionBase(sectionKind, name, flags, entsize, addralign, type, info, in InputSectionBase()
62 if (sectionKind == SectionBase::Merge && content().size() > UINT32_MAX) in InputSectionBase()
154 uint64_t SectionBase::getOffset(uint64_t offset) const { in getOffset()
186 uint64_t SectionBase::getVA(uint64_t offset) const { in getVA()
191 OutputSection *SectionBase::getOutputSection() { in getOutputSection()
405 SectionBase *section = d->section; in copyRelocations()
1278 /*Alignment*/ entsize, data, name, SectionBase::Merge) {} in MergeInputSection()
H A DSyntheticSections.h52 static bool classof(const SectionBase *d) { in classof()
172 static bool classof(const SectionBase *s) { return s->bss; } in classof()
541 static bool classof(const SectionBase *d) { in classof()
1095 static bool classof(const SectionBase *sec) { in classof()
1267 inline Partition &SectionBase::getPartition() const { in getPartition()
H A DMapFile.cpp40 using SymbolMapTy = DenseMap<const SectionBase *,
H A DAArch64ErrataFix.cpp382 static bool classof(const SectionBase *d) { in classof()
H A DARMErrataFix.cpp82 static bool classof(const SectionBase *d) { in classof()
H A DSymbols.cpp84 SectionBase *isec = d.section; in getSymVA()
H A DLinkerScript.cpp221 SectionBase *sec = value.isAbsolute() ? nullptr : value.sec; in addSymbol()
269 DenseMap<const Defined *, std::pair<SectionBase *, uint64_t>>;
H A DWriter.cpp145 static Defined *addOptionalRegular(StringRef name, SectionBase *sec, in addOptionalRegular()
672 SectionBase *sec = d->section; in includeInSymtab()
1719 const SectionBase *sec = def->section; in fixSymbolsAfterShrinking()
H A DOutputSections.cpp75 : SectionBase(Output, name, flags, /*Entsize*/ 0, /*Alignment*/ 1, type, in OutputSection()
H A DSyntheticSections.cpp3342 return s->kind() == SectionBase::Regular && part.armExidx && in combineEhSections()