aboutsummaryrefslogtreecommitdiff
path: root/lld/ELF/InputSection.h
diff options
context:
space:
mode:
Diffstat (limited to 'lld/ELF/InputSection.h')
-rw-r--r--lld/ELF/InputSection.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/lld/ELF/InputSection.h b/lld/ELF/InputSection.h
index 8462f03..dc29fed 100644
--- a/lld/ELF/InputSection.h
+++ b/lld/ELF/InputSection.h
@@ -394,7 +394,7 @@ public:
StringRef name);
static bool classof(const SectionBase *s) { return s->kind() == EHFrame; }
template <class ELFT> void split();
- template <class ELFT, class RelTy> void split(ArrayRef<RelTy> rels);
+ template <class ELFT, class RelTy> void preprocessRelocs(Relocs<RelTy> rels);
// Splittable sections are handled as a sequence of data
// rather than a single large blob of data.
@@ -402,6 +402,10 @@ public:
SyntheticSection *getParent() const;
uint64_t getParentOffset(uint64_t offset) const;
+
+ // Preprocessed relocations in uniform format to avoid REL/RELA/CREL
+ // relocation format handling throughout the codebase.
+ SmallVector<Relocation, 0> rels;
};
// This is a section that is added directly to an output section