Coverage Report

Created: 2017-09-19 22:28

/Users/buildslave/jenkins/sharedspace/clang-stage2-coverage-R@2/llvm/tools/lld/ELF/Symbols.cpp
Line
Count
Source (jump to first uncovered line)
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"
11
#include "Error.h"
12
#include "InputFiles.h"
13
#include "InputSection.h"
14
#include "OutputSections.h"
15
#include "Strings.h"
16
#include "SyntheticSections.h"
17
#include "Target.h"
18
#include "Writer.h"
19
20
#include "llvm/ADT/STLExtras.h"
21
#include "llvm/Support/Path.h"
22
#include <cstring>
23
24
using namespace llvm;
25
using namespace llvm::object;
26
using namespace llvm::ELF;
27
28
using namespace lld;
29
using namespace lld::elf;
30
31
DefinedRegular *ElfSym::Bss;
32
DefinedRegular *ElfSym::Etext1;
33
DefinedRegular *ElfSym::Etext2;
34
DefinedRegular *ElfSym::Edata1;
35
DefinedRegular *ElfSym::Edata2;
36
DefinedRegular *ElfSym::End1;
37
DefinedRegular *ElfSym::End2;
38
DefinedRegular *ElfSym::GlobalOffsetTable;
39
DefinedRegular *ElfSym::MipsGp;
40
DefinedRegular *ElfSym::MipsGpDisp;
41
DefinedRegular *ElfSym::MipsLocalGp;
42
43
8.93k
static uint64_t getSymVA(const SymbolBody &Body, int64_t &Addend) {
44
8.93k
  switch (Body.kind()) {
45
7.91k
  case SymbolBody::DefinedRegularKind: {
46
7.91k
    auto &D = cast<DefinedRegular>(Body);
47
7.91k
    SectionBase *IS = D.Section;
48
7.91k
    if (auto *ISB = dyn_cast_or_null<InputSectionBase>(IS))
49
6.90k
      IS = ISB->Repl;
50
7.91k
51
7.91k
    // According to the ELF spec reference to a local symbol from outside
52
7.91k
    // the group are not allowed. Unfortunately .eh_frame breaks that rule
53
7.91k
    // and must be treated specially. For now we just replace the symbol with
54
7.91k
    // 0.
55
7.91k
    if (IS == &InputSection::Discarded)
56
2
      return 0;
57
7.91k
58
7.91k
    // This is an absolute symbol.
59
7.91k
    
if (7.91k
!IS7.91k
)
60
436
      return D.Value;
61
7.48k
62
7.48k
    uint64_t Offset = D.Value;
63
7.48k
64
7.48k
    // An object in an SHF_MERGE section might be referenced via a
65
7.48k
    // section symbol (as a hack for reducing the number of local
66
7.48k
    // symbols).
67
7.48k
    // Depending on the addend, the reference via a section symbol
68
7.48k
    // refers to a different object in the merge section.
69
7.48k
    // Since the objects in the merge section are not necessarily
70
7.48k
    // contiguous in the output, the addend can thus affect the final
71
7.48k
    // VA in a non-linear way.
72
7.48k
    // To make this work, we incorporate the addend into the section
73
7.48k
    // offset (and zero out the addend for later processing) so that
74
7.48k
    // we find the right object in the section.
75
7.48k
    if (
D.isSection()7.48k
) {
76
610
      Offset += Addend;
77
610
      Addend = 0;
78
610
    }
79
7.48k
80
7.48k
    const OutputSection *OutSec = IS->getOutputSection();
81
7.48k
82
7.48k
    // In the typical case, this is actually very simple and boils
83
7.48k
    // down to adding together 3 numbers:
84
7.48k
    // 1. The address of the output section.
85
7.48k
    // 2. The offset of the input section within the output section.
86
7.48k
    // 3. The offset within the input section (this addition happens
87
7.48k
    //    inside InputSection::getOffset).
88
7.48k
    //
89
7.48k
    // If you understand the data structures involved with this next
90
7.48k
    // line (and how they get built), then you have a pretty good
91
7.48k
    // understanding of the linker.
92
7.48k
    uint64_t VA = (OutSec ? 
OutSec->Addr7.47k
:
09
) + IS->getOffset(Offset);
93
7.48k
94
7.48k
    if (
D.isTls() && 7.48k
!Config->Relocatable302
) {
95
301
      if (!Out::TlsPhdr)
96
0
        fatal(toString(D.getFile()) +
97
0
              " has an STT_TLS symbol but doesn't have an SHF_TLS section");
98
301
      return VA - Out::TlsPhdr->p_vaddr;
99
301
    }
100
7.18k
    return VA;
101
7.18k
  }
102
122
  case SymbolBody::DefinedCommonKind: {
103
122
    if (!Config->DefineCommon)
104
0
      return 0;
105
122
    auto DC = cast<DefinedCommon>(Body);
106
122
    if (!DC.Live)
107
1
      return 0;
108
121
    return DC.Section->getParent()->Addr + DC.Section->OutSecOff;
109
121
  }
110
499
  case SymbolBody::SharedKind: {
111
499
    auto &SS = cast<SharedSymbol>(Body);
112
499
    if (SS.CopyRelSec)
113
96
      return SS.CopyRelSec->getParent()->Addr + SS.CopyRelSec->OutSecOff;
114
403
    
if (403
SS.NeedsPltAddr403
)
115
80
      return Body.getPltVA();
116
323
    return 0;
117
323
  }
118
372
  case SymbolBody::UndefinedKind:
119
372
    return 0;
120
21
  case SymbolBody::LazyArchiveKind:
121
21
  case SymbolBody::LazyObjectKind:
122
21
    assert(Body.symbol()->IsUsedInRegularObj && "lazy symbol reached writer");
123
21
    return 0;
124
0
  }
125
0
  
llvm_unreachable0
("invalid symbol kind");
126
0
}
127
128
SymbolBody::SymbolBody(Kind K, StringRefZ Name, bool IsLocal, uint8_t StOther,
129
                       uint8_t Type)
