blob: f59132a609384c43ef315da1cb1b12ef0345986d [file] [log] [blame]
Michael J. Spencer84487f12015-07-24 21:03:07 +00001//===- Symbols.cpp --------------------------------------------------------===//
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#include "Symbols.h"
Rafael Espindola49a2ca62015-08-06 15:33:19 +000011#include "Error.h"
Michael J. Spencercdae0a42015-07-28 22:58:25 +000012#include "InputFiles.h"
Rui Ueyamab5a69702016-02-01 21:00:35 +000013#include "InputSection.h"
14#include "OutputSections.h"
15#include "Target.h"
Michael J. Spencer84487f12015-07-24 21:03:07 +000016
Michael J. Spencer1b348a62015-09-04 22:28:10 +000017#include "llvm/ADT/STLExtras.h"
Eugene Leviantc958d8d2016-10-12 08:19:30 +000018#include "llvm/Support/Path.h"
Michael J. Spencer1b348a62015-09-04 22:28:10 +000019
20using namespace llvm;
Michael J. Spencer84487f12015-07-24 21:03:07 +000021using namespace llvm::object;
Rafael Espindola78471f02015-09-01 23:12:52 +000022using namespace llvm::ELF;
Michael J. Spencer84487f12015-07-24 21:03:07 +000023
24using namespace lld;
Rafael Espindolae0df00b2016-02-28 00:25:54 +000025using namespace lld::elf;
Michael J. Spencer84487f12015-07-24 21:03:07 +000026
Rui Ueyamab5a69702016-02-01 21:00:35 +000027template <class ELFT>
Rui Ueyama9328b2c2016-03-14 23:16:09 +000028static typename ELFT::uint getSymVA(const SymbolBody &Body,
29 typename ELFT::uint &Addend) {
Rui Ueyama9328b2c2016-03-14 23:16:09 +000030 typedef typename ELFT::uint uintX_t;
Rafael Espindola87d9f102016-03-11 12:19:05 +000031
32 switch (Body.kind()) {
33 case SymbolBody::DefinedSyntheticKind: {
34 auto &D = cast<DefinedSynthetic<ELFT>>(Body);
Peter Collingbourne6a422592016-05-03 01:21:08 +000035 const OutputSectionBase<ELFT> *Sec = D.Section;
36 if (!Sec)
37 return D.Value;
Simon Atanasyan13f6da12016-03-31 21:26:23 +000038 if (D.Value == DefinedSynthetic<ELFT>::SectionEnd)
Peter Collingbourne6a422592016-05-03 01:21:08 +000039 return Sec->getVA() + Sec->getSize();
40 return Sec->getVA() + D.Value;
Rui Ueyamab5a69702016-02-01 21:00:35 +000041 }
Rafael Espindola87d9f102016-03-11 12:19:05 +000042 case SymbolBody::DefinedRegularKind: {
43 auto &D = cast<DefinedRegular<ELFT>>(Body);
44 InputSectionBase<ELFT> *SC = D.Section;
Rui Ueyamab5a69702016-02-01 21:00:35 +000045
Rafael Espindolaccfe3cb2016-04-04 14:04:16 +000046 // According to the ELF spec reference to a local symbol from outside
47 // the group are not allowed. Unfortunately .eh_frame breaks that rule
48 // and must be treated specially. For now we just replace the symbol with
49 // 0.
50 if (SC == &InputSection<ELFT>::Discarded)
51 return 0;
52
Rui Ueyamab5a69702016-02-01 21:00:35 +000053 // This is an absolute symbol.
54 if (!SC)
Rafael Espindolaccfe3cb2016-04-04 14:04:16 +000055 return D.Value;
Rui Ueyamab5a69702016-02-01 21:00:35 +000056
Rafael Espindolaccfe3cb2016-04-04 14:04:16 +000057 uintX_t Offset = D.Value;
58 if (D.isSection()) {
Rafael Espindola1f5b70f2016-03-11 14:21:37 +000059 Offset += Addend;
60 Addend = 0;
61 }
Eugene Leviantceabe802016-08-11 07:56:43 +000062 uintX_t VA = (SC->OutSec ? SC->OutSec->getVA() : 0) + SC->getOffset(Offset);
George Rimar6a3b1542016-10-04 08:52:51 +000063 if (D.isTls() && !Config->Relocatable) {
64 if (!Out<ELFT>::TlsPhdr)
65 fatal(getFilename(D.File) +
66 " has a STT_TLS symbol but doesn't have a PT_TLS section");
Rafael Espindola1f5b70f2016-03-11 14:21:37 +000067 return VA - Out<ELFT>::TlsPhdr->p_vaddr;
George Rimar6a3b1542016-10-04 08:52:51 +000068 }
Rafael Espindola1f5b70f2016-03-11 14:21:37 +000069 return VA;
Rui Ueyamab5a69702016-02-01 21:00:35 +000070 }
Rui Ueyama07784902016-08-02 01:35:13 +000071 case SymbolBody::DefinedCommonKind:
Rafael Espindola0e090522016-10-26 00:54:03 +000072 return InputSection<ELFT>::CommonInputSection->OutSec->getVA() +
73 InputSection<ELFT>::CommonInputSection->OutSecOff +
Rafael Espindolae7553e42016-08-31 13:28:33 +000074 cast<DefinedCommon>(Body).Offset;
Rafael Espindola87d9f102016-03-11 12:19:05 +000075 case SymbolBody::SharedKind: {
76 auto &SS = cast<SharedSymbol<ELFT>>(Body);
77 if (!SS.NeedsCopyOrPltAddr)
Rafael Espindolaa0a65f92016-02-09 15:11:01 +000078 return 0;
Rafael Espindolaccfe3cb2016-04-04 14:04:16 +000079 if (SS.isFunc())
Rafael Espindola87d9f102016-03-11 12:19:05 +000080 return Body.getPltVA<ELFT>();
Rui Ueyama2df72892016-03-13 20:54:38 +000081 return Out<ELFT>::Bss->getVA() + SS.OffsetInBss;
Rui Ueyamab5a69702016-02-01 21:00:35 +000082 }
Peter Collingbourne60976ed2016-04-27 00:05:06 +000083 case SymbolBody::UndefinedKind:
Rui Ueyamab5a69702016-02-01 21:00:35 +000084 return 0;
Rui Ueyamaf8baa662016-04-07 19:24:51 +000085 case SymbolBody::LazyArchiveKind:
86 case SymbolBody::LazyObjectKind:
Peter Collingbourne4f952702016-05-01 04:55:03 +000087 assert(Body.symbol()->IsUsedInRegularObj && "lazy symbol reached writer");
Rui Ueyamab5a69702016-02-01 21:00:35 +000088 return 0;
89 }
George Rimar777f9632016-03-12 08:31:34 +000090 llvm_unreachable("invalid symbol kind");
Rui Ueyamab5a69702016-02-01 21:00:35 +000091}
92
Rui Ueyamab5792b22016-04-04 19:09:08 +000093SymbolBody::SymbolBody(Kind K, uint32_t NameOffset, uint8_t StOther,
94 uint8_t Type)
Simon Atanasyan41325112016-06-19 21:39:37 +000095 : SymbolKind(K), NeedsCopyOrPltAddr(false), IsLocal(true),
Simon Atanasyanbed04bf2016-10-21 07:22:30 +000096 IsInGlobalMipsGot(false), Is32BitMipsGot(false), Type(Type),
97 StOther(StOther), NameOffset(NameOffset) {}
Rafael Espindolaf4765732016-04-06 13:22:41 +000098
Peter Collingbourne4f952702016-05-01 04:55:03 +000099SymbolBody::SymbolBody(Kind K, StringRef Name, uint8_t StOther, uint8_t Type)
Simon Atanasyan41325112016-06-19 21:39:37 +0000100 : SymbolKind(K), NeedsCopyOrPltAddr(false), IsLocal(false),
Simon Atanasyanbed04bf2016-10-21 07:22:30 +0000101 IsInGlobalMipsGot(false), Is32BitMipsGot(false), Type(Type),
102 StOther(StOther), Name({Name.data(), Name.size()}) {}
Rafael Espindolaccfe3cb2016-04-04 14:04:16 +0000103
George Rimar43651582016-06-28 08:21:10 +0000104StringRef SymbolBody::getName() const {
105 assert(!isLocal());
Rui Ueyama663b8c22016-07-17 17:23:17 +0000106 return StringRef(Name.S, Name.Len);
107}
108
Rui Ueyamac4466602016-03-13 19:48:18 +0000109// Returns true if a symbol can be replaced at load-time by a symbol
110// with the same name defined in other ELF executable or DSO.
111bool SymbolBody::isPreemptible() const {
112 if (isLocal())
113 return false;
114
Rafael Espindola66434562016-05-05 19:41:49 +0000115 // Shared symbols resolve to the definition in the DSO. The exceptions are
116 // symbols with copy relocations (which resolve to .bss) or preempt plt
117 // entries (which resolve to that plt entry).
Rui Ueyamac4466602016-03-13 19:48:18 +0000118 if (isShared())
Rafael Espindola66434562016-05-05 19:41:49 +0000119 return !NeedsCopyOrPltAddr;
Rui Ueyamac4466602016-03-13 19:48:18 +0000120
Peter Collingbourne66ac1d62016-04-22 20:21:26 +0000121 // That's all that can be preempted in a non-DSO.
Rui Ueyamac4466602016-03-13 19:48:18 +0000122 if (!Config->Shared)
123 return false;
Peter Collingbourne66ac1d62016-04-22 20:21:26 +0000124
Peter Collingbournedbe41872016-04-24 04:29:59 +0000125 // Only symbols that appear in dynsym can be preempted.
Peter Collingbourne4f952702016-05-01 04:55:03 +0000126 if (!symbol()->includeInDynsym())
Rui Ueyamac4466602016-03-13 19:48:18 +0000127 return false;
Peter Collingbourne66ac1d62016-04-22 20:21:26 +0000128
Rafael Espindola580d7a12016-07-07 22:50:54 +0000129 // Only default visibility symbols can be preempted.
130 if (symbol()->Visibility != STV_DEFAULT)
131 return false;
132
133 // -Bsymbolic means that definitions are not preempted.
Peter Collingbournedbe41872016-04-24 04:29:59 +0000134 if (Config->Bsymbolic || (Config->BsymbolicFunctions && isFunc()))
135 return !isDefined();
Rafael Espindola580d7a12016-07-07 22:50:54 +0000136 return true;
Rui Ueyamac4466602016-03-13 19:48:18 +0000137}
138
Peter Smithfb05cd92016-07-08 16:10:27 +0000139template <class ELFT> bool SymbolBody::hasThunk() const {
140 if (auto *DR = dyn_cast<DefinedRegular<ELFT>>(this))
141 return DR->ThunkData != nullptr;
142 if (auto *S = dyn_cast<SharedSymbol<ELFT>>(this))
143 return S->ThunkData != nullptr;
144 return false;
145}
146
Rui Ueyamab5a69702016-02-01 21:00:35 +0000147template <class ELFT>
Rui Ueyama9328b2c2016-03-14 23:16:09 +0000148typename ELFT::uint SymbolBody::getVA(typename ELFT::uint Addend) const {
Rafael Espindola8381c562016-03-17 23:36:19 +0000149 typename ELFT::uint OutVA = getSymVA<ELFT>(*this, Addend);
150 return OutVA + Addend;
Rafael Espindola87d9f102016-03-11 12:19:05 +0000151}
152
Rui Ueyama9328b2c2016-03-14 23:16:09 +0000153template <class ELFT> typename ELFT::uint SymbolBody::getGotVA() const {
Rafael Espindola74031ba2016-04-07 15:20:56 +0000154 return Out<ELFT>::Got->getVA() + getGotOffset<ELFT>();
155}
156
157template <class ELFT> typename ELFT::uint SymbolBody::getGotOffset() const {
Rui Ueyama803b1202016-07-13 18:55:14 +0000158 return GotIndex * Target->GotEntrySize;
Rui Ueyamab5a69702016-02-01 21:00:35 +0000159}
160
Rui Ueyama9328b2c2016-03-14 23:16:09 +0000161template <class ELFT> typename ELFT::uint SymbolBody::getGotPltVA() const {
Rafael Espindola74031ba2016-04-07 15:20:56 +0000162 return Out<ELFT>::GotPlt->getVA() + getGotPltOffset<ELFT>();
163}
164
165template <class ELFT> typename ELFT::uint SymbolBody::getGotPltOffset() const {
Rui Ueyama803b1202016-07-13 18:55:14 +0000166 return GotPltIndex * Target->GotPltEntrySize;
Rui Ueyamab5a69702016-02-01 21:00:35 +0000167}
168
Rui Ueyama9328b2c2016-03-14 23:16:09 +0000169template <class ELFT> typename ELFT::uint SymbolBody::getPltVA() const {
Rui Ueyama4a90f572016-06-16 16:28:50 +0000170 return Out<ELFT>::Plt->getVA() + Target->PltHeaderSize +
Rui Ueyamab5a69702016-02-01 21:00:35 +0000171 PltIndex * Target->PltEntrySize;
172}
173
Simon Atanasyan13f6da12016-03-31 21:26:23 +0000174template <class ELFT> typename ELFT::uint SymbolBody::getThunkVA() const {
Peter Smithfb05cd92016-07-08 16:10:27 +0000175 if (const auto *DR = dyn_cast<DefinedRegular<ELFT>>(this))
176 return DR->ThunkData->getVA();
177 if (const auto *S = dyn_cast<SharedSymbol<ELFT>>(this))
178 return S->ThunkData->getVA();
179 fatal("getThunkVA() not supported for Symbol class\n");
Simon Atanasyan13f6da12016-03-31 21:26:23 +0000180}
181
Rui Ueyama9328b2c2016-03-14 23:16:09 +0000182template <class ELFT> typename ELFT::uint SymbolBody::getSize() const {
Rafael Espindolae7553e42016-08-31 13:28:33 +0000183 if (const auto *C = dyn_cast<DefinedCommon>(this))
Rafael Espindolaccfe3cb2016-04-04 14:04:16 +0000184 return C->Size;
185 if (const auto *DR = dyn_cast<DefinedRegular<ELFT>>(this))
186 return DR->Size;
187 if (const auto *S = dyn_cast<SharedSymbol<ELFT>>(this))
188 return S->Sym.st_size;
Rui Ueyama512c61d2016-02-03 00:12:24 +0000189 return 0;
190}
191
Peter Collingbourne4f952702016-05-01 04:55:03 +0000192Defined::Defined(Kind K, StringRef Name, uint8_t StOther, uint8_t Type)
193 : SymbolBody(K, Name, StOther, Type) {}
Rafael Espindolaccfe3cb2016-04-04 14:04:16 +0000194
Rafael Espindolaf9b79a42016-04-06 12:14:31 +0000195Defined::Defined(Kind K, uint32_t NameOffset, uint8_t StOther, uint8_t Type)
196 : SymbolBody(K, NameOffset, StOther, Type) {}
Rafael Espindola4d4b06a2015-12-24 00:47:42 +0000197
Simon Atanasyanf967f092016-09-29 12:58:36 +0000198template <class ELFT> bool DefinedRegular<ELFT>::isMipsPIC() const {
199 if (!Section || !isFunc())
200 return false;
201 return (this->StOther & STO_MIPS_MIPS16) == STO_MIPS_PIC ||
202 (Section->getFile()->getObj().getHeader()->e_flags & EF_MIPS_PIC);
203}
204
Rui Ueyama434b5612016-07-17 03:11:46 +0000205Undefined::Undefined(StringRef Name, uint8_t StOther, uint8_t Type,
206 InputFile *File)
207 : SymbolBody(SymbolBody::UndefinedKind, Name, StOther, Type) {
208 this->File = File;
209}
Rafael Espindola5d7593b2015-12-22 23:00:50 +0000210
Rui Ueyama434b5612016-07-17 03:11:46 +0000211Undefined::Undefined(uint32_t NameOffset, uint8_t StOther, uint8_t Type,
212 InputFile *File)
213 : SymbolBody(SymbolBody::UndefinedKind, NameOffset, StOther, Type) {
214 this->File = File;
215}
Rafael Espindola5d7593b2015-12-22 23:00:50 +0000216
Rafael Espindola4d4b06a2015-12-24 00:47:42 +0000217template <typename ELFT>
218DefinedSynthetic<ELFT>::DefinedSynthetic(StringRef N, uintX_t Value,
Peter Collingbourne6a422592016-05-03 01:21:08 +0000219 OutputSectionBase<ELFT> *Section)
Peter Collingbourne4f952702016-05-01 04:55:03 +0000220 : Defined(SymbolBody::DefinedSyntheticKind, N, STV_HIDDEN, 0 /* Type */),
Rafael Espindola4d4b06a2015-12-24 00:47:42 +0000221 Value(Value), Section(Section) {}
222
Rafael Espindolae7553e42016-08-31 13:28:33 +0000223DefinedCommon::DefinedCommon(StringRef N, uint64_t Size, uint64_t Alignment,
224 uint8_t StOther, uint8_t Type, InputFile *File)
Peter Collingbourne4f952702016-05-01 04:55:03 +0000225 : Defined(SymbolBody::DefinedCommonKind, N, StOther, Type),
Rui Ueyama2a7c1c12016-07-17 17:36:22 +0000226 Alignment(Alignment), Size(Size) {
227 this->File = File;
228}
Rafael Espindola11191912015-12-24 16:23:37 +0000229
Rui Ueyama55518e72016-10-28 20:57:25 +0000230InputFile *Lazy::fetch() {
Rui Ueyamaf8baa662016-04-07 19:24:51 +0000231 if (auto *S = dyn_cast<LazyArchive>(this))
Rui Ueyama55518e72016-10-28 20:57:25 +0000232 return S->fetch();
233 return cast<LazyObject>(this)->fetch();
Rui Ueyamaf8baa662016-04-07 19:24:51 +0000234}
235
Rui Ueyama434b5612016-07-17 03:11:46 +0000236LazyArchive::LazyArchive(ArchiveFile &File,
237 const llvm::object::Archive::Symbol S, uint8_t Type)
238 : Lazy(LazyArchiveKind, S.getName(), Type), Sym(S) {
239 this->File = &File;
240}
241
242LazyObject::LazyObject(StringRef Name, LazyObjectFile &File, uint8_t Type)
243 : Lazy(LazyObjectKind, Name, Type) {
244 this->File = &File;
245}
246
Rui Ueyama55518e72016-10-28 20:57:25 +0000247InputFile *LazyArchive::fetch() {
Davide Italianobcdd6c62016-10-12 19:35:54 +0000248 std::pair<MemoryBufferRef, uint64_t> MBInfo = file()->getMember(&Sym);
Michael J. Spencer1b348a62015-09-04 22:28:10 +0000249
250 // getMember returns an empty buffer if the member was already
251 // read from the library.
Davide Italianobcdd6c62016-10-12 19:35:54 +0000252 if (MBInfo.first.getBuffer().empty())
Rui Ueyama38dbd3e2016-09-14 00:05:51 +0000253 return nullptr;
Rui Ueyama55518e72016-10-28 20:57:25 +0000254 return createObjectFile(MBInfo.first, file()->getName(), MBInfo.second);
Michael J. Spencer1b348a62015-09-04 22:28:10 +0000255}
256
Rui Ueyama55518e72016-10-28 20:57:25 +0000257InputFile *LazyObject::fetch() {
Rui Ueyama434b5612016-07-17 03:11:46 +0000258 MemoryBufferRef MBRef = file()->getBuffer();
Rafael Espindola65c65ce2016-06-14 21:56:36 +0000259 if (MBRef.getBuffer().empty())
Rui Ueyama38dbd3e2016-09-14 00:05:51 +0000260 return nullptr;
Rui Ueyama55518e72016-10-28 20:57:25 +0000261 return createObjectFile(MBRef);
Rui Ueyamaf8baa662016-04-07 19:24:51 +0000262}
263
Peter Collingbournedadcc172016-04-22 18:42:48 +0000264bool Symbol::includeInDynsym() const {
265 if (Visibility != STV_DEFAULT && Visibility != STV_PROTECTED)
Rafael Espindolaae605c12016-04-21 20:35:25 +0000266 return false;
George Rimard3566302016-06-20 11:55:12 +0000267 return (ExportDynamic && VersionId != VER_NDX_LOCAL) || body()->isShared() ||
Peter Collingbourne4f952702016-05-01 04:55:03 +0000268 (body()->isUndefined() && Config->Shared);
Rafael Espindolaae605c12016-04-21 20:35:25 +0000269}
Rui Ueyama69c778c2016-07-17 17:50:09 +0000270
271// Print out a log message for --trace-symbol.
272void elf::printTraceSymbol(Symbol *Sym) {
273 SymbolBody *B = Sym->body();
274 outs() << getFilename(B->File);
275
276 if (B->isUndefined())
277 outs() << ": reference to ";
278 else if (B->isCommon())
279 outs() << ": common definition of ";
280 else
281 outs() << ": definition of ";
282 outs() << B->getName() << "\n";
283}
284
Peter Smithfb05cd92016-07-08 16:10:27 +0000285template bool SymbolBody::hasThunk<ELF32LE>() const;
286template bool SymbolBody::hasThunk<ELF32BE>() const;
287template bool SymbolBody::hasThunk<ELF64LE>() const;
288template bool SymbolBody::hasThunk<ELF64BE>() const;
Rafael Espindolaae605c12016-04-21 20:35:25 +0000289
Rafael Espindola87d9f102016-03-11 12:19:05 +0000290template uint32_t SymbolBody::template getVA<ELF32LE>(uint32_t) const;
291template uint32_t SymbolBody::template getVA<ELF32BE>(uint32_t) const;
292template uint64_t SymbolBody::template getVA<ELF64LE>(uint64_t) const;
293template uint64_t SymbolBody::template getVA<ELF64BE>(uint64_t) const;
Rui Ueyamab5a69702016-02-01 21:00:35 +0000294
295template uint32_t SymbolBody::template getGotVA<ELF32LE>() const;
296template uint32_t SymbolBody::template getGotVA<ELF32BE>() const;
297template uint64_t SymbolBody::template getGotVA<ELF64LE>() const;
298template uint64_t SymbolBody::template getGotVA<ELF64BE>() const;
299
Rafael Espindola74031ba2016-04-07 15:20:56 +0000300template uint32_t SymbolBody::template getGotOffset<ELF32LE>() const;
301template uint32_t SymbolBody::template getGotOffset<ELF32BE>() const;
302template uint64_t SymbolBody::template getGotOffset<ELF64LE>() const;
303template uint64_t SymbolBody::template getGotOffset<ELF64BE>() const;
304
Rui Ueyamab5a69702016-02-01 21:00:35 +0000305template uint32_t SymbolBody::template getGotPltVA<ELF32LE>() const;
306template uint32_t SymbolBody::template getGotPltVA<ELF32BE>() const;
307template uint64_t SymbolBody::template getGotPltVA<ELF64LE>() const;
308template uint64_t SymbolBody::template getGotPltVA<ELF64BE>() const;
309
Peter Smithfb05cd92016-07-08 16:10:27 +0000310template uint32_t SymbolBody::template getThunkVA<ELF32LE>() const;
311template uint32_t SymbolBody::template getThunkVA<ELF32BE>() const;
312template uint64_t SymbolBody::template getThunkVA<ELF64LE>() const;
313template uint64_t SymbolBody::template getThunkVA<ELF64BE>() const;
314
Rafael Espindola74031ba2016-04-07 15:20:56 +0000315template uint32_t SymbolBody::template getGotPltOffset<ELF32LE>() const;
316template uint32_t SymbolBody::template getGotPltOffset<ELF32BE>() const;
317template uint64_t SymbolBody::template getGotPltOffset<ELF64LE>() const;
318template uint64_t SymbolBody::template getGotPltOffset<ELF64BE>() const;
319
Rui Ueyamab5a69702016-02-01 21:00:35 +0000320template uint32_t SymbolBody::template getPltVA<ELF32LE>() const;
321template uint32_t SymbolBody::template getPltVA<ELF32BE>() const;
322template uint64_t SymbolBody::template getPltVA<ELF64LE>() const;
323template uint64_t SymbolBody::template getPltVA<ELF64BE>() const;
324
Rui Ueyama512c61d2016-02-03 00:12:24 +0000325template uint32_t SymbolBody::template getSize<ELF32LE>() const;
326template uint32_t SymbolBody::template getSize<ELF32BE>() const;
327template uint64_t SymbolBody::template getSize<ELF64LE>() const;
328template uint64_t SymbolBody::template getSize<ELF64BE>() const;
329
Simon Atanasyanf967f092016-09-29 12:58:36 +0000330template class elf::DefinedRegular<ELF32LE>;
331template class elf::DefinedRegular<ELF32BE>;
332template class elf::DefinedRegular<ELF64LE>;
333template class elf::DefinedRegular<ELF64BE>;
334
Rafael Espindolae0df00b2016-02-28 00:25:54 +0000335template class elf::DefinedSynthetic<ELF32LE>;
336template class elf::DefinedSynthetic<ELF32BE>;
337template class elf::DefinedSynthetic<ELF64LE>;
338template class elf::DefinedSynthetic<ELF64BE>;