diff options
Diffstat (limited to 'lld/ELF/OutputSections.h')
-rw-r--r-- | lld/ELF/OutputSections.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lld/ELF/OutputSections.h b/lld/ELF/OutputSections.h index f3266f5640d..27e6b68ab72 100644 --- a/lld/ELF/OutputSections.h +++ b/lld/ELF/OutputSections.h @@ -166,7 +166,7 @@ public: uintX_t getEntryAddr(const SymbolBody &B) const; private: - std::vector<const SymbolBody *> Entries; + std::vector<std::pair<const SymbolBody *, unsigned>> Entries; }; template <class ELFT> struct DynamicReloc { @@ -216,6 +216,7 @@ class RelocationSection final : public OutputSectionBase<ELFT> { public: RelocationSection(StringRef Name, bool IsRela); void addReloc(const DynamicReloc<ELFT> &Reloc) { Relocs.push_back(Reloc); } + unsigned getRelocOffset(); void finalize() override; void writeTo(uint8_t *Buf) override; bool hasRelocs() const { return !Relocs.empty(); } |