130
    : SymbolKind(K), NeedsPltAddr(false), IsLocal(IsLocal),
131
      IsInGlobalMipsGot(false), Is32BitMipsGot(false), IsInIplt(false),
132
      IsInIgot(false), IsPreemptible(false), Type(Type), StOther(StOther),
133
9.26k
      Name(Name) {}
134
135
1.57k
bool SymbolBody::isUndefWeak() const {
136
1.57k
  if (isLocal())
137
683
    return false;
138
896
  
return symbol()->isWeak() && 896
(isUndefined() || 74
isLazy()18
);
139
1.57k
}
140
141
538
InputFile *SymbolBody::getFile() const {
142
538
  if (
isLocal()538
) {
143
15
    const SectionBase *Sec = cast<DefinedRegular>(this)->Section;
144
15
    // Local absolute symbols actually have a file, but that is not currently
145
15
    // used. We could support that by having a mostly redundant InputFile in
146
15
    // SymbolBody, or having a special absolute section if needed.
147
15
    return Sec ? 
cast<InputSectionBase>(Sec)->File12
:
nullptr3
;
148
15
  }
149
523
  return symbol()->File;
150
523
}
151
152
// Overwrites all attributes with Other's so that this symbol becomes
153
// an alias to Other. This is useful for handling some options such as
154
// --wrap.
155
18
void SymbolBody::copy(SymbolBody *Other) {
156
18
  memcpy(symbol()->Body.buffer, Other->symbol()->Body.buffer,
157
18
         sizeof(Symbol::Body));
158
18
}
159
160
8.93k
uint64_t SymbolBody::getVA(int64_t Addend) const {
161
8.93k
  uint64_t OutVA = getSymVA(*this, Addend);
162
8.93k
  return OutVA + Addend;
163
8.93k
}
164
165
129
uint64_t SymbolBody::getGotVA() const {
166
129
  return InX::Got->getVA() + getGotOffset();
167
129
}
168
169
274
uint64_t SymbolBody::getGotOffset() const {
170
274
  return GotIndex * Target->GotEntrySize;
171
274
}
172
173
214
uint64_t SymbolBody::getGotPltVA() const {
174
214
  if (this->IsInIgot)
175
27
    return InX::IgotPlt->getVA() + getGotPltOffset();
176
187
  return InX::GotPlt->getVA() + getGotPltOffset();
177
187
}
178
179
427
uint64_t SymbolBody::getGotPltOffset() const {
180
427
  return GotPltIndex * Target->GotPltEntrySize;
181
427
}
182
183
470
uint64_t SymbolBody::getPltVA() const {
184
470
  if (this->IsInIplt)
185
42
    return InX::Iplt->getVA() + PltIndex * Target->PltEntrySize;
186
428
  return InX::Plt->getVA() + Target->PltHeaderSize +
187
428
         PltIndex * Target->PltEntrySize;
188
428
}
189
190
5.57k
template <class ELFT> typename ELFT::uint SymbolBody::getSize() const {
191
5.57k
  if (const auto *C = dyn_cast<DefinedCommon>(this))
192
95
    return C->Size;
193
5.47k
  
if (const auto *5.47k
DR5.47k
= dyn_cast<DefinedRegular>(this))
194
5.41k
    return DR->Size;
195
60
  
if (const auto *60
S60
= dyn_cast<SharedSymbol>(this))
196
60
    return S->getSize<ELFT>();
197
0
  return 0;
198
0
}
llvm::object::ELFType<(llvm::support::endianness)1, false>::uint lld::elf::SymbolBody::getSize<llvm::object::ELFType<(llvm::support::endianness)1, false> >() const
Line
Count
Source
190
1.05k
template <class ELFT> typename ELFT::uint SymbolBody::getSize() const {
191
1.05k
  if (const auto *C = dyn_cast<DefinedCommon>(this))
192
8
    return C->Size;
193
1.04k
  
if (const auto *1.04k
DR1.04k
= dyn_cast<DefinedRegular>(this))
194
1.03k
    return DR->Size;
195
12
  
if (const auto *12
S12
= dyn_cast<SharedSymbol>(this))
196
12
    return S->getSize<ELFT>();
197
0
  return 0;
198
0
}
llvm::object::ELFType<(llvm::support::endianness)0, false>::uint lld::elf::SymbolBody::getSize<llvm::object::ELFType<(llvm::support::endianness)0, false> >() const
Line
Count
Source
190
582
template <class ELFT> typename ELFT::uint SymbolBody::getSize() const {
191
582
  if (const auto *C = dyn_cast<DefinedCommon>(this))
192
0
    return C->Size;
193
582
  
if (const auto *582
DR582
= dyn_cast<DefinedRegular>(this))
194
572
    return DR->Size;
195
10
  
if (const auto *10
S10
= dyn_cast<SharedSymbol>(this))
196
10
    return S->getSize<ELFT>();
197
0
  return 0;
198
0
}
llvm::object::ELFType<(llvm::support::endianness)1, true>::uint lld::elf::SymbolBody::getSize<llvm::object::ELFType<(llvm::support::endianness)1, true> >() const
Line
Count
Source
190
3.72k
template <class ELFT> typename ELFT::uint SymbolBody::getSize() const {
191
3.72k
  if (const auto *C = dyn_cast<DefinedCommon>(this))
192
85
    return C->Size;
193
3.64k
  
if (const auto *3.64k
DR3.64k
= dyn_cast<DefinedRegular>(this))
194
3.60k
    return DR->Size;
195
38
  
if (const auto *38
S38
= dyn_cast<SharedSymbol>(this))
196
38
    return S->getSize<ELFT>();
197
0
  return 0;
198
0
}
llvm::object::ELFType<(llvm::support::endianness)0, true>::uint lld::elf::SymbolBody::getSize<llvm::object::ELFType<(llvm::support::endianness)0, true> >() const
Line
Count
Source
190
209
template <class ELFT> typename ELFT::uint SymbolBody::getSize() const {
191
209
  if (const auto *C = dyn_cast<DefinedCommon>(this))
192
2
    return C->Size;
193
207
  
if (const auto *207
DR207
= dyn_cast<DefinedRegular>(this))
194
207
    return DR->Size;
195
0
  
if (const auto *0
S0
= dyn_cast<SharedSymbol>(this))
196
0
    return S->getSize<ELFT>();
197
0
  return 0;
198
0
}
199
200
6.54k
OutputSection *SymbolBody::getOutputSection() const {
201
6.54k
  if (auto *
S6.54k
= dyn_cast<DefinedRegular>(this)) {
202
5.66k
    if (S->Section)
203
5.35k
      return S->Section->getOutputSection();
204
314
    return nullptr;
205
314
  }
206
883
207
883
  
if (auto *883
S883
= dyn_cast<SharedSymbol>(this)) {
208
448
    if (S->CopyRelSec)
209
58
      return S->CopyRelSec->getParent();
210
390
    return nullptr;
211
390
  }
212
435
213
435
  
if (auto *435
S435
= dyn_cast<DefinedCommon>(this)) {
214
94
    if (Config->DefineCommon)
215
92
      return S->Section->getParent();
216
2
    return nullptr;
217
2
  }
218
341
219
341
  return nullptr;
220
341
}
221
222
// If a symbol name contains '@', the characters after that is
223
// a symbol version name. This function parses that.
224
3.58k
void SymbolBody::parseSymbolVersion() {
225
3.58k
  StringRef S = getName();
226
3.58k
  size_t Pos = S.find('@');
227
3.58k
  if (
Pos == 0 || 3.58k
Pos == StringRef::npos3.58k
)
228
3.53k
    return;
229
56
  StringRef Verstr = S.substr(Pos + 1);
230
56
  if (Verstr.empty())
231
0
    return;
232
56
233
56
  // Truncate the symbol name so that it doesn't include the version string.
234
56
  Name = {S.data(), Pos};
235
56
236
56
  // If this is not in this DSO, it is not a definition.
237
56
  if (!isInCurrentDSO())
238
42
    return;
239
14
240
14
  // '@@' in a symbol name means the default version.
241
14
  // It is usually the most recent one.
242
14
  bool IsDefault = (Verstr[0] == '@');
243
14
  if (IsDefault)
244
8
    Verstr = Verstr.substr(1);
245
14
246
15
  for (VersionDefinition &Ver : Config->VersionDefinitions) {
247
15
    if (Ver.Name != Verstr)
248
6
      continue;
249
9
250
9
    
if (9
IsDefault9
)
251
4
      symbol()->VersionId = Ver.Id;
252
9
    else
253
5
      symbol()->VersionId = Ver.Id | VERSYM_HIDDEN;
254
15
    return;
255
15
  }
256
5
257
5
  // It is an error if the specified version is not defined.
258
5
  // Usually version script is not provided when linking executable,
259
5
  // but we may still want to override a versioned symbol from DSO,
260
5
  // so we do not report error in this case.
261
5
  
if (5
Config->Shared5
)
262
1
    error(toString(getFile()) + ": symbol " + S + " has undefined version " +
263
1
          Verstr);
264
3.58k
}
265
266
Defined::Defined(Kind K, StringRefZ Name, bool IsLocal, uint8_t StOther,
267
                 uint8_t Type)
