blob: 65d4604cbe431735f2fb488a829e1591adf601f3 [file] [log] [blame]
Rafael Espindola5805c4f2015-09-21 21:38:08 +00001//===- OutputSections.h -----------------------------------------*- C++ -*-===//
2//
3// The LLVM Linker
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9
10#ifndef LLD_ELF_OUTPUT_SECTIONS_H
11#define LLD_ELF_OUTPUT_SECTIONS_H
12
13#include "lld/Core/LLVM.h"
14
Rafael Espindolac159c962015-10-19 21:00:02 +000015#include "llvm/ADT/MapVector.h"
Rafael Espindola5805c4f2015-09-21 21:38:08 +000016#include "llvm/MC/StringTableBuilder.h"
17#include "llvm/Object/ELF.h"
18
Davide Italiano85121bb2015-09-25 03:56:11 +000019#include "Config.h"
20
Rafael Espindola5805c4f2015-09-21 21:38:08 +000021#include <type_traits>
22
23namespace lld {
24namespace elf2 {
25
26class SymbolBody;
Rui Ueyama3ce825e2015-10-09 21:07:25 +000027template <class ELFT> class SymbolTable;
Rafael Espindola5805c4f2015-09-21 21:38:08 +000028template <class ELFT> class SymbolTableSection;
Rui Ueyamac7cc6ec2015-10-15 22:27:29 +000029template <class ELFT> class StringTableSection;
Rafael Espindola5805c4f2015-09-21 21:38:08 +000030template <class ELFT> class InputSection;
Rafael Espindolac159c962015-10-19 21:00:02 +000031template <class ELFT> class MergeInputSection;
Rafael Espindola5805c4f2015-09-21 21:38:08 +000032template <class ELFT> class OutputSection;
33template <class ELFT> class ObjectFile;
34template <class ELFT> class DefinedRegular;
Rafael Espindolacd076f02015-09-25 18:19:03 +000035template <class ELFT> class ELFSymbolBody;
Rafael Espindola5805c4f2015-09-21 21:38:08 +000036
Rafael Espindola5805c4f2015-09-21 21:38:08 +000037template <class ELFT>
Rafael Espindola932efcf2015-10-19 20:24:44 +000038static inline typename llvm::object::ELFFile<ELFT>::uintX_t
39getAddend(const typename llvm::object::ELFFile<ELFT>::Elf_Rel &Rel) {
40 return 0;
41}
Rafael Espindola5805c4f2015-09-21 21:38:08 +000042
43template <class ELFT>
Rafael Espindola932efcf2015-10-19 20:24:44 +000044static inline typename llvm::object::ELFFile<ELFT>::uintX_t
45getAddend(const typename llvm::object::ELFFile<ELFT>::Elf_Rela &Rel) {
46 return Rel.r_addend;
47}
48
49template <class ELFT>
50typename llvm::object::ELFFile<ELFT>::uintX_t getSymVA(const SymbolBody &S);
51
52template <class ELFT, bool IsRela>
Rafael Espindola5805c4f2015-09-21 21:38:08 +000053typename llvm::object::ELFFile<ELFT>::uintX_t
Rui Ueyama126d08f2015-10-12 20:28:22 +000054getLocalRelTarget(const ObjectFile<ELFT> &File,
Rafael Espindola932efcf2015-10-19 20:24:44 +000055 const llvm::object::Elf_Rel_Impl<ELFT, IsRela> &Rel);
Rafael Espindolacc6ebb82015-10-14 18:42:16 +000056bool canBePreempted(const SymbolBody *Body, bool NeedsGot);
Rafael Espindola4f674ed2015-10-05 15:24:04 +000057template <class ELFT> bool includeInSymtab(const SymbolBody &B);
58
Rafael Espindola05a3dd22015-09-22 23:38:23 +000059bool includeInDynamicSymtab(const SymbolBody &B);
Rafael Espindolad1cf4212015-10-05 16:25:43 +000060
61template <class ELFT>
62bool shouldKeepInSymtab(
Rafael Espindola444576d2015-10-09 19:25:07 +000063 const ObjectFile<ELFT> &File, StringRef Name,
64 const typename llvm::object::ELFFile<ELFT>::Elf_Sym &Sym);
Davide Italiano85121bb2015-09-25 03:56:11 +000065
Rafael Espindola71675852015-09-22 00:16:19 +000066// This represents a section in an output file.
67// Different sub classes represent different types of sections. Some contain
68// input sections, others are created by the linker.
69// The writer creates multiple OutputSections and assign them unique,
Rafael Espindola5805c4f2015-09-21 21:38:08 +000070// non-overlapping file offsets and VAs.
Rui Ueyamac7cc6ec2015-10-15 22:27:29 +000071template <class ELFT> class OutputSectionBase {
Rafael Espindola5805c4f2015-09-21 21:38:08 +000072public:
Rui Ueyamac7cc6ec2015-10-15 22:27:29 +000073 typedef typename llvm::object::ELFFile<ELFT>::uintX_t uintX_t;
74 typedef typename llvm::object::ELFFile<ELFT>::Elf_Shdr Elf_Shdr;
Rafael Espindola5805c4f2015-09-21 21:38:08 +000075
76 OutputSectionBase(StringRef Name, uint32_t sh_type, uintX_t sh_flags);
77 void setVA(uintX_t VA) { Header.sh_addr = VA; }
78 uintX_t getVA() const { return Header.sh_addr; }
79 void setFileOffset(uintX_t Off) { Header.sh_offset = Off; }
Rui Ueyamac7cc6ec2015-10-15 22:27:29 +000080 void writeHeaderTo(Elf_Shdr *SHdr);
Rafael Espindola5805c4f2015-09-21 21:38:08 +000081 StringRef getName() { return Name; }
82 void setNameOffset(uintX_t Offset) { Header.sh_name = Offset; }
83
Rui Ueyama2317d0d2015-10-15 20:55:22 +000084 unsigned SectionIndex;
Rafael Espindola5805c4f2015-09-21 21:38:08 +000085
86 // Returns the size of the section in the output file.
Rafael Espindola77572242015-10-02 19:37:55 +000087 uintX_t getSize() const { return Header.sh_size; }
Rafael Espindola5805c4f2015-09-21 21:38:08 +000088 void setSize(uintX_t Val) { Header.sh_size = Val; }
89 uintX_t getFlags() { return Header.sh_flags; }
90 uintX_t getFileOff() { return Header.sh_offset; }
91 uintX_t getAlign() {
92 // The ELF spec states that a value of 0 means the section has no alignment
93 // constraits.
94 return std::max<uintX_t>(Header.sh_addralign, 1);
95 }
96 uint32_t getType() { return Header.sh_type; }
97
Rafael Espindola5805c4f2015-09-21 21:38:08 +000098 virtual void finalize() {}
99 virtual void writeTo(uint8_t *Buf) = 0;
100
101protected:
102 StringRef Name;
Rui Ueyamac7cc6ec2015-10-15 22:27:29 +0000103 Elf_Shdr Header;
Rafael Espindola5805c4f2015-09-21 21:38:08 +0000104 ~OutputSectionBase() = default;
105};
106
Rui Ueyamac7cc6ec2015-10-15 22:27:29 +0000107template <class ELFT> class GotSection final : public OutputSectionBase<ELFT> {
108 typedef OutputSectionBase<ELFT> Base;
Rafael Espindola5805c4f2015-09-21 21:38:08 +0000109 typedef typename Base::uintX_t uintX_t;
110
111public:
Rui Ueyama15ef5e12015-10-07 19:18:16 +0000112 GotSection();
Rafael Espindola5805c4f2015-09-21 21:38:08 +0000113 void finalize() override {
Rui Ueyama5f551ae2015-10-14 14:02:06 +0000114 this->Header.sh_size = Entries.size() * sizeof(uintX_t);
Rafael Espindola5805c4f2015-09-21 21:38:08 +0000115 }
Rafael Espindolaa6627382015-10-06 23:56:53 +0000116 void writeTo(uint8_t *Buf) override;
Rafael Espindola5805c4f2015-09-21 21:38:08 +0000117 void addEntry(SymbolBody *Sym);
118 bool empty() const { return Entries.empty(); }
119 uintX_t getEntryAddr(const SymbolBody &B) const;
120
121private:
122 std::vector<const SymbolBody *> Entries;
123};
124
George Rimar648a2c32015-10-20 08:54:27 +0000125template <class ELFT>
126class GotPltSection final : public OutputSectionBase<ELFT> {
127 typedef typename llvm::object::ELFFile<ELFT>::uintX_t uintX_t;
128
129public:
130 GotPltSection();
131 void finalize() override;
132 void writeTo(uint8_t *Buf) override;
133 void addEntry(SymbolBody *Sym);
134 bool empty() const;
135 uintX_t getEntryAddr(const SymbolBody &B) const;
136
137private:
138 std::vector<const SymbolBody *> Entries;
139};
140
Rui Ueyamac7cc6ec2015-10-15 22:27:29 +0000141template <class ELFT> class PltSection final : public OutputSectionBase<ELFT> {
142 typedef OutputSectionBase<ELFT> Base;
Rafael Espindola5805c4f2015-09-21 21:38:08 +0000143 typedef typename Base::uintX_t uintX_t;
144
145public:
Rui Ueyama15ef5e12015-10-07 19:18:16 +0000146 PltSection();
Hal Finkel6c2a3b82015-10-08 21:51:31 +0000147 void finalize() override;
Rafael Espindola5805c4f2015-09-21 21:38:08 +0000148 void writeTo(uint8_t *Buf) override;
149 void addEntry(SymbolBody *Sym);
150 bool empty() const { return Entries.empty(); }
151 uintX_t getEntryAddr(const SymbolBody &B) const;
Rafael Espindola5805c4f2015-09-21 21:38:08 +0000152
153private:
154 std::vector<const SymbolBody *> Entries;
Rafael Espindola5805c4f2015-09-21 21:38:08 +0000155};
156
157template <class ELFT> struct DynamicReloc {
158 typedef typename llvm::object::ELFFile<ELFT>::Elf_Rel Elf_Rel;
159 const InputSection<ELFT> &C;
160 const Elf_Rel &RI;
161};
162
163template <class ELFT>
Rui Ueyamac7cc6ec2015-10-15 22:27:29 +0000164class SymbolTableSection final : public OutputSectionBase<ELFT> {
Rafael Espindola5805c4f2015-09-21 21:38:08 +0000165public:
166 typedef typename llvm::object::ELFFile<ELFT>::Elf_Shdr Elf_Shdr;
167 typedef typename llvm::object::ELFFile<ELFT>::Elf_Sym Elf_Sym;
168 typedef typename llvm::object::ELFFile<ELFT>::Elf_Sym_Range Elf_Sym_Range;
Rui Ueyamac7cc6ec2015-10-15 22:27:29 +0000169 typedef typename llvm::object::ELFFile<ELFT>::uintX_t uintX_t;
Rui Ueyama3ce825e2015-10-09 21:07:25 +0000170 SymbolTableSection(SymbolTable<ELFT> &Table,
Rui Ueyamac7cc6ec2015-10-15 22:27:29 +0000171 StringTableSection<ELFT> &StrTabSec);
Rafael Espindola5805c4f2015-09-21 21:38:08 +0000172
Rui Ueyama0db335f2015-10-07 16:58:54 +0000173 void finalize() override;
Rafael Espindola5805c4f2015-09-21 21:38:08 +0000174 void writeTo(uint8_t *Buf) override;
Igor Kudrinab665fc2015-10-20 21:47:58 +0000175 void addLocalSymbol(StringRef Name);
176 void addSymbol(SymbolBody *Body);
Rui Ueyamac7cc6ec2015-10-15 22:27:29 +0000177 StringTableSection<ELFT> &getStrTabSec() const { return StrTabSec; }
Rafael Espindola5805c4f2015-09-21 21:38:08 +0000178 unsigned getNumSymbols() const { return NumVisible + 1; }
Rafael Espindola5805c4f2015-09-21 21:38:08 +0000179
Igor Kudrinab665fc2015-10-20 21:47:58 +0000180 ArrayRef<SymbolBody *> getSymbols() const { return Symbols; }
181
Rafael Espindola5805c4f2015-09-21 21:38:08 +0000182private:
Rui Ueyama8ddfa812015-09-30 00:32:10 +0000183 void writeLocalSymbols(uint8_t *&Buf);
Igor Kudrinea6a8352015-10-19 08:01:51 +0000184 void writeGlobalSymbols(uint8_t *Buf);
Rui Ueyama8ddfa812015-09-30 00:32:10 +0000185
Igor Kudrin853b88d2015-10-20 20:52:14 +0000186 static uint8_t getSymbolBinding(SymbolBody *Body);
187
Rui Ueyama3ce825e2015-10-09 21:07:25 +0000188 SymbolTable<ELFT> &Table;
Rui Ueyamac7cc6ec2015-10-15 22:27:29 +0000189 StringTableSection<ELFT> &StrTabSec;
Igor Kudrinab665fc2015-10-20 21:47:58 +0000190 std::vector<SymbolBody *> Symbols;
Rafael Espindola5805c4f2015-09-21 21:38:08 +0000191 unsigned NumVisible = 0;
192 unsigned NumLocals = 0;
Rafael Espindola5805c4f2015-09-21 21:38:08 +0000193};
194
195template <class ELFT>
Rui Ueyamac7cc6ec2015-10-15 22:27:29 +0000196class RelocationSection final : public OutputSectionBase<ELFT> {
Rafael Espindola5805c4f2015-09-21 21:38:08 +0000197 typedef typename llvm::object::ELFFile<ELFT>::Elf_Rel Elf_Rel;
198 typedef typename llvm::object::ELFFile<ELFT>::Elf_Rela Elf_Rela;
Rafael Espindola3c83e2b2015-10-05 21:09:37 +0000199 typedef typename llvm::object::ELFFile<ELFT>::uintX_t uintX_t;
Rafael Espindola5805c4f2015-09-21 21:38:08 +0000200
201public:
George Rimar648a2c32015-10-20 08:54:27 +0000202 RelocationSection(StringRef Name, bool IsRela);
Rafael Espindola5805c4f2015-09-21 21:38:08 +0000203 void addReloc(const DynamicReloc<ELFT> &Reloc) { Relocs.push_back(Reloc); }
204 void finalize() override;
205 void writeTo(uint8_t *Buf) override;
206 bool hasRelocs() const { return !Relocs.empty(); }
207 bool isRela() const { return IsRela; }
208
209private:
210 std::vector<DynamicReloc<ELFT>> Relocs;
Rafael Espindola5805c4f2015-09-21 21:38:08 +0000211 const bool IsRela;
212};
213
214template <class ELFT>
Rui Ueyamac7cc6ec2015-10-15 22:27:29 +0000215class OutputSection final : public OutputSectionBase<ELFT> {
Rafael Espindola5805c4f2015-09-21 21:38:08 +0000216public:
Rafael Espindola5805c4f2015-09-21 21:38:08 +0000217 typedef typename llvm::object::ELFFile<ELFT>::Elf_Shdr Elf_Shdr;
218 typedef typename llvm::object::ELFFile<ELFT>::Elf_Sym Elf_Sym;
219 typedef typename llvm::object::ELFFile<ELFT>::Elf_Rel Elf_Rel;
220 typedef typename llvm::object::ELFFile<ELFT>::Elf_Rela Elf_Rela;
Rui Ueyamac7cc6ec2015-10-15 22:27:29 +0000221 typedef typename llvm::object::ELFFile<ELFT>::uintX_t uintX_t;
Rui Ueyama15ef5e12015-10-07 19:18:16 +0000222 OutputSection(StringRef Name, uint32_t sh_type, uintX_t sh_flags);
Rafael Espindola71675852015-09-22 00:16:19 +0000223 void addSection(InputSection<ELFT> *C);
Rafael Espindola5805c4f2015-09-21 21:38:08 +0000224 void writeTo(uint8_t *Buf) override;
225
Rafael Espindola5805c4f2015-09-21 21:38:08 +0000226private:
Rafael Espindola71675852015-09-22 00:16:19 +0000227 std::vector<InputSection<ELFT> *> Sections;
Rafael Espindola5805c4f2015-09-21 21:38:08 +0000228};
229
Rui Ueyamac7cc6ec2015-10-15 22:27:29 +0000230template <class ELFT>
Rafael Espindolac159c962015-10-19 21:00:02 +0000231class MergeOutputSection final : public OutputSectionBase<ELFT> {
232 typedef typename OutputSectionBase<ELFT>::uintX_t uintX_t;
233
234public:
235 MergeOutputSection(StringRef Name, uint32_t sh_type, uintX_t sh_flags);
236 void addSection(MergeInputSection<ELFT> *S);
237 void writeTo(uint8_t *Buf) override;
238
239 unsigned getOffset(ArrayRef<uint8_t> Val);
240
241private:
242 // This map is used to find if we already have an entry for a given value and,
243 // if so, at what offset it is.
244 llvm::MapVector<ArrayRef<uint8_t>, uintX_t> Offsets;
245};
246
247template <class ELFT>
Rui Ueyamac7cc6ec2015-10-15 22:27:29 +0000248class InterpSection final : public OutputSectionBase<ELFT> {
Rafael Espindola5805c4f2015-09-21 21:38:08 +0000249public:
250 InterpSection();
Rafael Espindola5805c4f2015-09-21 21:38:08 +0000251 void writeTo(uint8_t *Buf);
252};
253
Rui Ueyamac7cc6ec2015-10-15 22:27:29 +0000254template <class ELFT>
255class StringTableSection final : public OutputSectionBase<ELFT> {
Rafael Espindola5805c4f2015-09-21 21:38:08 +0000256public:
Rui Ueyamac7cc6ec2015-10-15 22:27:29 +0000257 typedef typename llvm::object::ELFFile<ELFT>::uintX_t uintX_t;
George Rimar0f5ac9f2015-10-20 17:21:35 +0000258 StringTableSection(StringRef Name, bool Dynamic);
Rafael Espindola5805c4f2015-09-21 21:38:08 +0000259 void add(StringRef S) { StrTabBuilder.add(S); }
260 size_t getFileOff(StringRef S) const { return StrTabBuilder.getOffset(S); }
261 StringRef data() const { return StrTabBuilder.data(); }
262 void writeTo(uint8_t *Buf) override;
263
264 void finalize() override {
265 StrTabBuilder.finalize(llvm::StringTableBuilder::ELF);
266 this->Header.sh_size = StrTabBuilder.data().size();
267 }
268
269 bool isDynamic() const { return Dynamic; }
270
271private:
272 const bool Dynamic;
273 llvm::StringTableBuilder StrTabBuilder;
274};
275
276template <class ELFT>
Rui Ueyamac7cc6ec2015-10-15 22:27:29 +0000277class HashTableSection final : public OutputSectionBase<ELFT> {
Rafael Espindola5805c4f2015-09-21 21:38:08 +0000278 typedef typename llvm::object::ELFFile<ELFT>::Elf_Word Elf_Word;
279
280public:
Rui Ueyama15ef5e12015-10-07 19:18:16 +0000281 HashTableSection();
Rui Ueyama0db335f2015-10-07 16:58:54 +0000282 void finalize() override;
283 void writeTo(uint8_t *Buf) override;
Rafael Espindola5805c4f2015-09-21 21:38:08 +0000284};
285
286template <class ELFT>
Rui Ueyamac7cc6ec2015-10-15 22:27:29 +0000287class DynamicSection final : public OutputSectionBase<ELFT> {
288 typedef OutputSectionBase<ELFT> Base;
289 typedef typename llvm::object::ELFFile<ELFT>::Elf_Dyn Elf_Dyn;
Rui Ueyama2dfd74f2015-09-30 21:57:53 +0000290 typedef typename llvm::object::ELFFile<ELFT>::Elf_Rel Elf_Rel;
291 typedef typename llvm::object::ELFFile<ELFT>::Elf_Rela Elf_Rela;
Rui Ueyamac7cc6ec2015-10-15 22:27:29 +0000292 typedef typename llvm::object::ELFFile<ELFT>::Elf_Shdr Elf_Shdr;
Rui Ueyama2dfd74f2015-09-30 21:57:53 +0000293 typedef typename llvm::object::ELFFile<ELFT>::Elf_Sym Elf_Sym;
Rafael Espindola5805c4f2015-09-21 21:38:08 +0000294
295public:
Rui Ueyama3ce825e2015-10-09 21:07:25 +0000296 DynamicSection(SymbolTable<ELFT> &SymTab);
Rafael Espindola5805c4f2015-09-21 21:38:08 +0000297 void finalize() override;
298 void writeTo(uint8_t *Buf) override;
299
Rui Ueyamac7cc6ec2015-10-15 22:27:29 +0000300 OutputSectionBase<ELFT> *PreInitArraySec = nullptr;
301 OutputSectionBase<ELFT> *InitArraySec = nullptr;
302 OutputSectionBase<ELFT> *FiniArraySec = nullptr;
Rafael Espindola77572242015-10-02 19:37:55 +0000303
Rafael Espindola5805c4f2015-09-21 21:38:08 +0000304private:
Rui Ueyama3ce825e2015-10-09 21:07:25 +0000305 SymbolTable<ELFT> &SymTab;
Igor Kudrinb1f2b512015-10-05 10:29:46 +0000306 const ELFSymbolBody<ELFT> *InitSym = nullptr;
307 const ELFSymbolBody<ELFT> *FiniSym = nullptr;
Rafael Espindola5805c4f2015-09-21 21:38:08 +0000308};
Rui Ueyama15ef5e12015-10-07 19:18:16 +0000309
310// All output sections that are hadnled by the linker specially are
311// globally accessible. Writer initializes them, so don't use them
312// until Writer is initialized.
313template <class ELFT> struct Out {
314 static DynamicSection<ELFT> *Dynamic;
George Rimar648a2c32015-10-20 08:54:27 +0000315 static GotPltSection<ELFT> *GotPlt;
Rui Ueyama15ef5e12015-10-07 19:18:16 +0000316 static GotSection<ELFT> *Got;
317 static HashTableSection<ELFT> *HashTab;
Rui Ueyamac7cc6ec2015-10-15 22:27:29 +0000318 static InterpSection<ELFT> *Interp;
Rui Ueyama15ef5e12015-10-07 19:18:16 +0000319 static OutputSection<ELFT> *Bss;
Rui Ueyamac7cc6ec2015-10-15 22:27:29 +0000320 static OutputSectionBase<ELFT> *Opd;
Hal Finkeldaedc122015-10-12 23:16:53 +0000321 static uint8_t *OpdBuf;
Rui Ueyama15ef5e12015-10-07 19:18:16 +0000322 static PltSection<ELFT> *Plt;
323 static RelocationSection<ELFT> *RelaDyn;
George Rimar648a2c32015-10-20 08:54:27 +0000324 static RelocationSection<ELFT> *RelaPlt;
Rui Ueyamac7cc6ec2015-10-15 22:27:29 +0000325 static StringTableSection<ELFT> *DynStrTab;
George Rimar0f5ac9f2015-10-20 17:21:35 +0000326 static StringTableSection<ELFT> *ShStrTab;
Rui Ueyamac7cc6ec2015-10-15 22:27:29 +0000327 static StringTableSection<ELFT> *StrTab;
Rui Ueyama15ef5e12015-10-07 19:18:16 +0000328 static SymbolTableSection<ELFT> *DynSymTab;
329 static SymbolTableSection<ELFT> *SymTab;
330};
Rui Ueyamad888d102015-10-09 19:34:55 +0000331
332template <class ELFT> DynamicSection<ELFT> *Out<ELFT>::Dynamic;
George Rimar648a2c32015-10-20 08:54:27 +0000333template <class ELFT> GotPltSection<ELFT> *Out<ELFT>::GotPlt;
Rui Ueyamad888d102015-10-09 19:34:55 +0000334template <class ELFT> GotSection<ELFT> *Out<ELFT>::Got;
335template <class ELFT> HashTableSection<ELFT> *Out<ELFT>::HashTab;
Rui Ueyamac7cc6ec2015-10-15 22:27:29 +0000336template <class ELFT> InterpSection<ELFT> *Out<ELFT>::Interp;
Rui Ueyamad888d102015-10-09 19:34:55 +0000337template <class ELFT> OutputSection<ELFT> *Out<ELFT>::Bss;
Rui Ueyamac7cc6ec2015-10-15 22:27:29 +0000338template <class ELFT> OutputSectionBase<ELFT> *Out<ELFT>::Opd;
Hal Finkeldaedc122015-10-12 23:16:53 +0000339template <class ELFT> uint8_t *Out<ELFT>::OpdBuf;
Rui Ueyamad888d102015-10-09 19:34:55 +0000340template <class ELFT> PltSection<ELFT> *Out<ELFT>::Plt;
341template <class ELFT> RelocationSection<ELFT> *Out<ELFT>::RelaDyn;
George Rimar648a2c32015-10-20 08:54:27 +0000342template <class ELFT> RelocationSection<ELFT> *Out<ELFT>::RelaPlt;
Rui Ueyamac7cc6ec2015-10-15 22:27:29 +0000343template <class ELFT> StringTableSection<ELFT> *Out<ELFT>::DynStrTab;
George Rimar0f5ac9f2015-10-20 17:21:35 +0000344template <class ELFT> StringTableSection<ELFT> *Out<ELFT>::ShStrTab;
Rui Ueyamac7cc6ec2015-10-15 22:27:29 +0000345template <class ELFT> StringTableSection<ELFT> *Out<ELFT>::StrTab;
Rui Ueyamad888d102015-10-09 19:34:55 +0000346template <class ELFT> SymbolTableSection<ELFT> *Out<ELFT>::DynSymTab;
347template <class ELFT> SymbolTableSection<ELFT> *Out<ELFT>::SymTab;
Rafael Espindola5805c4f2015-09-21 21:38:08 +0000348}
349}
350#endif