Michael J. Spencer | 84487f1 | 2015-07-24 21:03:07 +0000 | [diff] [blame] | 1 | //===- 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 Espindola | 49a2ca6 | 2015-08-06 15:33:19 +0000 | [diff] [blame] | 11 | #include "Error.h" |
Michael J. Spencer | cdae0a4 | 2015-07-28 22:58:25 +0000 | [diff] [blame] | 12 | #include "InputFiles.h" |
Rui Ueyama | b5a6970 | 2016-02-01 21:00:35 +0000 | [diff] [blame] | 13 | #include "InputSection.h" |
| 14 | #include "OutputSections.h" |
| 15 | #include "Target.h" |
Michael J. Spencer | 84487f1 | 2015-07-24 21:03:07 +0000 | [diff] [blame] | 16 | |
Michael J. Spencer | 1b348a6 | 2015-09-04 22:28:10 +0000 | [diff] [blame] | 17 | #include "llvm/ADT/STLExtras.h" |
Rui Ueyama | a4a628f | 2016-01-13 18:55:39 +0000 | [diff] [blame] | 18 | #include "llvm/Config/config.h" |
| 19 | |
| 20 | #ifdef HAVE_CXXABI_H |
| 21 | #include <cxxabi.h> |
| 22 | #endif |
Michael J. Spencer | 1b348a6 | 2015-09-04 22:28:10 +0000 | [diff] [blame] | 23 | |
| 24 | using namespace llvm; |
Michael J. Spencer | 84487f1 | 2015-07-24 21:03:07 +0000 | [diff] [blame] | 25 | using namespace llvm::object; |
Rafael Espindola | 78471f0 | 2015-09-01 23:12:52 +0000 | [diff] [blame] | 26 | using namespace llvm::ELF; |
Michael J. Spencer | 84487f1 | 2015-07-24 21:03:07 +0000 | [diff] [blame] | 27 | |
| 28 | using namespace lld; |
Rafael Espindola | e0df00b | 2016-02-28 00:25:54 +0000 | [diff] [blame] | 29 | using namespace lld::elf; |
Michael J. Spencer | 84487f1 | 2015-07-24 21:03:07 +0000 | [diff] [blame] | 30 | |
Rui Ueyama | b5a6970 | 2016-02-01 21:00:35 +0000 | [diff] [blame] | 31 | template <class ELFT> |
| 32 | typename ELFFile<ELFT>::uintX_t SymbolBody::getVA() const { |
| 33 | switch (kind()) { |
| 34 | case DefinedSyntheticKind: { |
| 35 | auto *D = cast<DefinedSynthetic<ELFT>>(this); |
| 36 | return D->Section.getVA() + D->Value; |
| 37 | } |
| 38 | case DefinedRegularKind: { |
| 39 | auto *D = cast<DefinedRegular<ELFT>>(this); |
| 40 | InputSectionBase<ELFT> *SC = D->Section; |
| 41 | |
| 42 | // This is an absolute symbol. |
| 43 | if (!SC) |
| 44 | return D->Sym.st_value; |
Rui Ueyama | 0b28952 | 2016-02-25 18:43:51 +0000 | [diff] [blame] | 45 | assert(SC->Live); |
Rui Ueyama | b5a6970 | 2016-02-01 21:00:35 +0000 | [diff] [blame] | 46 | |
Rui Ueyama | b5a6970 | 2016-02-01 21:00:35 +0000 | [diff] [blame] | 47 | if (D->Sym.getType() == STT_TLS) |
| 48 | return SC->OutSec->getVA() + SC->getOffset(D->Sym) - |
| 49 | Out<ELFT>::TlsPhdr->p_vaddr; |
| 50 | return SC->OutSec->getVA() + SC->getOffset(D->Sym); |
| 51 | } |
| 52 | case DefinedCommonKind: |
| 53 | return Out<ELFT>::Bss->getVA() + cast<DefinedCommon>(this)->OffsetInBss; |
| 54 | case SharedKind: { |
| 55 | auto *SS = cast<SharedSymbol<ELFT>>(this); |
Rafael Espindola | a0a65f9 | 2016-02-09 15:11:01 +0000 | [diff] [blame] | 56 | if (!SS->NeedsCopyOrPltAddr) |
| 57 | return 0; |
George Rimar | 2f0fab5 | 2016-03-06 06:26:18 +0000 | [diff] [blame] | 58 | if (SS->IsFunc) |
Rafael Espindola | a0a65f9 | 2016-02-09 15:11:01 +0000 | [diff] [blame] | 59 | return getPltVA<ELFT>(); |
| 60 | else |
Rui Ueyama | b5a6970 | 2016-02-01 21:00:35 +0000 | [diff] [blame] | 61 | return Out<ELFT>::Bss->getVA() + SS->OffsetInBss; |
Rui Ueyama | b5a6970 | 2016-02-01 21:00:35 +0000 | [diff] [blame] | 62 | } |
| 63 | case UndefinedElfKind: |
| 64 | case UndefinedKind: |
| 65 | return 0; |
| 66 | case LazyKind: |
| 67 | assert(isUsedInRegularObj() && "Lazy symbol reached writer"); |
| 68 | return 0; |
Rafael Espindola | 9f77ef0 | 2016-02-12 20:54:57 +0000 | [diff] [blame] | 69 | case DefinedBitcodeKind: |
| 70 | llvm_unreachable("Should have been replaced"); |
Rui Ueyama | b5a6970 | 2016-02-01 21:00:35 +0000 | [diff] [blame] | 71 | } |
| 72 | llvm_unreachable("Invalid symbol kind"); |
| 73 | } |
| 74 | |
| 75 | template <class ELFT> |
| 76 | typename ELFFile<ELFT>::uintX_t SymbolBody::getGotVA() const { |
| 77 | return Out<ELFT>::Got->getVA() + |
| 78 | (Out<ELFT>::Got->getMipsLocalEntriesNum() + GotIndex) * |
| 79 | sizeof(typename ELFFile<ELFT>::uintX_t); |
| 80 | } |
| 81 | |
| 82 | template <class ELFT> |
| 83 | typename ELFFile<ELFT>::uintX_t SymbolBody::getGotPltVA() const { |
| 84 | return Out<ELFT>::GotPlt->getVA() + |
| 85 | GotPltIndex * sizeof(typename ELFFile<ELFT>::uintX_t); |
| 86 | } |
| 87 | |
| 88 | template <class ELFT> |
| 89 | typename ELFFile<ELFT>::uintX_t SymbolBody::getPltVA() const { |
| 90 | return Out<ELFT>::Plt->getVA() + Target->PltZeroSize + |
| 91 | PltIndex * Target->PltEntrySize; |
| 92 | } |
| 93 | |
Rui Ueyama | 512c61d | 2016-02-03 00:12:24 +0000 | [diff] [blame] | 94 | template <class ELFT> |
| 95 | typename ELFFile<ELFT>::uintX_t SymbolBody::getSize() const { |
| 96 | if (auto *B = dyn_cast<DefinedElf<ELFT>>(this)) |
| 97 | return B->Sym.st_size; |
| 98 | return 0; |
| 99 | } |
| 100 | |
Rafael Espindola | 78471f0 | 2015-09-01 23:12:52 +0000 | [diff] [blame] | 101 | static uint8_t getMinVisibility(uint8_t VA, uint8_t VB) { |
| 102 | if (VA == STV_DEFAULT) |
| 103 | return VB; |
| 104 | if (VB == STV_DEFAULT) |
| 105 | return VA; |
| 106 | return std::min(VA, VB); |
| 107 | } |
| 108 | |
George Rimar | 3498c7f | 2016-03-10 18:49:24 +0000 | [diff] [blame] | 109 | static int compareCommons(DefinedCommon *A, DefinedCommon *B) { |
Rui Ueyama | 17d6983 | 2016-03-10 18:58:53 +0000 | [diff] [blame^] | 110 | A->Alignment = B->Alignment = std::max(A->Alignment, B->Alignment); |
George Rimar | 3498c7f | 2016-03-10 18:49:24 +0000 | [diff] [blame] | 111 | if (A->Size < B->Size) |
| 112 | return -1; |
| 113 | return 1; |
| 114 | } |
| 115 | |
Michael J. Spencer | 84487f1 | 2015-07-24 21:03:07 +0000 | [diff] [blame] | 116 | // Returns 1, 0 or -1 if this symbol should take precedence |
| 117 | // over the Other, tie or lose, respectively. |
Rafael Espindola | daa92a6 | 2015-08-31 01:16:19 +0000 | [diff] [blame] | 118 | template <class ELFT> int SymbolBody::compare(SymbolBody *Other) { |
Michael J. Spencer | 1b348a6 | 2015-09-04 22:28:10 +0000 | [diff] [blame] | 119 | assert(!isLazy() && !Other->isLazy()); |
Rafael Espindola | 0bc0c02 | 2016-01-18 23:54:05 +0000 | [diff] [blame] | 120 | std::tuple<bool, bool, bool> L(isDefined(), !isShared(), !isWeak()); |
| 121 | std::tuple<bool, bool, bool> R(Other->isDefined(), !Other->isShared(), |
| 122 | !Other->isWeak()); |
Rui Ueyama | a7ccb29 | 2015-07-27 20:39:01 +0000 | [diff] [blame] | 123 | |
Rafael Espindola | 3a63f3f | 2015-08-28 20:19:34 +0000 | [diff] [blame] | 124 | // Normalize |
| 125 | if (L > R) |
Rafael Espindola | daa92a6 | 2015-08-31 01:16:19 +0000 | [diff] [blame] | 126 | return -Other->compare<ELFT>(this); |
Rui Ueyama | a7ccb29 | 2015-07-27 20:39:01 +0000 | [diff] [blame] | 127 | |
Rui Ueyama | 8f2c4da | 2015-10-21 18:13:47 +0000 | [diff] [blame] | 128 | Visibility = Other->Visibility = |
| 129 | getMinVisibility(Visibility, Other->Visibility); |
Rafael Espindola | 78471f0 | 2015-09-01 23:12:52 +0000 | [diff] [blame] | 130 | |
Rui Ueyama | 86696f3 | 2015-10-21 19:41:03 +0000 | [diff] [blame] | 131 | if (IsUsedInRegularObj || Other->IsUsedInRegularObj) |
| 132 | IsUsedInRegularObj = Other->IsUsedInRegularObj = true; |
Rafael Espindola | 18173d4 | 2015-09-08 15:50:05 +0000 | [diff] [blame] | 133 | |
George Rimar | 02ca179 | 2016-01-25 08:44:38 +0000 | [diff] [blame] | 134 | // We want to export all symbols that exist both in the executable |
| 135 | // and in DSOs, so that the symbols in the executable can interrupt |
| 136 | // symbols in the DSO at runtime. |
| 137 | if (isShared() != Other->isShared()) |
| 138 | if (isa<DefinedRegular<ELFT>>(isShared() ? Other : this)) |
Rafael Espindola | abebed9 | 2016-02-05 15:27:15 +0000 | [diff] [blame] | 139 | MustBeInDynSym = Other->MustBeInDynSym = true; |
George Rimar | 02ca179 | 2016-01-25 08:44:38 +0000 | [diff] [blame] | 140 | |
Rafael Espindola | 3a63f3f | 2015-08-28 20:19:34 +0000 | [diff] [blame] | 141 | if (L != R) |
| 142 | return -1; |
George Rimar | 3498c7f | 2016-03-10 18:49:24 +0000 | [diff] [blame] | 143 | if (!isDefined() || isShared() || isWeak()) |
Rafael Espindola | 8e5560d | 2015-09-23 14:23:59 +0000 | [diff] [blame] | 144 | return 1; |
George Rimar | 3498c7f | 2016-03-10 18:49:24 +0000 | [diff] [blame] | 145 | if (!isCommon() && !Other->isCommon()) |
| 146 | return 0; |
| 147 | if (isCommon() && Other->isCommon()) |
| 148 | return compareCommons(cast<DefinedCommon>(this), |
| 149 | cast<DefinedCommon>(Other)); |
| 150 | return isCommon() ? -1 : 1; |
Michael J. Spencer | 84487f1 | 2015-07-24 21:03:07 +0000 | [diff] [blame] | 151 | } |
Rafael Espindola | daa92a6 | 2015-08-31 01:16:19 +0000 | [diff] [blame] | 152 | |
Rafael Espindola | 4d4b06a | 2015-12-24 00:47:42 +0000 | [diff] [blame] | 153 | Defined::Defined(Kind K, StringRef Name, bool IsWeak, uint8_t Visibility, |
Davide Italiano | 255730c | 2016-03-04 01:55:28 +0000 | [diff] [blame] | 154 | uint8_t Type) |
| 155 | : SymbolBody(K, Name, IsWeak, Visibility, Type) {} |
Rafael Espindola | 4d4b06a | 2015-12-24 00:47:42 +0000 | [diff] [blame] | 156 | |
Rafael Espindola | 4f29c1a | 2016-03-07 17:14:36 +0000 | [diff] [blame] | 157 | DefinedBitcode::DefinedBitcode(StringRef Name, bool IsWeak, uint8_t Visibility) |
| 158 | : Defined(DefinedBitcodeKind, Name, IsWeak, Visibility, 0 /* Type */) {} |
Rafael Espindola | 9f77ef0 | 2016-02-12 20:54:57 +0000 | [diff] [blame] | 159 | |
| 160 | bool DefinedBitcode::classof(const SymbolBody *S) { |
| 161 | return S->kind() == DefinedBitcodeKind; |
| 162 | } |
| 163 | |
Rafael Espindola | 5d7593b | 2015-12-22 23:00:50 +0000 | [diff] [blame] | 164 | Undefined::Undefined(SymbolBody::Kind K, StringRef N, bool IsWeak, |
Davide Italiano | 255730c | 2016-03-04 01:55:28 +0000 | [diff] [blame] | 165 | uint8_t Visibility, uint8_t Type) |
| 166 | : SymbolBody(K, N, IsWeak, Visibility, Type), |
George Rimar | 5c36e59 | 2016-02-02 09:28:53 +0000 | [diff] [blame] | 167 | CanKeepUndefined(false) {} |
Rafael Espindola | 5d7593b | 2015-12-22 23:00:50 +0000 | [diff] [blame] | 168 | |
| 169 | Undefined::Undefined(StringRef N, bool IsWeak, uint8_t Visibility, |
| 170 | bool CanKeepUndefined) |
Davide Italiano | 255730c | 2016-03-04 01:55:28 +0000 | [diff] [blame] | 171 | : Undefined(SymbolBody::UndefinedKind, N, IsWeak, Visibility, 0 /* Type */) { |
Rafael Espindola | 5d7593b | 2015-12-22 23:00:50 +0000 | [diff] [blame] | 172 | this->CanKeepUndefined = CanKeepUndefined; |
| 173 | } |
| 174 | |
| 175 | template <typename ELFT> |
| 176 | UndefinedElf<ELFT>::UndefinedElf(StringRef N, const Elf_Sym &Sym) |
| 177 | : Undefined(SymbolBody::UndefinedElfKind, N, |
| 178 | Sym.getBinding() == llvm::ELF::STB_WEAK, Sym.getVisibility(), |
Davide Italiano | 255730c | 2016-03-04 01:55:28 +0000 | [diff] [blame] | 179 | Sym.getType()), |
Rafael Espindola | 5d7593b | 2015-12-22 23:00:50 +0000 | [diff] [blame] | 180 | Sym(Sym) {} |
| 181 | |
Rafael Espindola | 4d4b06a | 2015-12-24 00:47:42 +0000 | [diff] [blame] | 182 | template <typename ELFT> |
| 183 | DefinedSynthetic<ELFT>::DefinedSynthetic(StringRef N, uintX_t Value, |
George Rimar | aa4dc20 | 2016-03-01 16:23:13 +0000 | [diff] [blame] | 184 | OutputSectionBase<ELFT> &Section, |
| 185 | uint8_t Visibility) |
| 186 | : Defined(SymbolBody::DefinedSyntheticKind, N, false, Visibility, |
Davide Italiano | 255730c | 2016-03-04 01:55:28 +0000 | [diff] [blame] | 187 | 0 /* Type */), |
Rafael Espindola | 4d4b06a | 2015-12-24 00:47:42 +0000 | [diff] [blame] | 188 | Value(Value), Section(Section) {} |
| 189 | |
Rafael Espindola | 1119191 | 2015-12-24 16:23:37 +0000 | [diff] [blame] | 190 | DefinedCommon::DefinedCommon(StringRef N, uint64_t Size, uint64_t Alignment, |
| 191 | bool IsWeak, uint8_t Visibility) |
George Rimar | 5c36e59 | 2016-02-02 09:28:53 +0000 | [diff] [blame] | 192 | : Defined(SymbolBody::DefinedCommonKind, N, IsWeak, Visibility, |
Rui Ueyama | 17d6983 | 2016-03-10 18:58:53 +0000 | [diff] [blame^] | 193 | 0 /* Type */), |
| 194 | Alignment(Alignment), Size(Size) {} |
Rafael Espindola | 1119191 | 2015-12-24 16:23:37 +0000 | [diff] [blame] | 195 | |
Michael J. Spencer | 1b348a6 | 2015-09-04 22:28:10 +0000 | [diff] [blame] | 196 | std::unique_ptr<InputFile> Lazy::getMember() { |
| 197 | MemoryBufferRef MBRef = File->getMember(&Sym); |
| 198 | |
| 199 | // getMember returns an empty buffer if the member was already |
| 200 | // read from the library. |
| 201 | if (MBRef.getBuffer().empty()) |
| 202 | return std::unique_ptr<InputFile>(nullptr); |
Rui Ueyama | 71c066d | 2016-02-02 08:22:41 +0000 | [diff] [blame] | 203 | return createObjectFile(MBRef, File->getName()); |
Michael J. Spencer | 1b348a6 | 2015-09-04 22:28:10 +0000 | [diff] [blame] | 204 | } |
| 205 | |
George Rimar | 5a3dcf4 | 2016-03-10 17:38:49 +0000 | [diff] [blame] | 206 | template <class ELFT> void elf::initSymbols() { |
George Rimar | 9e85939 | 2016-02-26 14:36:36 +0000 | [diff] [blame] | 207 | ElfSym<ELFT>::Etext.setBinding(STB_GLOBAL); |
| 208 | ElfSym<ELFT>::Edata.setBinding(STB_GLOBAL); |
Rui Ueyama | a246e094 | 2015-12-25 06:12:18 +0000 | [diff] [blame] | 209 | ElfSym<ELFT>::End.setBinding(STB_GLOBAL); |
Rafael Espindola | 65e80b9 | 2016-01-19 21:19:52 +0000 | [diff] [blame] | 210 | ElfSym<ELFT>::Ignored.setBinding(STB_WEAK); |
| 211 | ElfSym<ELFT>::Ignored.setVisibility(STV_HIDDEN); |
Rui Ueyama | aca48ff | 2015-10-08 00:44:28 +0000 | [diff] [blame] | 212 | } |
| 213 | |
Rui Ueyama | a4a628f | 2016-01-13 18:55:39 +0000 | [diff] [blame] | 214 | // Returns the demangled C++ symbol name for Name. |
Rafael Espindola | e0df00b | 2016-02-28 00:25:54 +0000 | [diff] [blame] | 215 | std::string elf::demangle(StringRef Name) { |
Rui Ueyama | a4a628f | 2016-01-13 18:55:39 +0000 | [diff] [blame] | 216 | #if !defined(HAVE_CXXABI_H) |
| 217 | return Name; |
| 218 | #else |
| 219 | if (!Config->Demangle) |
| 220 | return Name; |
Rui Ueyama | 5fa978b | 2016-01-13 19:40:13 +0000 | [diff] [blame] | 221 | |
Rui Ueyama | df15451 | 2016-01-13 22:09:09 +0000 | [diff] [blame] | 222 | // __cxa_demangle can be used to demangle strings other than symbol |
| 223 | // names which do not necessarily start with "_Z". Name can be |
| 224 | // either a C or C++ symbol. Don't call __cxa_demangle if the name |
| 225 | // does not look like a C++ symbol name to avoid getting unexpected |
| 226 | // result for a C symbol that happens to match a mangled type name. |
Rui Ueyama | 5fa978b | 2016-01-13 19:40:13 +0000 | [diff] [blame] | 227 | if (!Name.startswith("_Z")) |
| 228 | return Name; |
| 229 | |
Rui Ueyama | a4a628f | 2016-01-13 18:55:39 +0000 | [diff] [blame] | 230 | char *Buf = |
| 231 | abi::__cxa_demangle(Name.str().c_str(), nullptr, nullptr, nullptr); |
| 232 | if (!Buf) |
| 233 | return Name; |
| 234 | std::string S(Buf); |
| 235 | free(Buf); |
| 236 | return S; |
| 237 | #endif |
| 238 | } |
| 239 | |
Rui Ueyama | b5a6970 | 2016-02-01 21:00:35 +0000 | [diff] [blame] | 240 | template uint32_t SymbolBody::template getVA<ELF32LE>() const; |
| 241 | template uint32_t SymbolBody::template getVA<ELF32BE>() const; |
| 242 | template uint64_t SymbolBody::template getVA<ELF64LE>() const; |
| 243 | template uint64_t SymbolBody::template getVA<ELF64BE>() const; |
| 244 | |
| 245 | template uint32_t SymbolBody::template getGotVA<ELF32LE>() const; |
| 246 | template uint32_t SymbolBody::template getGotVA<ELF32BE>() const; |
| 247 | template uint64_t SymbolBody::template getGotVA<ELF64LE>() const; |
| 248 | template uint64_t SymbolBody::template getGotVA<ELF64BE>() const; |
| 249 | |
| 250 | template uint32_t SymbolBody::template getGotPltVA<ELF32LE>() const; |
| 251 | template uint32_t SymbolBody::template getGotPltVA<ELF32BE>() const; |
| 252 | template uint64_t SymbolBody::template getGotPltVA<ELF64LE>() const; |
| 253 | template uint64_t SymbolBody::template getGotPltVA<ELF64BE>() const; |
| 254 | |
| 255 | template uint32_t SymbolBody::template getPltVA<ELF32LE>() const; |
| 256 | template uint32_t SymbolBody::template getPltVA<ELF32BE>() const; |
| 257 | template uint64_t SymbolBody::template getPltVA<ELF64LE>() const; |
| 258 | template uint64_t SymbolBody::template getPltVA<ELF64BE>() const; |
| 259 | |
Rui Ueyama | 512c61d | 2016-02-03 00:12:24 +0000 | [diff] [blame] | 260 | template uint32_t SymbolBody::template getSize<ELF32LE>() const; |
| 261 | template uint32_t SymbolBody::template getSize<ELF32BE>() const; |
| 262 | template uint64_t SymbolBody::template getSize<ELF64LE>() const; |
| 263 | template uint64_t SymbolBody::template getSize<ELF64BE>() const; |
| 264 | |
Rafael Espindola | daa92a6 | 2015-08-31 01:16:19 +0000 | [diff] [blame] | 265 | template int SymbolBody::compare<ELF32LE>(SymbolBody *Other); |
| 266 | template int SymbolBody::compare<ELF32BE>(SymbolBody *Other); |
| 267 | template int SymbolBody::compare<ELF64LE>(SymbolBody *Other); |
| 268 | template int SymbolBody::compare<ELF64BE>(SymbolBody *Other); |
Rafael Espindola | 5d7593b | 2015-12-22 23:00:50 +0000 | [diff] [blame] | 269 | |
Rafael Espindola | e0df00b | 2016-02-28 00:25:54 +0000 | [diff] [blame] | 270 | template class elf::UndefinedElf<ELF32LE>; |
| 271 | template class elf::UndefinedElf<ELF32BE>; |
| 272 | template class elf::UndefinedElf<ELF64LE>; |
| 273 | template class elf::UndefinedElf<ELF64BE>; |
Rafael Espindola | 4d4b06a | 2015-12-24 00:47:42 +0000 | [diff] [blame] | 274 | |
Rafael Espindola | e0df00b | 2016-02-28 00:25:54 +0000 | [diff] [blame] | 275 | template class elf::DefinedSynthetic<ELF32LE>; |
| 276 | template class elf::DefinedSynthetic<ELF32BE>; |
| 277 | template class elf::DefinedSynthetic<ELF64LE>; |
| 278 | template class elf::DefinedSynthetic<ELF64BE>; |
George Rimar | 5a3dcf4 | 2016-03-10 17:38:49 +0000 | [diff] [blame] | 279 | |
| 280 | template void elf::initSymbols<ELF32LE>(); |
| 281 | template void elf::initSymbols<ELF32BE>(); |
| 282 | template void elf::initSymbols<ELF64LE>(); |
| 283 | template void elf::initSymbols<ELF64BE>(); |