Home
last modified time | relevance | path

Searched refs:SectionBase (Results 1 – 20 of 20) 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 DELFObject.cpp50 Error SectionBase::removeSectionReferences( in removeSectionReferences()
51 bool, function_ref<bool(const SectionBase *)>) { in removeSectionReferences() argument
55 Error SectionBase::removeSymbols(function_ref<bool(const Symbol &)>) { in removeSymbols()
59 Error SectionBase::initialize(SectionTableRef) { return Error::success(); } in initialize()
60 void SectionBase::finalize() {} in finalize()
61 void SectionBase::markSymbols() {} in markSymbols()
62 void SectionBase::replaceSectionReferences( in replaceSectionReferences()
63 const DenseMap<SectionBase *, SectionBase *> &) {} in replaceSectionReferences() argument
64 void SectionBase::onRemove() {} in onRemove()
66 template <class ELFT> void ELFWriter<ELFT>::writeShdr(const SectionBase &Sec) { in writeShdr()
[all …]
H A DELFObjcopy.cpp47 using SectionPred = std::function<bool(const SectionBase &Sec)>;
49 static bool isDebugSection(const SectionBase &Sec) { in isDebugSection()
53 static bool isDWOSection(const SectionBase &Sec) { in isDWOSection()
57 static bool onlyKeepDWOPred(const Object &Obj, const SectionBase &Sec) { in onlyKeepDWOPred()
105 static void setSectionType(SectionBase &Sec, uint64_t Type) { in setSectionType()
113 static Error setSectionFlagsAndType(SectionBase &Sec, SectionFlag Flags, in setSectionFlagsAndType()
217 SmallVector<std::pair<SectionBase *, std::function<SectionBase *()>>, 0> in compressOrDecompressSections()
219 for (SectionBase &Sec : sections()) { in compressOrDecompressSections()
253 DenseMap<SectionBase *, SectionBase *> FromTo; in compressOrDecompressSections()
367 for (SectionBase &Sec : Obj.sections()) in updateAndRemoveSymbols()
[all …]
/freebsd/contrib/llvm-project/lld/ELF/
H A DInputSection.h60 class SectionBase {
103 return const_cast<SectionBase *>(this)->getOutputSection(); in getOutputSection()
117 constexpr SectionBase(Kind sectionKind, InputFile *file, StringRef name, in SectionBase() function
144 class InputSectionBase : public SectionBase {
165 static bool classof(const SectionBase *s) { in classof()
192 SectionBase *parent = nullptr;
341 static bool classof(const SectionBase *s) { return s->kind() == Merge; } in classof()
399 static bool classof(const SectionBase *s) { return s->kind() == EHFrame; } in classof()
424 static bool classof(const SectionBase *s) { in classof()
425 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()
151 struct SectionClass final : public SectionBase {
156 : SectionBase(Class, nullptr, name, 0, 0, 0, 0, 0, 0) {} in SectionClass()
157 static bool classof(const SectionBase *s) { return s->kind() == Class; } in classof()
H A DLinkerScript.h35 class SectionBase; variable
43 ExprValue(SectionBase *sec, bool forceAbsolute, uint64_t val, in ExprValue()
55 SectionBase *sec;
331 ArrayRef<InputSectionBase *>, const SectionBase &outCmd);
H A DRelocations.h26 class SectionBase; variable
210 llvm::DenseMap<std::pair<std::pair<SectionBase *, uint64_t>, int64_t>,
232 llvm::DenseMap<std::pair<std::pair<SectionBase *, uint64_t>, int64_t>,
H A DSymbols.h28 class SectionBase; variable
374 SectionBase *section) in Defined()
384 SectionBase *section;
H A DInputSection.cpp59 : SectionBase(sectionKind, file, name, type, flags, link, info, addralign, in InputSectionBase()
66 if (sectionKind == SectionBase::Merge && content().size() > UINT32_MAX) in InputSectionBase()
193 Ctx &SectionBase::getCtx() const { return file->ctx; } in getCtx()
195 uint64_t SectionBase::getOffset(uint64_t offset) const { in getOffset()
230 uint64_t SectionBase::getVA(uint64_t offset) const { in getVA()
235 OutputSection *SectionBase::getOutputSection() { in getOutputSection()
382 source.addralign, source.addralign, {}, SectionBase::Spill), in PotentialSpillSection()
520 SectionBase *section = d->section; in copyRelocations()
1482 SectionBase::Merge) {} in MergeInputSection()
H A DSyntheticSections.h59 static bool classof(const SectionBase *d) { in classof()
187 static bool classof(const SectionBase *s) { in classof()
1261 static bool classof(const SectionBase *sec) { in classof()
1532 inline Partition &SectionBase::getPartition(Ctx &ctx) const { in getPartition()
H A DMapFile.cpp39 using SymbolMapTy = DenseMap<const SectionBase *,
H A DWriter.cpp148 static Defined *addOptionalRegular(Ctx &ctx, StringRef name, SectionBase *sec, in addOptionalRegular()
263 static void demoteDefined(Defined &sym, DenseMap<SectionBase *, size_t> &map) { in demoteDefined() argument
287 DenseMap<InputFile *, DenseMap<SectionBase *, size_t>> sectionIndexMap; in demoteSymbolsAndComputeIsPreemptible()
476 SectionBase *sec = d->section; in includeInSymtab()
496 DenseMap<SectionBase *, size_t> sectionIndexMap; in demoteAndCopyLocalSymbols()
1667 const SectionBase *sec = def->section; in fixSymbolsAfterShrinking()
H A DAArch64ErrataFix.cpp381 static bool classof(const SectionBase *d) { in classof()
H A DARMErrataFix.cpp81 static bool classof(const SectionBase *d) { in classof()
H A DLinkerScript.cpp234 SectionBase *sec = value.isAbsolute() ? nullptr : value.sec; in addSymbol()
287 DenseMap<const Defined *, std::pair<SectionBase *, uint64_t>>;
525 const SectionBase &outCmd) { in computeInputSections()
H A DOutputSections.cpp73 : SectionBase(Output, ctx.internalFile, name, type, flags, /*link=*/0, in OutputSection()
647 SectionBase *section = d->section; in encodeOneCrel()
H A DSymbols.cpp70 SectionBase *isec = d.section; in getSymVA()
H A DRelocations.cpp306 static void replaceWithDefined(Ctx &ctx, Symbol &sym, SectionBase &sec, in replaceWithDefined()
1714 if (s && s->kind() == SectionBase::Regular && s->isLive() && in scanRelocations()
2336 SectionBase *target) { in isThunkSectionCompatible()
H A DSyntheticSections.cpp4069 return s->kind() == SectionBase::Regular && part.armExidx && in combineEhSections()
4709 static Defined *addOptionalRegular(Ctx &ctx, StringRef name, SectionBase *sec, in addOptionalRegular()
/freebsd/contrib/llvm-project/lld/ELF/Arch/
H A DTargetImpl.h56 target->section->kind() != SectionBase::Regular) in applyBranchToBranchOptImpl()