268
6.21k
    : SymbolBody(K, Name, IsLocal, StOther, Type) {}
269
270
101
template <class ELFT> bool DefinedRegular::isMipsPIC() const {
271
101
  typedef typename ELFT::Ehdr Elf_Ehdr;
272
101
  if (
!Section || 101
!isFunc()101
)
273
43
    return false;
274
58
275
58
  auto *Sec = cast<InputSectionBase>(Section);
276
58
  const Elf_Ehdr *Hdr = Sec->template getFile<ELFT>()->getObj().getHeader();
277
58
  return (this->StOther & STO_MIPS_MIPS16) == STO_MIPS_PIC ||
278
51
         (Hdr->e_flags & EF_MIPS_PIC);
279
101
}
bool lld::elf::DefinedRegular::isMipsPIC<llvm::object::ELFType<(llvm::support::endianness)0, true> >() const
Line
Count
Source
270
5
template <class ELFT> bool DefinedRegular::isMipsPIC() const {
271
5
  typedef typename ELFT::Ehdr Elf_Ehdr;
272
5
  if (
!Section || 5
!isFunc()5
)
273
5
    return false;
274
0
275
0
  auto *Sec = cast<InputSectionBase>(Section);
276
0
  const Elf_Ehdr *Hdr = Sec->template getFile<ELFT>()->getObj().getHeader();
277
0
  return (this->StOther & STO_MIPS_MIPS16) == STO_MIPS_PIC ||
278
0
         (Hdr->e_flags & EF_MIPS_PIC);
279
5
}
Unexecuted instantiation: bool lld::elf::DefinedRegular::isMipsPIC<llvm::object::ELFType<(llvm::support::endianness)1, false> >() const
Unexecuted instantiation: bool lld::elf::DefinedRegular::isMipsPIC<llvm::object::ELFType<(llvm::support::endianness)1, true> >() const
bool lld::elf::DefinedRegular::isMipsPIC<llvm::object::ELFType<(llvm::support::endianness)0, false> >() const
Line
Count
Source
270
96
template <class ELFT> bool DefinedRegular::isMipsPIC() const {
271
96
  typedef typename ELFT::Ehdr Elf_Ehdr;
272
96
  if (
!Section || 96
!isFunc()96
)
273
38
    return false;
274
58
275
58
  auto *Sec = cast<InputSectionBase>(Section);
276
58
  const Elf_Ehdr *Hdr = Sec->template getFile<ELFT>()->getObj().getHeader();
277
58
  return (this->StOther & STO_MIPS_MIPS16) == STO_MIPS_PIC ||
278
51
         (Hdr->e_flags & EF_MIPS_PIC);
279
96
}
280
281
Undefined::Undefined(StringRefZ Name, bool IsLocal, uint8_t StOther,
282
                     uint8_t Type)
