Changeset View
Changeset View
Standalone View
Standalone View
ELF/SyntheticSections.h
Show First 20 Lines • Show All 355 Lines • ▼ Show 20 Lines | private: | ||||
uint64_t Size = 0; | uint64_t Size = 0; | ||||
}; | }; | ||||
class RelocationBaseSection : public SyntheticSection { | class RelocationBaseSection : public SyntheticSection { | ||||
public: | public: | ||||
RelocationBaseSection(StringRef Name, uint32_t Type, int32_t DynamicTag, | RelocationBaseSection(StringRef Name, uint32_t Type, int32_t DynamicTag, | ||||
int32_t SizeDynamicTag); | int32_t SizeDynamicTag); | ||||
void addReloc(uint32_t DynType, InputSectionBase *InputSec, | |||||
uint64_t OffsetInSec, bool UseSymVA, Symbol *Sym, | |||||
int64_t Addend, RelExpr Expr, RelType Type); | |||||
void addReloc(const DynamicReloc &Reloc); | void addReloc(const DynamicReloc &Reloc); | ||||
bool empty() const override { return Relocs.empty(); } | bool empty() const override { return Relocs.empty(); } | ||||
size_t getSize() const override { return Relocs.size() * this->Entsize; } | size_t getSize() const override { return Relocs.size() * this->Entsize; } | ||||
size_t getRelativeRelocCount() const { return NumRelativeRelocs; } | size_t getRelativeRelocCount() const { return NumRelativeRelocs; } | ||||
void finalizeContents() override; | void finalizeContents() override; | ||||
int32_t DynamicTag, SizeDynamicTag; | int32_t DynamicTag, SizeDynamicTag; | ||||
protected: | protected: | ||||
▲ Show 20 Lines • Show All 493 Lines • Show Last 20 Lines |