| /openbsd-src/gnu/llvm/llvm/lib/ObjCopy/ELF/ |
| H A D | ELFObject.h | 34 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 D | ELFObjcopy.cpp | 52 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 D | ELFObject.cpp | 51 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 D | InputSection.h | 47 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 D | OutputSections.h | 35 class OutputSection final : public SectionBase { 39 static bool classof(const SectionBase *s) { in classof() 40 return s->kind() == SectionBase::Output; in classof()
|
| H A D | LinkerScript.h | 33 class SectionBase; variable 39 ExprValue(SectionBase *sec, bool forceAbsolute, uint64_t val, in ExprValue() 51 SectionBase *sec;
|
| H A D | Relocations.h | 22 class SectionBase; variable 169 llvm::DenseMap<std::pair<std::pair<SectionBase *, uint64_t>, int64_t>,
|
| H A D | Symbols.h | 35 class SectionBase; variable 347 uint8_t type, uint64_t value, uint64_t size, SectionBase *section) in Defined() 365 SectionBase *section;
|
| H A D | InputSection.cpp | 56 : 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 D | SyntheticSections.h | 52 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 D | MapFile.cpp | 40 using SymbolMapTy = DenseMap<const SectionBase *,
|
| H A D | AArch64ErrataFix.cpp | 382 static bool classof(const SectionBase *d) { in classof()
|
| H A D | ARMErrataFix.cpp | 82 static bool classof(const SectionBase *d) { in classof()
|
| H A D | Symbols.cpp | 84 SectionBase *isec = d.section; in getSymVA()
|
| H A D | LinkerScript.cpp | 221 SectionBase *sec = value.isAbsolute() ? nullptr : value.sec; in addSymbol() 269 DenseMap<const Defined *, std::pair<SectionBase *, uint64_t>>;
|
| H A D | Writer.cpp | 145 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 D | OutputSections.cpp | 75 : SectionBase(Output, name, flags, /*Entsize*/ 0, /*Alignment*/ 1, type, in OutputSection()
|
| H A D | SyntheticSections.cpp | 3342 return s->kind() == SectionBase::Regular && part.armExidx && in combineEhSections()
|