283
2.96k
    : SymbolBody(SymbolBody::UndefinedKind, Name, IsLocal, StOther, Type) {}
284
285
DefinedCommon::DefinedCommon(StringRef Name, uint64_t Size, uint32_t Alignment,
286
                             uint8_t StOther, uint8_t Type)
287
    : Defined(SymbolBody::DefinedCommonKind, Name, /*IsLocal=*/false, StOther,
288
              Type),
289
108
      Live(!Config->GcSections), Alignment(Alignment), Size(Size) {}
290
291
// If a shared symbol is referred via a copy relocation, its alignment
292
// becomes part of the ABI. This function returns a symbol alignment.
293
// Because symbols don't have alignment attributes, we need to infer that.
294
29
template <class ELFT> uint32_t SharedSymbol::getAlignment() const {
295
29
  SharedFile<ELFT> *File = getFile<ELFT>();
296
29
  uint32_t SecAlign = File->getSection(getSym<ELFT>())->sh_addralign;
297
29
  uint64_t SymValue = getSym<ELFT>().st_value;
298
29
  uint32_t SymAlign = uint32_t(1) << countTrailingZeros(SymValue);
299
29
  return std::min(SecAlign, SymAlign);
300
29
}
unsigned int lld::elf::SharedSymbol::getAlignment<llvm::object::ELFType<(llvm::support::endianness)0, false> >() const
Line
Count
Source
294
5
template <class ELFT> uint32_t SharedSymbol::getAlignment() const {
295
5
  SharedFile<ELFT> *File = getFile<ELFT>();
296
5
  uint32_t SecAlign = File->getSection(getSym<ELFT>())->sh_addralign;
297
5
  uint64_t SymValue = getSym<ELFT>().st_value;
298
5
  uint32_t SymAlign = uint32_t(1) << countTrailingZeros(SymValue);
299
5
  return std::min(SecAlign, SymAlign);
300
5
}
Unexecuted instantiation: unsigned int lld::elf::SharedSymbol::getAlignment<llvm::object::ELFType<(llvm::support::endianness)0, true> >() const
unsigned int lld::elf::SharedSymbol::getAlignment<llvm::object::ELFType<(llvm::support::endianness)1, false> >() const
Line
Count
Source
294
6
template <class ELFT> uint32_t SharedSymbol::getAlignment() const {
295
6
  SharedFile<ELFT> *File = getFile<ELFT>();
296
6
  uint32_t SecAlign = File->getSection(getSym<ELFT>())->sh_addralign;
297
6
  uint64_t SymValue = getSym<ELFT>().st_value;
298
6
  uint32_t SymAlign = uint32_t(1) << countTrailingZeros(SymValue);
299
6
  return std::min(SecAlign, SymAlign);
300
6
}
unsigned int lld::elf::SharedSymbol::getAlignment<llvm::object::ELFType<(llvm::support::endianness)1, true> >() const
Line
Count
Source
294
18
template <class ELFT> uint32_t SharedSymbol::getAlignment() const {
295
18
  SharedFile<ELFT> *File = getFile<ELFT>();
296
18
  uint32_t SecAlign = File->getSection(getSym<ELFT>())->sh_addralign;
297
18
  uint64_t SymValue = getSym<ELFT>().st_value;
298
18
  uint32_t SymAlign = uint32_t(1) << countTrailingZeros(SymValue);
299
18
  return std::min(SecAlign, SymAlign);
300
18
}
301
302
22
InputFile *Lazy::fetch() {
303
22
  if (auto *S = dyn_cast<LazyArchive>(this))
304
16
    return S->fetch();
305
6
  return cast<LazyObject>(this)->fetch();
306
6
}
307
308
LazyArchive::LazyArchive(const llvm::object::Archive::Symbol S, uint8_t Type)
309
79
    : Lazy(LazyArchiveKind, S.getName(), Type), Sym(S) {}
