Michael J. Spencer | 84487f1 | 2015-07-24 21:03:07 +0000 | [diff] [blame] | 1 | //===- SymbolTable.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 | //===----------------------------------------------------------------------===// |
Rui Ueyama | 34f2924 | 2015-10-13 19:51:57 +0000 | [diff] [blame] | 9 | // |
| 10 | // Symbol table is a bag of all known symbols. We put all symbols of |
| 11 | // all input files to the symbol table. The symbol Table is basically |
| 12 | // a hash table with the logic to resolve symbol name conflicts using |
| 13 | // the symbol types. |
| 14 | // |
| 15 | //===----------------------------------------------------------------------===// |
Michael J. Spencer | 84487f1 | 2015-07-24 21:03:07 +0000 | [diff] [blame] | 16 | |
| 17 | #include "SymbolTable.h" |
Rafael Espindola | 4340aad | 2015-09-11 22:42:45 +0000 | [diff] [blame] | 18 | #include "Config.h" |
Rafael Espindola | 192e1fa | 2015-08-06 15:08:23 +0000 | [diff] [blame] | 19 | #include "Error.h" |
Michael J. Spencer | 84487f1 | 2015-07-24 21:03:07 +0000 | [diff] [blame] | 20 | #include "Symbols.h" |
| 21 | |
| 22 | using namespace llvm; |
Rafael Espindola | daa92a6 | 2015-08-31 01:16:19 +0000 | [diff] [blame] | 23 | using namespace llvm::object; |
Rafael Espindola | 01205f7 | 2015-09-22 18:19:46 +0000 | [diff] [blame] | 24 | using namespace llvm::ELF; |
Michael J. Spencer | 84487f1 | 2015-07-24 21:03:07 +0000 | [diff] [blame] | 25 | |
| 26 | using namespace lld; |
| 27 | using namespace lld::elf2; |
| 28 | |
Rui Ueyama | 3ce825e | 2015-10-09 21:07:25 +0000 | [diff] [blame] | 29 | template <class ELFT> SymbolTable<ELFT>::SymbolTable() {} |
Michael J. Spencer | 84487f1 | 2015-07-24 21:03:07 +0000 | [diff] [blame] | 30 | |
Rui Ueyama | 3ce825e | 2015-10-09 21:07:25 +0000 | [diff] [blame] | 31 | template <class ELFT> bool SymbolTable<ELFT>::shouldUseRela() const { |
Rafael Espindola | b9ca7bb | 2015-10-12 11:52:31 +0000 | [diff] [blame] | 32 | ELFKind K = cast<ELFFileBase<ELFT>>(Config->FirstElf)->getELFKind(); |
Rafael Espindola | 67a5da6 | 2015-09-17 14:02:10 +0000 | [diff] [blame] | 33 | return K == ELF64LEKind || K == ELF64BEKind; |
| 34 | } |
| 35 | |
Rui Ueyama | 3ce825e | 2015-10-09 21:07:25 +0000 | [diff] [blame] | 36 | template <class ELFT> |
| 37 | void SymbolTable<ELFT>::addFile(std::unique_ptr<InputFile> File) { |
Rui Ueyama | 3d45179 | 2015-10-12 18:03:21 +0000 | [diff] [blame] | 38 | checkCompatibility(File); |
Rafael Espindola | 525914d | 2015-10-11 03:36:49 +0000 | [diff] [blame] | 39 | |
Igor Kudrin | 2696bbe | 2015-10-01 18:02:21 +0000 | [diff] [blame] | 40 | if (auto *AF = dyn_cast<ArchiveFile>(File.get())) { |
Rui Ueyama | 3ce825e | 2015-10-09 21:07:25 +0000 | [diff] [blame] | 41 | ArchiveFiles.emplace_back(std::move(File)); |
Igor Kudrin | 2696bbe | 2015-10-01 18:02:21 +0000 | [diff] [blame] | 42 | AF->parse(); |
Michael J. Spencer | 1b348a6 | 2015-09-04 22:28:10 +0000 | [diff] [blame] | 43 | for (Lazy &Sym : AF->getLazySymbols()) |
| 44 | addLazy(&Sym); |
| 45 | return; |
| 46 | } |
Rui Ueyama | 3d45179 | 2015-10-12 18:03:21 +0000 | [diff] [blame] | 47 | |
Rafael Espindola | dfce5a2 | 2015-10-12 02:22:58 +0000 | [diff] [blame] | 48 | if (auto *S = dyn_cast<SharedFile<ELFT>>(File.get())) { |
Rafael Espindola | 6a3b5de | 2015-10-01 19:52:48 +0000 | [diff] [blame] | 49 | S->parseSoName(); |
| 50 | if (!IncludedSoNames.insert(S->getSoName()).second) |
| 51 | return; |
Rafael Espindola | 444576d | 2015-10-09 19:25:07 +0000 | [diff] [blame] | 52 | S->parse(); |
| 53 | } else { |
Rafael Espindola | dfce5a2 | 2015-10-12 02:22:58 +0000 | [diff] [blame] | 54 | cast<ObjectFile<ELFT>>(File.get())->parse(Comdats); |
Rafael Espindola | 6a3b5de | 2015-10-01 19:52:48 +0000 | [diff] [blame] | 55 | } |
Rafael Espindola | af70764 | 2015-10-12 01:55:32 +0000 | [diff] [blame] | 56 | addELFFile(cast<ELFFileBase<ELFT>>(File.release())); |
Michael J. Spencer | 84487f1 | 2015-07-24 21:03:07 +0000 | [diff] [blame] | 57 | } |
| 58 | |
Rui Ueyama | ff77768 | 2015-10-09 21:12:40 +0000 | [diff] [blame] | 59 | template <class ELFT> |
| 60 | SymbolBody *SymbolTable<ELFT>::addUndefined(StringRef Name) { |
| 61 | auto *Sym = new (Alloc) Undefined<ELFT>(Name, Undefined<ELFT>::Required); |
| 62 | resolve(Sym); |
| 63 | return Sym; |
Rafael Espindola | 1d6063e | 2015-09-22 21:24:52 +0000 | [diff] [blame] | 64 | } |
| 65 | |
Rui Ueyama | ff77768 | 2015-10-09 21:12:40 +0000 | [diff] [blame] | 66 | template <class ELFT> |
| 67 | SymbolBody *SymbolTable<ELFT>::addUndefinedOpt(StringRef Name) { |
| 68 | auto *Sym = new (Alloc) Undefined<ELFT>(Name, Undefined<ELFT>::Optional); |
| 69 | resolve(Sym); |
| 70 | return Sym; |
Denis Protivensky | 22220d5 | 2015-10-05 09:43:57 +0000 | [diff] [blame] | 71 | } |
| 72 | |
Rafael Espindola | 0e604f9 | 2015-09-25 18:56:53 +0000 | [diff] [blame] | 73 | template <class ELFT> |
Rafael Espindola | ae81a7b | 2015-10-15 15:29:53 +0000 | [diff] [blame] | 74 | void SymbolTable<ELFT>::addSyntheticSym( |
| 75 | StringRef Name, OutputSectionBase<ELFT::Is64Bits> &Section, |
| 76 | typename ELFFile<ELFT>::uintX_t Value) { |
Rafael Espindola | 0e604f9 | 2015-09-25 18:56:53 +0000 | [diff] [blame] | 77 | typedef typename DefinedSynthetic<ELFT>::Elf_Sym Elf_Sym; |
| 78 | auto ESym = new (Alloc) Elf_Sym; |
| 79 | memset(ESym, 0, sizeof(Elf_Sym)); |
| 80 | ESym->st_value = Value; |
| 81 | auto Sym = new (Alloc) DefinedSynthetic<ELFT>(Name, *ESym, Section); |
Rui Ueyama | 3ce825e | 2015-10-09 21:07:25 +0000 | [diff] [blame] | 82 | resolve(Sym); |
Rafael Espindola | 0e604f9 | 2015-09-25 18:56:53 +0000 | [diff] [blame] | 83 | } |
| 84 | |
Rui Ueyama | 3ce825e | 2015-10-09 21:07:25 +0000 | [diff] [blame] | 85 | template <class ELFT> void SymbolTable<ELFT>::addIgnoredSym(StringRef Name) { |
Rafael Espindola | 5d41326 | 2015-10-01 21:22:26 +0000 | [diff] [blame] | 86 | auto Sym = new (Alloc) |
| 87 | DefinedAbsolute<ELFT>(Name, DefinedAbsolute<ELFT>::IgnoreUndef); |
Rui Ueyama | 3ce825e | 2015-10-09 21:07:25 +0000 | [diff] [blame] | 88 | resolve(Sym); |
Rafael Espindola | 5d41326 | 2015-10-01 21:22:26 +0000 | [diff] [blame] | 89 | } |
| 90 | |
Rui Ueyama | d9189ce | 2015-10-15 17:11:03 +0000 | [diff] [blame^] | 91 | template <class ELFT> bool SymbolTable<ELFT>::isUndefined(StringRef Name) { |
| 92 | if (SymbolBody *Sym = find(Name)) |
| 93 | return Sym->isUndefined(); |
| 94 | return false; |
| 95 | } |
| 96 | |
Rafael Espindola | af70764 | 2015-10-12 01:55:32 +0000 | [diff] [blame] | 97 | template <class ELFT> |
| 98 | void SymbolTable<ELFT>::addELFFile(ELFFileBase<ELFT> *File) { |
Rui Ueyama | 3ce825e | 2015-10-09 21:07:25 +0000 | [diff] [blame] | 99 | if (auto *O = dyn_cast<ObjectFile<ELFT>>(File)) |
Rafael Espindola | b90582db | 2015-10-06 15:03:52 +0000 | [diff] [blame] | 100 | ObjectFiles.emplace_back(O); |
| 101 | else if (auto *S = dyn_cast<SharedFile<ELFT>>(File)) |
| 102 | SharedFiles.emplace_back(S); |
| 103 | |
Rafael Espindola | dfce5a2 | 2015-10-12 02:22:58 +0000 | [diff] [blame] | 104 | if (auto *O = dyn_cast<ObjectFile<ELFT>>(File)) { |
Rafael Espindola | 824d1a9 | 2015-09-04 00:09:43 +0000 | [diff] [blame] | 105 | for (SymbolBody *Body : O->getSymbols()) |
Rui Ueyama | 3ce825e | 2015-10-09 21:07:25 +0000 | [diff] [blame] | 106 | resolve(Body); |
Rafael Espindola | daa92a6 | 2015-08-31 01:16:19 +0000 | [diff] [blame] | 107 | } |
Rafael Espindola | f98d6d8 | 2015-09-03 20:03:54 +0000 | [diff] [blame] | 108 | |
Rafael Espindola | 18173d4 | 2015-09-08 15:50:05 +0000 | [diff] [blame] | 109 | if (auto *S = dyn_cast<SharedFile<ELFT>>(File)) { |
Rafael Espindola | 18173d4 | 2015-09-08 15:50:05 +0000 | [diff] [blame] | 110 | for (SharedSymbol<ELFT> &Body : S->getSharedSymbols()) |
Rui Ueyama | 3ce825e | 2015-10-09 21:07:25 +0000 | [diff] [blame] | 111 | resolve(&Body); |
Rafael Espindola | 824d1a9 | 2015-09-04 00:09:43 +0000 | [diff] [blame] | 112 | } |
| 113 | } |
| 114 | |
Rafael Espindola | 1a49e58 | 2015-09-23 14:10:24 +0000 | [diff] [blame] | 115 | template <class ELFT> |
Rui Ueyama | 3ce825e | 2015-10-09 21:07:25 +0000 | [diff] [blame] | 116 | void SymbolTable<ELFT>::reportConflict(const Twine &Message, |
| 117 | const SymbolBody &Old, |
| 118 | const SymbolBody &New, bool Warning) { |
Rafael Espindola | 1a49e58 | 2015-09-23 14:10:24 +0000 | [diff] [blame] | 119 | typedef typename ELFFile<ELFT>::Elf_Sym Elf_Sym; |
| 120 | typedef typename ELFFile<ELFT>::Elf_Sym_Range Elf_Sym_Range; |
| 121 | |
| 122 | const Elf_Sym &OldE = cast<ELFSymbolBody<ELFT>>(Old).Sym; |
| 123 | const Elf_Sym &NewE = cast<ELFSymbolBody<ELFT>>(New).Sym; |
Rafael Espindola | af70764 | 2015-10-12 01:55:32 +0000 | [diff] [blame] | 124 | ELFFileBase<ELFT> *OldFile = nullptr; |
| 125 | ELFFileBase<ELFT> *NewFile = nullptr; |
Rafael Espindola | 1a49e58 | 2015-09-23 14:10:24 +0000 | [diff] [blame] | 126 | |
Rui Ueyama | 3ce825e | 2015-10-09 21:07:25 +0000 | [diff] [blame] | 127 | for (const std::unique_ptr<ObjectFile<ELFT>> &File : ObjectFiles) { |
| 128 | Elf_Sym_Range Syms = File->getObj().symbols(File->getSymbolTable()); |
Rafael Espindola | 1a49e58 | 2015-09-23 14:10:24 +0000 | [diff] [blame] | 129 | if (&OldE > Syms.begin() && &OldE < Syms.end()) |
Rui Ueyama | 3ce825e | 2015-10-09 21:07:25 +0000 | [diff] [blame] | 130 | OldFile = File.get(); |
Rafael Espindola | 1a49e58 | 2015-09-23 14:10:24 +0000 | [diff] [blame] | 131 | if (&NewE > Syms.begin() && &NewE < Syms.end()) |
Rui Ueyama | 3ce825e | 2015-10-09 21:07:25 +0000 | [diff] [blame] | 132 | NewFile = File.get(); |
Rafael Espindola | 1a49e58 | 2015-09-23 14:10:24 +0000 | [diff] [blame] | 133 | } |
| 134 | |
Igor Kudrin | 65bddea | 2015-10-09 09:58:39 +0000 | [diff] [blame] | 135 | std::string Msg = (Message + ": " + Old.getName() + " in " + |
Rafael Espindola | 4b2ca85 | 2015-09-28 20:30:11 +0000 | [diff] [blame] | 136 | OldFile->getName() + " and " + NewFile->getName()) |
| 137 | .str(); |
Igor Kudrin | 65bddea | 2015-10-09 09:58:39 +0000 | [diff] [blame] | 138 | if (Warning) |
Rafael Espindola | 4b2ca85 | 2015-09-28 20:30:11 +0000 | [diff] [blame] | 139 | warning(Msg); |
| 140 | else |
| 141 | error(Msg); |
Rafael Espindola | 1a49e58 | 2015-09-23 14:10:24 +0000 | [diff] [blame] | 142 | } |
| 143 | |
Michael J. Spencer | 84487f1 | 2015-07-24 21:03:07 +0000 | [diff] [blame] | 144 | // This function resolves conflicts if there's an existing symbol with |
| 145 | // the same name. Decisions are made based on symbol type. |
Rui Ueyama | 3ce825e | 2015-10-09 21:07:25 +0000 | [diff] [blame] | 146 | template <class ELFT> void SymbolTable<ELFT>::resolve(SymbolBody *New) { |
Michael J. Spencer | 1b348a6 | 2015-09-04 22:28:10 +0000 | [diff] [blame] | 147 | Symbol *Sym = insert(New); |
| 148 | if (Sym->Body == New) |
| 149 | return; |
| 150 | |
| 151 | SymbolBody *Existing = Sym->Body; |
| 152 | |
| 153 | if (Lazy *L = dyn_cast<Lazy>(Existing)) { |
| 154 | if (New->isUndefined()) { |
Rafael Espindola | 85a6e0f | 2015-10-06 15:18:50 +0000 | [diff] [blame] | 155 | if (New->isWeak()) { |
| 156 | // See the explanation in SymbolTable::addLazy |
| 157 | L->setUsedInRegularObj(); |
| 158 | L->setWeak(); |
| 159 | return; |
| 160 | } |
Michael J. Spencer | 1b348a6 | 2015-09-04 22:28:10 +0000 | [diff] [blame] | 161 | addMemberFile(L); |
| 162 | return; |
| 163 | } |
| 164 | |
| 165 | // Found a definition for something also in an archive. Ignore the archive |
| 166 | // definition. |
| 167 | Sym->Body = New; |
| 168 | return; |
| 169 | } |
| 170 | |
Igor Kudrin | 65bddea | 2015-10-09 09:58:39 +0000 | [diff] [blame] | 171 | if (New->isTLS() != Existing->isTLS()) |
Rui Ueyama | 3ce825e | 2015-10-09 21:07:25 +0000 | [diff] [blame] | 172 | reportConflict("TLS attribute mismatch for symbol", *Existing, *New, false); |
Igor Kudrin | 65bddea | 2015-10-09 09:58:39 +0000 | [diff] [blame] | 173 | |
Michael J. Spencer | 1b348a6 | 2015-09-04 22:28:10 +0000 | [diff] [blame] | 174 | // compare() returns -1, 0, or 1 if the lhs symbol is less preferable, |
| 175 | // equivalent (conflicting), or more preferable, respectively. |
| 176 | int comp = Existing->compare<ELFT>(New); |
| 177 | if (comp < 0) |
| 178 | Sym->Body = New; |
Rafael Espindola | 1a49e58 | 2015-09-23 14:10:24 +0000 | [diff] [blame] | 179 | else if (comp == 0) |
Rui Ueyama | 3ce825e | 2015-10-09 21:07:25 +0000 | [diff] [blame] | 180 | reportConflict("duplicate symbol", *Existing, *New, |
| 181 | Config->AllowMultipleDefinition); |
Michael J. Spencer | 1b348a6 | 2015-09-04 22:28:10 +0000 | [diff] [blame] | 182 | } |
| 183 | |
Rui Ueyama | 3ce825e | 2015-10-09 21:07:25 +0000 | [diff] [blame] | 184 | template <class ELFT> Symbol *SymbolTable<ELFT>::insert(SymbolBody *New) { |
Michael J. Spencer | 84487f1 | 2015-07-24 21:03:07 +0000 | [diff] [blame] | 185 | // Find an existing Symbol or create and insert a new one. |
| 186 | StringRef Name = New->getName(); |
| 187 | Symbol *&Sym = Symtab[Name]; |
| 188 | if (!Sym) { |
| 189 | Sym = new (Alloc) Symbol(New); |
| 190 | New->setBackref(Sym); |
Michael J. Spencer | 1b348a6 | 2015-09-04 22:28:10 +0000 | [diff] [blame] | 191 | return Sym; |
Michael J. Spencer | 84487f1 | 2015-07-24 21:03:07 +0000 | [diff] [blame] | 192 | } |
| 193 | New->setBackref(Sym); |
Michael J. Spencer | 1b348a6 | 2015-09-04 22:28:10 +0000 | [diff] [blame] | 194 | return Sym; |
| 195 | } |
Michael J. Spencer | 84487f1 | 2015-07-24 21:03:07 +0000 | [diff] [blame] | 196 | |
Rui Ueyama | f8432d9 | 2015-10-13 16:34:14 +0000 | [diff] [blame] | 197 | template <class ELFT> SymbolBody *SymbolTable<ELFT>::find(StringRef Name) { |
| 198 | auto It = Symtab.find(Name); |
| 199 | if (It == Symtab.end()) |
| 200 | return nullptr; |
| 201 | return It->second->Body; |
| 202 | } |
| 203 | |
Rui Ueyama | 3ce825e | 2015-10-09 21:07:25 +0000 | [diff] [blame] | 204 | template <class ELFT> void SymbolTable<ELFT>::addLazy(Lazy *New) { |
Michael J. Spencer | 1b348a6 | 2015-09-04 22:28:10 +0000 | [diff] [blame] | 205 | Symbol *Sym = insert(New); |
| 206 | if (Sym->Body == New) |
| 207 | return; |
Michael J. Spencer | 84487f1 | 2015-07-24 21:03:07 +0000 | [diff] [blame] | 208 | SymbolBody *Existing = Sym->Body; |
Rafael Espindola | 8614c56 | 2015-10-06 14:33:58 +0000 | [diff] [blame] | 209 | if (Existing->isDefined() || Existing->isLazy()) |
Michael J. Spencer | 1b348a6 | 2015-09-04 22:28:10 +0000 | [diff] [blame] | 210 | return; |
| 211 | Sym->Body = New; |
| 212 | assert(Existing->isUndefined() && "Unexpected symbol kind."); |
Rafael Espindola | 8614c56 | 2015-10-06 14:33:58 +0000 | [diff] [blame] | 213 | |
| 214 | // Weak undefined symbols should not fetch members from archives. |
| 215 | // If we were to keep old symbol we would not know that an archive member was |
| 216 | // available if a strong undefined symbol shows up afterwards in the link. |
| 217 | // If a strong undefined symbol never shows up, this lazy symbol will |
| 218 | // get to the end of the link and must be treated as the weak undefined one. |
| 219 | // We set UsedInRegularObj in a similar way to what is done with shared |
| 220 | // symbols and mark it as weak to reduce how many special cases are needed. |
| 221 | if (Existing->isWeak()) { |
| 222 | New->setUsedInRegularObj(); |
| 223 | New->setWeak(); |
| 224 | return; |
| 225 | } |
Michael J. Spencer | 1b348a6 | 2015-09-04 22:28:10 +0000 | [diff] [blame] | 226 | addMemberFile(New); |
| 227 | } |
| 228 | |
Rui Ueyama | 3d45179 | 2015-10-12 18:03:21 +0000 | [diff] [blame] | 229 | template <class ELFT> |
| 230 | void SymbolTable<ELFT>::checkCompatibility(std::unique_ptr<InputFile> &File) { |
| 231 | auto *E = dyn_cast<ELFFileBase<ELFT>>(File.get()); |
| 232 | if (!E) |
| 233 | return; |
Rui Ueyama | e717a71 | 2015-10-13 16:20:50 +0000 | [diff] [blame] | 234 | if (E->getELFKind() == Config->EKind && E->getEMachine() == Config->EMachine) |
Rui Ueyama | 3d45179 | 2015-10-12 18:03:21 +0000 | [diff] [blame] | 235 | return; |
| 236 | StringRef A = E->getName(); |
| 237 | StringRef B = Config->Emulation; |
| 238 | if (B.empty()) |
| 239 | B = Config->FirstElf->getName(); |
| 240 | error(A + " is incompatible with " + B); |
| 241 | } |
| 242 | |
Rui Ueyama | 3ce825e | 2015-10-09 21:07:25 +0000 | [diff] [blame] | 243 | template <class ELFT> void SymbolTable<ELFT>::addMemberFile(Lazy *Body) { |
Michael J. Spencer | 1b348a6 | 2015-09-04 22:28:10 +0000 | [diff] [blame] | 244 | // getMember returns nullptr if the member was already read from the library. |
Rui Ueyama | 690db67 | 2015-10-14 22:32:10 +0000 | [diff] [blame] | 245 | if (std::unique_ptr<InputFile> File = Body->getMember()) |
| 246 | addFile(std::move(File)); |
Michael J. Spencer | 84487f1 | 2015-07-24 21:03:07 +0000 | [diff] [blame] | 247 | } |
Rafael Espindola | 0e604f9 | 2015-09-25 18:56:53 +0000 | [diff] [blame] | 248 | |
Rui Ueyama | 93bfee5 | 2015-10-13 18:10:33 +0000 | [diff] [blame] | 249 | // This function takes care of the case in which shared libraries depend on |
| 250 | // the user program (not the other way, which is usual). Shared libraries |
| 251 | // may have undefined symbols, expecting that the user program provides |
| 252 | // the definitions for them. An example is BSD's __progname symbol. |
| 253 | // We need to put such symbols to the main program's .dynsym so that |
| 254 | // shared libraries can find them. |
| 255 | // Except this, we ignore undefined symbols in DSOs. |
| 256 | template <class ELFT> void SymbolTable<ELFT>::scanShlibUndefined() { |
Rui Ueyama | f8432d9 | 2015-10-13 16:34:14 +0000 | [diff] [blame] | 257 | for (std::unique_ptr<SharedFile<ELFT>> &File : SharedFiles) |
| 258 | for (StringRef U : File->getUndefinedSymbols()) |
| 259 | if (SymbolBody *Sym = find(U)) |
| 260 | if (Sym->isDefined()) |
| 261 | Sym->setUsedInDynamicReloc(); |
| 262 | } |
| 263 | |
Rui Ueyama | 3ce825e | 2015-10-09 21:07:25 +0000 | [diff] [blame] | 264 | template class lld::elf2::SymbolTable<ELF32LE>; |
| 265 | template class lld::elf2::SymbolTable<ELF32BE>; |
| 266 | template class lld::elf2::SymbolTable<ELF64LE>; |
| 267 | template class lld::elf2::SymbolTable<ELF64BE>; |