summaryrefslogtreecommitdiffstats
path: root/lld/ELF/OutputSections.h
diff options
context:
space:
mode:
Diffstat (limited to 'lld/ELF/OutputSections.h')
-rw-r--r--lld/ELF/OutputSections.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/lld/ELF/OutputSections.h b/lld/ELF/OutputSections.h
index 8468da5b69f..a30f9979274 100644
--- a/lld/ELF/OutputSections.h
+++ b/lld/ELF/OutputSections.h
@@ -113,9 +113,7 @@ template <class ELFT> class GotSection final : public OutputSectionBase<ELFT> {
public:
GotSection();
- void finalize() override {
- this->Header.sh_size = Entries.size() * sizeof(uintX_t);
- }
+ void finalize() override;
void writeTo(uint8_t *Buf) override;
void addEntry(SymbolBody *Sym);
bool empty() const { return Entries.empty(); }
OpenPOWER on IntegriCloud