310
311
LazyObject::LazyObject(StringRef Name, uint8_t Type)
312
14
    : Lazy(LazyObjectKind, Name, Type) {}
313
314
32
ArchiveFile *LazyArchive::getFile() {
315
32
  return cast<ArchiveFile>(SymbolBody::getFile());
316
32
}
317
318
16
InputFile *LazyArchive::fetch() {
319
16
  std::pair<MemoryBufferRef, uint64_t> MBInfo = getFile()->getMember(&Sym);
320
16
321
16
  // getMember returns an empty buffer if the member was already
322
16
  // read from the library.
323
16
  if (MBInfo.first.getBuffer().empty())
324
0
    return nullptr;
325
16
  return createObjectFile(MBInfo.first, getFile()->getName(), MBInfo.second);
326
16
}
327
328
6
LazyObjFile *LazyObject::getFile() {
329
6
  return cast<LazyObjFile>(SymbolBody::getFile());
330
6
}
331
332
6
InputFile *LazyObject::fetch() { return getFile()->fetch(); }
333
334
15.1k
uint8_t Symbol::computeBinding() const {
335
15.1k
  if (Config->Relocatable)
336
230
    return Binding;
337
14.9k
  
if (14.9k
Visibility != STV_DEFAULT && 14.9k
Visibility != STV_PROTECTED4.20k
)
338
4.12k
    return STB_LOCAL;
339
10.8k
  
if (10.8k
VersionId == VER_NDX_LOCAL && 10.8k
body()->isInCurrentDSO()347
)
340
256
    return STB_LOCAL;
341
10.5k
  
if (10.5k
Config->NoGnuUnique && 10.5k
Binding == STB_GNU_UNIQUE10
)
342
5
    return STB_GLOBAL;
343
10.5k
  return Binding;
344
10.5k
}
345
346
7.43k
bool Symbol::includeInDynsym() const {
347
7.43k
  if (!Config->HasDynSymTab)
348
1.81k
    return false;
349
5.61k
  
if (5.61k
computeBinding() == STB_LOCAL5.61k
)
350
2.14k
    return false;
351
3.47k
  
if (3.47k
!body()->isInCurrentDSO()3.47k
)
352
1.10k
    return true;
353
2.37k
  return ExportDynamic;
354
2.37k
}
355
356
// Print out a log message for --trace-symbol.
357
52
void elf::printTraceSymbol(Symbol *Sym) {
358
52
  SymbolBody *B = Sym->body();
359
52
  std::string S;
360
52
  if (B->isUndefined())
361
16
    S = ": reference to ";
362
36
  else 
if (36
B->isCommon()36
)
363
5
    S = ": common definition of ";
364
36
  else
365
31
    S = ": definition of ";
366
52
367
52
  message(toString(Sym->File) + S + B->getName());
368
52
}
369
370
// Returns a symbol for an error message.
371
144
std::string lld::toString(const SymbolBody &B) {
372
144
  if (Config->Demangle)
373
136
    
if (Optional<std::string> 136
S136
= demangle(B.getName()))
374
9
      return *S;
375
135
  return B.getName();
376
135
}
377
378
template uint32_t SymbolBody::template getSize<ELF32LE>() const;
379
template uint32_t SymbolBody::template getSize<ELF32BE>() const;
380
template uint64_t SymbolBody::template getSize<ELF64LE>() const;
381
template uint64_t SymbolBody::template getSize<ELF64BE>() const;
382
383
template bool DefinedRegular::template isMipsPIC<ELF32LE>() const;
384
template bool DefinedRegular::template isMipsPIC<ELF32BE>() const;
385
template bool DefinedRegular::template isMipsPIC<ELF64LE>() const;
386
template bool DefinedRegular::template isMipsPIC<ELF64BE>() const;
387
388
template uint32_t SharedSymbol::template getAlignment<ELF32LE>() const;
389
template uint32_t SharedSymbol::template getAlignment<ELF32BE>() const;
390
template uint32_t SharedSymbol::template getAlignment<ELF64LE>() const;
391
template uint32_t SharedSymbol::template getAlignment<ELF64BE>() const;