blob: ae4fab1a37e9148bef22106e448b73ea9a95ec11 [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"
Rui Ueyamaa4a628f2016-01-13 18:55:39 +000018#include "llvm/Config/config.h"
19
20#ifdef HAVE_CXXABI_H
21#include <cxxabi.h>
22#endif
Michael J. Spencer1b348a62015-09-04 22:28:10 +000023
24using namespace llvm;
Michael J. Spencer84487f12015-07-24 21:03:07 +000025using namespace llvm::object;
Rafael Espindola78471f02015-09-01 23:12:52 +000026using namespace llvm::ELF;
Michael J. Spencer84487f12015-07-24 21:03:07 +000027
28using namespace lld;
Rafael Espindolae0df00b2016-02-28 00:25:54 +000029using namespace lld::elf;
Michael J. Spencer84487f12015-07-24 21:03:07 +000030
Rui Ueyamab5a69702016-02-01 21:00:35 +000031template <class ELFT>
Rui Ueyama9328b2c2016-03-14 23:16:09 +000032static typename ELFT::uint getSymVA(const SymbolBody &Body,
33 typename ELFT::uint &Addend) {
Rui Ueyama9328b2c2016-03-14 23:16:09 +000034 typedef typename ELFT::uint uintX_t;
Rafael Espindola87d9f102016-03-11 12:19:05 +000035
36 switch (Body.kind()) {
37 case SymbolBody::DefinedSyntheticKind: {
38 auto &D = cast<DefinedSynthetic<ELFT>>(Body);
Simon Atanasyan13f6da12016-03-31 21:26:23 +000039 if (D.Value == DefinedSynthetic<ELFT>::SectionEnd)
40 return D.Section.getVA() + D.Section.getSize();
Rafael Espindola87d9f102016-03-11 12:19:05 +000041 return D.Section.getVA() + D.Value;
Rui Ueyamab5a69702016-02-01 21:00:35 +000042 }
Rafael Espindola87d9f102016-03-11 12:19:05 +000043 case SymbolBody::DefinedRegularKind: {
44 auto &D = cast<DefinedRegular<ELFT>>(Body);
45 InputSectionBase<ELFT> *SC = D.Section;
Rui Ueyamab5a69702016-02-01 21:00:35 +000046
Rafael Espindolaccfe3cb2016-04-04 14:04:16 +000047 // According to the ELF spec reference to a local symbol from outside
48 // the group are not allowed. Unfortunately .eh_frame breaks that rule
49 // and must be treated specially. For now we just replace the symbol with
50 // 0.
51 if (SC == &InputSection<ELFT>::Discarded)
52 return 0;
53
Rui Ueyamab5a69702016-02-01 21:00:35 +000054 // This is an absolute symbol.
55 if (!SC)
Rafael Espindolaccfe3cb2016-04-04 14:04:16 +000056 return D.Value;
Rui Ueyamab5a69702016-02-01 21:00:35 +000057
Rafael Espindolaccfe3cb2016-04-04 14:04:16 +000058 uintX_t Offset = D.Value;
59 if (D.isSection()) {
Rafael Espindola1f5b70f2016-03-11 14:21:37 +000060 Offset += Addend;
61 Addend = 0;
62 }
63 uintX_t VA = SC->OutSec->getVA() + SC->getOffset(Offset);
Rafael Espindolaccfe3cb2016-04-04 14:04:16 +000064 if (D.isTls())
Rafael Espindola1f5b70f2016-03-11 14:21:37 +000065 return VA - Out<ELFT>::TlsPhdr->p_vaddr;
66 return VA;
Rui Ueyamab5a69702016-02-01 21:00:35 +000067 }
Rafael Espindola87d9f102016-03-11 12:19:05 +000068 case SymbolBody::DefinedCommonKind:
69 return Out<ELFT>::Bss->getVA() + cast<DefinedCommon>(Body).OffsetInBss;
70 case SymbolBody::SharedKind: {
71 auto &SS = cast<SharedSymbol<ELFT>>(Body);
72 if (!SS.NeedsCopyOrPltAddr)
Rafael Espindolaa0a65f92016-02-09 15:11:01 +000073 return 0;
Rafael Espindolaccfe3cb2016-04-04 14:04:16 +000074 if (SS.isFunc())
Rafael Espindola87d9f102016-03-11 12:19:05 +000075 return Body.getPltVA<ELFT>();
Rui Ueyama2df72892016-03-13 20:54:38 +000076 return Out<ELFT>::Bss->getVA() + SS.OffsetInBss;
Rui Ueyamab5a69702016-02-01 21:00:35 +000077 }
Rafael Espindola87d9f102016-03-11 12:19:05 +000078 case SymbolBody::UndefinedElfKind:
79 case SymbolBody::UndefinedKind:
Rui Ueyamab5a69702016-02-01 21:00:35 +000080 return 0;
Rafael Espindola87d9f102016-03-11 12:19:05 +000081 case SymbolBody::LazyKind:
George Rimar777f9632016-03-12 08:31:34 +000082 assert(Body.isUsedInRegularObj() && "lazy symbol reached writer");
Rui Ueyamab5a69702016-02-01 21:00:35 +000083 return 0;
Rafael Espindola87d9f102016-03-11 12:19:05 +000084 case SymbolBody::DefinedBitcodeKind:
Davide Italianof6523ae2016-03-29 02:20:10 +000085 llvm_unreachable("should have been replaced");
Rui Ueyamab5a69702016-02-01 21:00:35 +000086 }
George Rimar777f9632016-03-12 08:31:34 +000087 llvm_unreachable("invalid symbol kind");
Rui Ueyamab5a69702016-02-01 21:00:35 +000088}
89
Rafael Espindolaccfe3cb2016-04-04 14:04:16 +000090SymbolBody::SymbolBody(Kind K, uint32_t NameOffset, uint8_t Other, uint8_t Type)
91 : SymbolKind(K), MustBeInDynSym(false), NeedsCopyOrPltAddr(false),
92 Type(Type), Binding(STB_LOCAL), Other(Other), NameOffset(NameOffset) {
93 IsUsedInRegularObj =
94 K != SharedKind && K != LazyKind && K != DefinedBitcodeKind;
95}
96
Rui Ueyamac4466602016-03-13 19:48:18 +000097// Returns true if a symbol can be replaced at load-time by a symbol
98// with the same name defined in other ELF executable or DSO.
99bool SymbolBody::isPreemptible() const {
100 if (isLocal())
101 return false;
102
103 if (isShared())
104 return true;
105
106 if (isUndefined()) {
107 if (!isWeak())
108 return true;
109
110 // Ideally the static linker should see a definition for every symbol, but
111 // shared object are normally allowed to have undefined references that the
112 // static linker never sees a definition for.
113 if (Config->Shared)
114 return true;
115
116 // Otherwise, just resolve to 0.
117 return false;
118 }
119
120 if (!Config->Shared)
121 return false;
122 if (getVisibility() != STV_DEFAULT)
123 return false;
Rafael Espindolaccfe3cb2016-04-04 14:04:16 +0000124 if (Config->Bsymbolic || (Config->BsymbolicFunctions && isFunc()))
Rui Ueyamac4466602016-03-13 19:48:18 +0000125 return false;
126 return true;
127}
128
Rui Ueyamab5a69702016-02-01 21:00:35 +0000129template <class ELFT>
Rui Ueyama9328b2c2016-03-14 23:16:09 +0000130typename ELFT::uint SymbolBody::getVA(typename ELFT::uint Addend) const {
Rafael Espindola8381c562016-03-17 23:36:19 +0000131 typename ELFT::uint OutVA = getSymVA<ELFT>(*this, Addend);
132 return OutVA + Addend;
Rafael Espindola87d9f102016-03-11 12:19:05 +0000133}
134
Rui Ueyama9328b2c2016-03-14 23:16:09 +0000135template <class ELFT> typename ELFT::uint SymbolBody::getGotVA() const {
Rui Ueyamab5a69702016-02-01 21:00:35 +0000136 return Out<ELFT>::Got->getVA() +
137 (Out<ELFT>::Got->getMipsLocalEntriesNum() + GotIndex) *
Rui Ueyama9328b2c2016-03-14 23:16:09 +0000138 sizeof(typename ELFT::uint);
Rui Ueyamab5a69702016-02-01 21:00:35 +0000139}
140
Rui Ueyama9328b2c2016-03-14 23:16:09 +0000141template <class ELFT> typename ELFT::uint SymbolBody::getGotPltVA() const {
142 return Out<ELFT>::GotPlt->getVA() + GotPltIndex * sizeof(typename ELFT::uint);
Rui Ueyamab5a69702016-02-01 21:00:35 +0000143}
144
Rui Ueyama9328b2c2016-03-14 23:16:09 +0000145template <class ELFT> typename ELFT::uint SymbolBody::getPltVA() const {
Rui Ueyamab5a69702016-02-01 21:00:35 +0000146 return Out<ELFT>::Plt->getVA() + Target->PltZeroSize +
147 PltIndex * Target->PltEntrySize;
148}
149
Simon Atanasyan13f6da12016-03-31 21:26:23 +0000150template <class ELFT> typename ELFT::uint SymbolBody::getThunkVA() const {
151 auto *D = cast<DefinedRegular<ELFT>>(this);
152 auto *S = cast<InputSection<ELFT>>(D->Section);
153 return S->OutSec->getVA() + S->OutSecOff + S->getThunkOff() +
154 ThunkIndex * Target->ThunkSize;
155}
156
Rui Ueyama9328b2c2016-03-14 23:16:09 +0000157template <class ELFT> typename ELFT::uint SymbolBody::getSize() const {
Rafael Espindolaccfe3cb2016-04-04 14:04:16 +0000158 if (const auto *C = dyn_cast<DefinedCommon>(this))
159 return C->Size;
160 if (const auto *DR = dyn_cast<DefinedRegular<ELFT>>(this))
161 return DR->Size;
162 if (const auto *S = dyn_cast<SharedSymbol<ELFT>>(this))
163 return S->Sym.st_size;
164 if (const auto *U = dyn_cast<UndefinedElf<ELFT>>(this))
165 return U->Size;
Rui Ueyama512c61d2016-02-03 00:12:24 +0000166 return 0;
167}
168
Rafael Espindola78471f02015-09-01 23:12:52 +0000169static uint8_t getMinVisibility(uint8_t VA, uint8_t VB) {
170 if (VA == STV_DEFAULT)
171 return VB;
172 if (VB == STV_DEFAULT)
173 return VA;
174 return std::min(VA, VB);
175}
176
George Rimar3498c7f2016-03-10 18:49:24 +0000177static int compareCommons(DefinedCommon *A, DefinedCommon *B) {
George Rimar34358002016-03-14 09:19:30 +0000178 if (Config->WarnCommon)
179 warning("multiple common of " + A->getName());
Rui Ueyama17d69832016-03-10 18:58:53 +0000180 A->Alignment = B->Alignment = std::max(A->Alignment, B->Alignment);
Davide Italiano901de032016-03-21 22:44:24 +0000181 return A->Size < B->Size ? -1 : 1;
George Rimar3498c7f2016-03-10 18:49:24 +0000182}
183
Michael J. Spencer84487f12015-07-24 21:03:07 +0000184// Returns 1, 0 or -1 if this symbol should take precedence
185// over the Other, tie or lose, respectively.
Rafael Espindoladaa92a62015-08-31 01:16:19 +0000186template <class ELFT> int SymbolBody::compare(SymbolBody *Other) {
Michael J. Spencer1b348a62015-09-04 22:28:10 +0000187 assert(!isLazy() && !Other->isLazy());
Rafael Espindola0bc0c022016-01-18 23:54:05 +0000188 std::tuple<bool, bool, bool> L(isDefined(), !isShared(), !isWeak());
189 std::tuple<bool, bool, bool> R(Other->isDefined(), !Other->isShared(),
190 !Other->isWeak());
Rui Ueyamaa7ccb292015-07-27 20:39:01 +0000191
Rafael Espindola3a63f3f2015-08-28 20:19:34 +0000192 // Normalize
193 if (L > R)
Rafael Espindoladaa92a62015-08-31 01:16:19 +0000194 return -Other->compare<ELFT>(this);
Rui Ueyamaa7ccb292015-07-27 20:39:01 +0000195
Rafael Espindolaccfe3cb2016-04-04 14:04:16 +0000196 uint8_t V = getMinVisibility(getVisibility(), Other->getVisibility());
197 setVisibility(V);
198 Other->setVisibility(V);
Rafael Espindola78471f02015-09-01 23:12:52 +0000199
Rui Ueyama86696f32015-10-21 19:41:03 +0000200 if (IsUsedInRegularObj || Other->IsUsedInRegularObj)
201 IsUsedInRegularObj = Other->IsUsedInRegularObj = true;
Rafael Espindola18173d42015-09-08 15:50:05 +0000202
George Rimar02ca1792016-01-25 08:44:38 +0000203 // We want to export all symbols that exist both in the executable
204 // and in DSOs, so that the symbols in the executable can interrupt
205 // symbols in the DSO at runtime.
206 if (isShared() != Other->isShared())
207 if (isa<DefinedRegular<ELFT>>(isShared() ? Other : this))
Rafael Espindolaabebed92016-02-05 15:27:15 +0000208 MustBeInDynSym = Other->MustBeInDynSym = true;
George Rimar02ca1792016-01-25 08:44:38 +0000209
Rafael Espindola3a63f3f2015-08-28 20:19:34 +0000210 if (L != R)
211 return -1;
George Rimar3498c7f2016-03-10 18:49:24 +0000212 if (!isDefined() || isShared() || isWeak())
Rafael Espindola8e5560d2015-09-23 14:23:59 +0000213 return 1;
George Rimar3498c7f2016-03-10 18:49:24 +0000214 if (!isCommon() && !Other->isCommon())
215 return 0;
216 if (isCommon() && Other->isCommon())
217 return compareCommons(cast<DefinedCommon>(this),
218 cast<DefinedCommon>(Other));
George Rimar34358002016-03-14 09:19:30 +0000219 if (Config->WarnCommon)
220 warning("common " + this->getName() + " is overridden");
George Rimar3498c7f2016-03-10 18:49:24 +0000221 return isCommon() ? -1 : 1;
Michael J. Spencer84487f12015-07-24 21:03:07 +0000222}
Rafael Espindoladaa92a62015-08-31 01:16:19 +0000223
Rafael Espindolaccfe3cb2016-04-04 14:04:16 +0000224Defined::Defined(Kind K, StringRef Name, uint8_t Binding, uint8_t Visibility,
225 uint8_t Type)
226 : SymbolBody(K, Name, Binding, Visibility, Type) {}
227
228Defined::Defined(Kind K, uint32_t NameOffset, uint8_t Visibility, uint8_t Type)
229 : SymbolBody(K, NameOffset, Visibility, Type) {}
Rafael Espindola4d4b06a2015-12-24 00:47:42 +0000230
Rafael Espindola4f29c1a2016-03-07 17:14:36 +0000231DefinedBitcode::DefinedBitcode(StringRef Name, bool IsWeak, uint8_t Visibility)
Rafael Espindolaccfe3cb2016-04-04 14:04:16 +0000232 : Defined(DefinedBitcodeKind, Name, IsWeak ? STB_WEAK : STB_GLOBAL,
233 Visibility, 0 /* Type */) {}
Rafael Espindola9f77ef02016-02-12 20:54:57 +0000234
235bool DefinedBitcode::classof(const SymbolBody *S) {
236 return S->kind() == DefinedBitcodeKind;
237}
238
Rafael Espindolaccfe3cb2016-04-04 14:04:16 +0000239Undefined::Undefined(SymbolBody::Kind K, StringRef N, uint8_t Binding,
240 uint8_t Other, uint8_t Type)
241 : SymbolBody(K, N, Binding, Other, Type), CanKeepUndefined(false) {}
242
243Undefined::Undefined(SymbolBody::Kind K, uint32_t NameOffset,
Davide Italiano255730c2016-03-04 01:55:28 +0000244 uint8_t Visibility, uint8_t Type)
Rafael Espindolaccfe3cb2016-04-04 14:04:16 +0000245 : SymbolBody(K, NameOffset, Visibility, Type), CanKeepUndefined(false) {}
Rafael Espindola5d7593b2015-12-22 23:00:50 +0000246
247Undefined::Undefined(StringRef N, bool IsWeak, uint8_t Visibility,
248 bool CanKeepUndefined)
Rafael Espindolaccfe3cb2016-04-04 14:04:16 +0000249 : Undefined(SymbolBody::UndefinedKind, N, IsWeak ? STB_WEAK : STB_GLOBAL,
250 Visibility, 0 /* Type */) {
Rafael Espindola5d7593b2015-12-22 23:00:50 +0000251 this->CanKeepUndefined = CanKeepUndefined;
252}
253
254template <typename ELFT>
255UndefinedElf<ELFT>::UndefinedElf(StringRef N, const Elf_Sym &Sym)
Rafael Espindolaccfe3cb2016-04-04 14:04:16 +0000256 : Undefined(SymbolBody::UndefinedElfKind, N, Sym.getBinding(), Sym.st_other,
Davide Italiano255730c2016-03-04 01:55:28 +0000257 Sym.getType()),
Rafael Espindolaccfe3cb2016-04-04 14:04:16 +0000258 Size(Sym.st_size) {}
259
260template <typename ELFT>
261UndefinedElf<ELFT>::UndefinedElf(uint32_t NameOffset, const Elf_Sym &Sym)
262 : Undefined(SymbolBody::UndefinedElfKind, NameOffset, Sym.st_other,
263 Sym.getType()),
264 Size(Sym.st_size) {
265 assert(Sym.getBinding() == STB_LOCAL);
266}
Rafael Espindola5d7593b2015-12-22 23:00:50 +0000267
Rafael Espindola4d4b06a2015-12-24 00:47:42 +0000268template <typename ELFT>
269DefinedSynthetic<ELFT>::DefinedSynthetic(StringRef N, uintX_t Value,
George Rimaraa4dc202016-03-01 16:23:13 +0000270 OutputSectionBase<ELFT> &Section,
271 uint8_t Visibility)
Rafael Espindolaccfe3cb2016-04-04 14:04:16 +0000272 : Defined(SymbolBody::DefinedSyntheticKind, N, STB_GLOBAL, Visibility,
Davide Italiano255730c2016-03-04 01:55:28 +0000273 0 /* Type */),
Rafael Espindola4d4b06a2015-12-24 00:47:42 +0000274 Value(Value), Section(Section) {}
275
Rafael Espindola11191912015-12-24 16:23:37 +0000276DefinedCommon::DefinedCommon(StringRef N, uint64_t Size, uint64_t Alignment,
Rafael Espindolaccfe3cb2016-04-04 14:04:16 +0000277 uint8_t Binding, uint8_t Visibility, uint8_t Type)
278 : Defined(SymbolBody::DefinedCommonKind, N, Binding, Visibility, Type),
Rui Ueyama17d69832016-03-10 18:58:53 +0000279 Alignment(Alignment), Size(Size) {}
Rafael Espindola11191912015-12-24 16:23:37 +0000280
Michael J. Spencer1b348a62015-09-04 22:28:10 +0000281std::unique_ptr<InputFile> Lazy::getMember() {
282 MemoryBufferRef MBRef = File->getMember(&Sym);
283
284 // getMember returns an empty buffer if the member was already
285 // read from the library.
286 if (MBRef.getBuffer().empty())
287 return std::unique_ptr<InputFile>(nullptr);
Rui Ueyama71c066d2016-02-02 08:22:41 +0000288 return createObjectFile(MBRef, File->getName());
Michael J. Spencer1b348a62015-09-04 22:28:10 +0000289}
290
Rui Ueyamaa4a628f2016-01-13 18:55:39 +0000291// Returns the demangled C++ symbol name for Name.
Rafael Espindolae0df00b2016-02-28 00:25:54 +0000292std::string elf::demangle(StringRef Name) {
Rui Ueyamaa4a628f2016-01-13 18:55:39 +0000293#if !defined(HAVE_CXXABI_H)
294 return Name;
295#else
296 if (!Config->Demangle)
297 return Name;
Rui Ueyama5fa978b2016-01-13 19:40:13 +0000298
Rui Ueyamadf154512016-01-13 22:09:09 +0000299 // __cxa_demangle can be used to demangle strings other than symbol
300 // names which do not necessarily start with "_Z". Name can be
301 // either a C or C++ symbol. Don't call __cxa_demangle if the name
302 // does not look like a C++ symbol name to avoid getting unexpected
303 // result for a C symbol that happens to match a mangled type name.
Rui Ueyama5fa978b2016-01-13 19:40:13 +0000304 if (!Name.startswith("_Z"))
305 return Name;
306
Rui Ueyamaa4a628f2016-01-13 18:55:39 +0000307 char *Buf =
308 abi::__cxa_demangle(Name.str().c_str(), nullptr, nullptr, nullptr);
309 if (!Buf)
310 return Name;
311 std::string S(Buf);
312 free(Buf);
313 return S;
314#endif
315}
316
Rafael Espindola87d9f102016-03-11 12:19:05 +0000317template uint32_t SymbolBody::template getVA<ELF32LE>(uint32_t) const;
318template uint32_t SymbolBody::template getVA<ELF32BE>(uint32_t) const;
319template uint64_t SymbolBody::template getVA<ELF64LE>(uint64_t) const;
320template uint64_t SymbolBody::template getVA<ELF64BE>(uint64_t) const;
Rui Ueyamab5a69702016-02-01 21:00:35 +0000321
322template uint32_t SymbolBody::template getGotVA<ELF32LE>() const;
323template uint32_t SymbolBody::template getGotVA<ELF32BE>() const;
324template uint64_t SymbolBody::template getGotVA<ELF64LE>() const;
325template uint64_t SymbolBody::template getGotVA<ELF64BE>() const;
326
327template uint32_t SymbolBody::template getGotPltVA<ELF32LE>() const;
328template uint32_t SymbolBody::template getGotPltVA<ELF32BE>() const;
329template uint64_t SymbolBody::template getGotPltVA<ELF64LE>() const;
330template uint64_t SymbolBody::template getGotPltVA<ELF64BE>() const;
331
332template uint32_t SymbolBody::template getPltVA<ELF32LE>() const;
333template uint32_t SymbolBody::template getPltVA<ELF32BE>() const;
334template uint64_t SymbolBody::template getPltVA<ELF64LE>() const;
335template uint64_t SymbolBody::template getPltVA<ELF64BE>() const;
336
Rui Ueyama512c61d2016-02-03 00:12:24 +0000337template uint32_t SymbolBody::template getSize<ELF32LE>() const;
338template uint32_t SymbolBody::template getSize<ELF32BE>() const;
339template uint64_t SymbolBody::template getSize<ELF64LE>() const;
340template uint64_t SymbolBody::template getSize<ELF64BE>() const;
341
Simon Atanasyan13f6da12016-03-31 21:26:23 +0000342template uint32_t SymbolBody::template getThunkVA<ELF32LE>() const;
343template uint32_t SymbolBody::template getThunkVA<ELF32BE>() const;
344template uint64_t SymbolBody::template getThunkVA<ELF64LE>() const;
345template uint64_t SymbolBody::template getThunkVA<ELF64BE>() const;
346
Rafael Espindoladaa92a62015-08-31 01:16:19 +0000347template int SymbolBody::compare<ELF32LE>(SymbolBody *Other);
348template int SymbolBody::compare<ELF32BE>(SymbolBody *Other);
349template int SymbolBody::compare<ELF64LE>(SymbolBody *Other);
350template int SymbolBody::compare<ELF64BE>(SymbolBody *Other);
Rafael Espindola5d7593b2015-12-22 23:00:50 +0000351
Rafael Espindolae0df00b2016-02-28 00:25:54 +0000352template class elf::UndefinedElf<ELF32LE>;
353template class elf::UndefinedElf<ELF32BE>;
354template class elf::UndefinedElf<ELF64LE>;
355template class elf::UndefinedElf<ELF64BE>;
Rafael Espindola4d4b06a2015-12-24 00:47:42 +0000356
Rafael Espindolae0df00b2016-02-28 00:25:54 +0000357template class elf::DefinedSynthetic<ELF32LE>;
358template class elf::DefinedSynthetic<ELF32BE>;
359template class elf::DefinedSynthetic<ELF64LE>;
360template class elf::DefinedSynthetic<ELF64BE>;