Coverage Report

Created: 2017-10-03 07:32

/Users/buildslave/jenkins/sharedspace/clang-stage2-coverage-R@2/llvm/tools/lld/ELF/Target.h
Line
Count
Source (jump to first uncovered line)
1
//===- Target.h -------------------------------------------------*- C++ -*-===//
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
#ifndef LLD_ELF_TARGET_H
11
#define LLD_ELF_TARGET_H
12
13
#include "Error.h"
14
#include "InputSection.h"
15
#include "llvm/Object/ELF.h"
16
17
namespace lld {
18
std::string toString(uint32_t RelType);
19
20
namespace elf {
21
class InputFile;
22
class SymbolBody;
23
24
class TargetInfo {
25
public:
26
25
  virtual bool isPicRel(uint32_t Type) const { return true; }
27
86
  virtual uint32_t getDynRel(uint32_t Type) const { return Type; }
28
29
  virtual void writeGotPltHeader(uint8_t *Buf) const {}
29
2
  virtual void writeGotPlt(uint8_t *Buf, const SymbolBody &S) const {};
30
  virtual void writeIgotPlt(uint8_t *Buf, const SymbolBody &S) const;
31
  virtual int64_t getImplicitAddend(const uint8_t *Buf, uint32_t Type) const;
32
33
  // If lazy binding is supported, the first entry of the PLT has code
34
  // to call the dynamic linker to resolve PLT entries the first time
35
  // they are called. This function writes that code.
36
0
  virtual void writePltHeader(uint8_t *Buf) const {}
37
38
  virtual void writePlt(uint8_t *Buf, uint64_t GotEntryAddr,
39
                        uint64_t PltEntryAddr, int32_t Index,
40
0
                        unsigned RelOff) const {}
41
117
  virtual void addPltHeaderSymbols(InputSectionBase *IS) const {}
42
181
  virtual void addPltSymbols(InputSectionBase *IS, uint64_t Off) const {}
43
  // Returns true if a relocation only uses the low bits of a value such that
44
  // all those bits are in in the same page. For example, if the relocation
45
  // only uses the low 12 bits in a system with 4k pages. If this is true, the
46
  // bits will always have the same value at runtime and we don't have to emit
47
  // a dynamic relocation.
48
  virtual bool usesOnlyLowPageBits(uint32_t Type) const;
49
50
  // Decide whether a Thunk is needed for the relocation from File
51
  // targeting S.
52
  virtual bool needsThunk(RelExpr Expr, uint32_t RelocType,
53
                          const InputFile *File, const SymbolBody &S) const;
54
  // Return true if we can reach Dst from Src with Relocation RelocType
55
  virtual bool inBranchRange(uint32_t RelocType, uint64_t Src,
56
                             uint64_t Dst) const;
57
  virtual RelExpr getRelExpr(uint32_t Type, const SymbolBody &S,
58
                             const InputFile &File,
59
                             const uint8_t *Loc) const = 0;
60
  virtual void relocateOne(uint8_t *Loc, uint32_t Type, uint64_t Val) const = 0;
61
  virtual ~TargetInfo();
62
63
  unsigned TlsGdRelaxSkip = 1;
64
  unsigned PageSize = 4096;
65
  unsigned DefaultMaxPageSize = 4096;
66
67
  // On FreeBSD x86_64 the first page cannot be mmaped.
68
  // On Linux that is controled by vm.mmap_min_addr. At least on some x86_64
69
  // installs that is 65536, so the first 15 pages cannot be used.
70
  // Given that, the smallest value that can be used in here is 0x10000.
71
  uint64_t DefaultImageBase = 0x10000;
72
73
  // Offset of _GLOBAL_OFFSET_TABLE_ from base of .got section. Use -1 for
74
  // end of .got
75
  uint64_t GotBaseSymOff = 0;
76
77
  uint32_t CopyRel;
78
  uint32_t GotRel;
79
  uint32_t PltRel;
80
  uint32_t RelativeRel;
81
  uint32_t IRelativeRel;
82
  uint32_t TlsDescRel;
83
  uint32_t TlsGotRel;
84
  uint32_t TlsModuleIndexRel;
85
  uint32_t TlsOffsetRel;
86
  unsigned GotEntrySize = 0;
87
  unsigned GotPltEntrySize = 0;
88
  unsigned PltEntrySize;
89
  unsigned PltHeaderSize;
90
91
  // At least on x86_64 positions 1 and 2 are used by the first plt entry
92
  // to support lazy loading.
93
  unsigned GotPltHeaderEntriesNum = 3;
94
95
  // Set to 0 for variant 2
96
  unsigned TcbSize = 0;
97
98
  bool NeedsThunks = false;
99
100
  // A 4-byte field corresponding to one or more trap instructions, used to pad
101
  // executable OutputSections.
102
  uint32_t TrapInstr = 0;
103
104
  virtual RelExpr adjustRelaxExpr(uint32_t Type, const uint8_t *Data,
105
                                  RelExpr Expr) const;
106
  virtual void relaxGot(uint8_t *Loc, uint64_t Val) const;
107
  virtual void relaxTlsGdToIe(uint8_t *Loc, uint32_t Type, uint64_t Val) const;
108
  virtual void relaxTlsGdToLe(uint8_t *Loc, uint32_t Type, uint64_t Val) const;
109
  virtual void relaxTlsIeToLe(uint8_t *Loc, uint32_t Type, uint64_t Val) const;
110
  virtual void relaxTlsLdToLe(uint8_t *Loc, uint32_t Type, uint64_t Val) const;
111
};
112
113
TargetInfo *getAArch64TargetInfo();
114
TargetInfo *getAMDGPUTargetInfo();
115
TargetInfo *getARMTargetInfo();
116
TargetInfo *getAVRTargetInfo();
117
TargetInfo *getPPC64TargetInfo();
118
TargetInfo *getPPCTargetInfo();
119
TargetInfo *getSPARCV9TargetInfo();
120
TargetInfo *getX32TargetInfo();
121
TargetInfo *getX86TargetInfo();
122
TargetInfo *getX86_64TargetInfo();
123
template <class ELFT> TargetInfo *getMipsTargetInfo();
124
125
std::string getErrorLocation(const uint8_t *Loc);
126
127
uint64_t getPPC64TocBase();
128
uint64_t getAArch64Page(uint64_t Expr);
129
130
extern TargetInfo *Target;
131
TargetInfo *getTarget();
132
133
template <unsigned N>
134
1.15k
static void checkInt(uint8_t *Loc, int64_t V, uint32_t Type) {
135
1.15k
  if (!llvm::isInt<N>(V))
136
17
    error(getErrorLocation(Loc) + "relocation " + lld::toString(Type) +
137
17
          " out of range");
138
1.15k
}
Mips.cpp:void lld::elf::checkInt<28u>(unsigned char*, long long, unsigned int)
Line
Count
Source
134
1
static void checkInt(uint8_t *Loc, int64_t V, uint32_t Type) {
135
1
  if (!llvm::isInt<N>(V))
136
0
    error(getErrorLocation(Loc) + "relocation " + lld::toString(Type) +
137
0
          " out of range");
138
1
}
X86_64.cpp:void lld::elf::checkInt<32u>(unsigned char*, long long, unsigned int)
Line
Count
Source
134
558
static void checkInt(uint8_t *Loc, int64_t V, uint32_t Type) {
135
558
  if (!llvm::isInt<N>(V))
136
4
    error(getErrorLocation(Loc) + "relocation " + lld::toString(Type) +
137
4
          " out of range");
138
558
}
X86.cpp:void lld::elf::checkInt<32u>(unsigned char*, long long, unsigned int)
Line
Count
Source
134
107
static void checkInt(uint8_t *Loc, int64_t V, uint32_t Type) {
135
107
  if (!llvm::isInt<N>(V))
136
0
    error(getErrorLocation(Loc) + "relocation " + lld::toString(Type) +
137
0
          " out of range");
138
107
}
X86.cpp:void lld::elf::checkInt<17u>(unsigned char*, long long, unsigned int)
Line
Count
Source
134
5
static void checkInt(uint8_t *Loc, int64_t V, uint32_t Type) {
135
5
  if (!llvm::isInt<N>(V))
136
1
    error(getErrorLocation(Loc) + "relocation " + lld::toString(Type) +
137
1
          " out of range");
138
5
}
X86.cpp:void lld::elf::checkInt<8u>(unsigned char*, long long, unsigned int)
Line
Count
Source
134
3
static void checkInt(uint8_t *Loc, int64_t V, uint32_t Type) {
135
3
  if (!llvm::isInt<N>(V))
136
0
    error(getErrorLocation(Loc) + "relocation " + lld::toString(Type) +
137
0
          " out of range");
138
3
}
Unexecuted instantiation: SPARCV9.cpp:void lld::elf::checkInt<21u>(unsigned char*, long long, unsigned int)
Unexecuted instantiation: SPARCV9.cpp:void lld::elf::checkInt<32u>(unsigned char*, long long, unsigned int)
PPC64.cpp:void lld::elf::checkInt<24u>(unsigned char*, long long, unsigned int)
Line
Count
Source
134
9
static void checkInt(uint8_t *Loc, int64_t V, uint32_t Type) {
135
9
  if (!llvm::isInt<N>(V))
136
0
    error(getErrorLocation(Loc) + "relocation " + lld::toString(Type) +
137
0
          " out of range");
138
9
}
AArch64.cpp:void lld::elf::checkInt<33u>(unsigned char*, long long, unsigned int)
Line
Count
Source
134
44
static void checkInt(uint8_t *Loc, int64_t V, uint32_t Type) {
135
44
  if (!llvm::isInt<N>(V))
136
1
    error(getErrorLocation(Loc) + "relocation " + lld::toString(Type) +
137
1
          " out of range");
138
44
}
AArch64.cpp:void lld::elf::checkInt<21u>(unsigned char*, long long, unsigned int)
Line
Count
Source
134
17
static void checkInt(uint8_t *Loc, int64_t V, uint32_t Type) {
135
17
  if (!llvm::isInt<N>(V))
136
2
    error(getErrorLocation(Loc) + "relocation " + lld::toString(Type) +
137
2
          " out of range");
138
17
}
AArch64.cpp:void lld::elf::checkInt<28u>(unsigned char*, long long, unsigned int)
Line
Count
Source
134
25
static void checkInt(uint8_t *Loc, int64_t V, uint32_t Type) {
135
25
  if (!llvm::isInt<N>(V))
136
2
    error(getErrorLocation(Loc) + "relocation " + lld::toString(Type) +
137
2
          " out of range");
138
25
}
AArch64.cpp:void lld::elf::checkInt<16u>(unsigned char*, long long, unsigned int)
Line
Count
Source
134
8
static void checkInt(uint8_t *Loc, int64_t V, uint32_t Type) {
135
8
  if (!llvm::isInt<N>(V))
136
0
    error(getErrorLocation(Loc) + "relocation " + lld::toString(Type) +
137
0
          " out of range");
138
8
}
AArch64.cpp:void lld::elf::checkInt<24u>(unsigned char*, long long, unsigned int)
Line
Count
Source
134
2
static void checkInt(uint8_t *Loc, int64_t V, uint32_t Type) {
135
2
  if (!llvm::isInt<N>(V))
136
0
    error(getErrorLocation(Loc) + "relocation " + lld::toString(Type) +
137
0
          " out of range");
138
2
}
ARM.cpp:void lld::elf::checkInt<31u>(unsigned char*, long long, unsigned int)
Line
Count
Source
134
82
static void checkInt(uint8_t *Loc, int64_t V, uint32_t Type) {
135
82
  if (!llvm::isInt<N>(V))
136
0
    error(getErrorLocation(Loc) + "relocation " + lld::toString(Type) +
137
0
          " out of range");
138
82
}
ARM.cpp:void lld::elf::checkInt<26u>(unsigned char*, long long, unsigned int)
Line
Count
Source
134
91
static void checkInt(uint8_t *Loc, int64_t V, uint32_t Type) {
135
91
  if (!llvm::isInt<N>(V))
136
3
    error(getErrorLocation(Loc) + "relocation " + lld::toString(Type) +
137
3
          " out of range");
138
91
}
ARM.cpp:void lld::elf::checkInt<12u>(unsigned char*, long long, unsigned int)
Line
Count
Source
134
4
static void checkInt(uint8_t *Loc, int64_t V, uint32_t Type) {
135
4
  if (!llvm::isInt<N>(V))
136
0
    error(getErrorLocation(Loc) + "relocation " + lld::toString(Type) +
137
0
          " out of range");
138
4
}
ARM.cpp:void lld::elf::checkInt<21u>(unsigned char*, long long, unsigned int)
Line
Count
Source
134
14
static void checkInt(uint8_t *Loc, int64_t V, uint32_t Type) {
135
14
  if (!llvm::isInt<N>(V))
136
1
    error(getErrorLocation(Loc) + "relocation " + lld::toString(Type) +
137
1
          " out of range");
138
14
}
ARM.cpp:void lld::elf::checkInt<25u>(unsigned char*, long long, unsigned int)
Line
Count
Source
134
51
static void checkInt(uint8_t *Loc, int64_t V, uint32_t Type) {
135
51
  if (!llvm::isInt<N>(V))
136
2
    error(getErrorLocation(Loc) + "relocation " + lld::toString(Type) +
137
2
          " out of range");
138
51
}
ARM.cpp:void lld::elf::checkInt<32u>(unsigned char*, long long, unsigned int)
Line
Count
Source
134
50
static void checkInt(uint8_t *Loc, int64_t V, uint32_t Type) {
135
50
  if (!llvm::isInt<N>(V))
136
0
    error(getErrorLocation(Loc) + "relocation " + lld::toString(Type) +
137
0
          " out of range");
138
50
}
Mips.cpp:void lld::elf::checkInt<16u>(unsigned char*, long long, unsigned int)
Line
Count
Source
134
65
static void checkInt(uint8_t *Loc, int64_t V, uint32_t Type) {
135
65
  if (!llvm::isInt<N>(V))
136
0
    error(getErrorLocation(Loc) + "relocation " + lld::toString(Type) +
137
0
          " out of range");
138
65
}
Unexecuted instantiation: Mips.cpp:void lld::elf::checkInt<7u>(unsigned char*, long long, unsigned int)
Mips.cpp:void lld::elf::checkInt<18u>(unsigned char*, long long, unsigned int)
Line
Count
Source
134
2
static void checkInt(uint8_t *Loc, int64_t V, uint32_t Type) {
135
2
  if (!llvm::isInt<N>(V))
136
0
    error(getErrorLocation(Loc) + "relocation " + lld::toString(Type) +
137
0
          " out of range");
138
2
}
Mips.cpp:void lld::elf::checkInt<21u>(unsigned char*, long long, unsigned int)
Line
Count
Source
134
5
static void checkInt(uint8_t *Loc, int64_t V, uint32_t Type) {
135
5
  if (!llvm::isInt<N>(V))
136
0
    error(getErrorLocation(Loc) + "relocation " + lld::toString(Type) +
137
0
          " out of range");
138
5
}
Mips.cpp:void lld::elf::checkInt<23u>(unsigned char*, long long, unsigned int)
Line
Count
Source
134
1
static void checkInt(uint8_t *Loc, int64_t V, uint32_t Type) {
135
1
  if (!llvm::isInt<N>(V))
136
0
    error(getErrorLocation(Loc) + "relocation " + lld::toString(Type) +
137
0
          " out of range");
138
1
}
Unexecuted instantiation: PPC64.cpp:void lld::elf::checkInt<32u>(unsigned char*, long long, unsigned int)
Mips.cpp:void lld::elf::checkInt<27u>(unsigned char*, long long, unsigned int)
Line
Count
Source
134
4
static void checkInt(uint8_t *Loc, int64_t V, uint32_t Type) {
135
4
  if (!llvm::isInt<N>(V))
136
0
    error(getErrorLocation(Loc) + "relocation " + lld::toString(Type) +
137
0
          " out of range");
138
4
}
Mips.cpp:void lld::elf::checkInt<8u>(unsigned char*, long long, unsigned int)
Line
Count
Source
134
2
static void checkInt(uint8_t *Loc, int64_t V, uint32_t Type) {
135
2
  if (!llvm::isInt<N>(V))
136
0
    error(getErrorLocation(Loc) + "relocation " + lld::toString(Type) +
137
0
          " out of range");
138
2
}
Mips.cpp:void lld::elf::checkInt<11u>(unsigned char*, long long, unsigned int)
Line
Count
Source
134
2
static void checkInt(uint8_t *Loc, int64_t V, uint32_t Type) {
135
2
  if (!llvm::isInt<N>(V))
136
0
    error(getErrorLocation(Loc) + "relocation " + lld::toString(Type) +
137
0
          " out of range");
138
2
}
Mips.cpp:void lld::elf::checkInt<17u>(unsigned char*, long long, unsigned int)
Line
Count
Source
134
2
static void checkInt(uint8_t *Loc, int64_t V, uint32_t Type) {
135
2
  if (!llvm::isInt<N>(V))
136
0
    error(getErrorLocation(Loc) + "relocation " + lld::toString(Type) +
137
0
          " out of range");
138
2
}
Unexecuted instantiation: Mips.cpp:void lld::elf::checkInt<22u>(unsigned char*, long long, unsigned int)
Mips.cpp:void lld::elf::checkInt<25u>(unsigned char*, long long, unsigned int)
Line
Count
Source
134
4
static void checkInt(uint8_t *Loc, int64_t V, uint32_t Type) {
135
4
  if (!llvm::isInt<N>(V))
136
0
    error(getErrorLocation(Loc) + "relocation " + lld::toString(Type) +
137
0
          " out of range");
138
4
}
PPC64.cpp:void lld::elf::checkInt<16u>(unsigned char*, long long, unsigned int)
Line
Count
Source
134
1
static void checkInt(uint8_t *Loc, int64_t V, uint32_t Type) {
135
1
  if (!llvm::isInt<N>(V))
136
1
    error(getErrorLocation(Loc) + "relocation " + lld::toString(Type) +
137
1
          " out of range");
138
1
}
139
140
template <unsigned N>
141
98
static void checkUInt(uint8_t *Loc, uint64_t V, uint32_t Type) {
142
98
  if (!llvm::isUInt<N>(V))
143
5
    error(getErrorLocation(Loc) + "relocation " + lld::toString(Type) +
144
5
          " out of range");
145
98
}
X86_64.cpp:void lld::elf::checkUInt<32u>(unsigned char*, unsigned long long, unsigned int)
Line
Count
Source
141
73
static void checkUInt(uint8_t *Loc, uint64_t V, uint32_t Type) {
142
73
  if (!llvm::isUInt<N>(V))
143
1
    error(getErrorLocation(Loc) + "relocation " + lld::toString(Type) +
144
1
          " out of range");
145
73
}
AArch64.cpp:void lld::elf::checkUInt<32u>(unsigned char*, unsigned long long, unsigned int)
Line
Count
Source
141
11
static void checkUInt(uint8_t *Loc, uint64_t V, uint32_t Type) {
142
11
  if (!llvm::isUInt<N>(V))
143
0
    error(getErrorLocation(Loc) + "relocation " + lld::toString(Type) +
144
0
          " out of range");
145
11
}
X86_64.cpp:void lld::elf::checkUInt<16u>(unsigned char*, unsigned long long, unsigned int)
Line
Count
Source
141
2
static void checkUInt(uint8_t *Loc, uint64_t V, uint32_t Type) {
142
2
  if (!llvm::isUInt<N>(V))
143
1
    error(getErrorLocation(Loc) + "relocation " + lld::toString(Type) +
144
1
          " out of range");
145
2
}
X86_64.cpp:void lld::elf::checkUInt<8u>(unsigned char*, unsigned long long, unsigned int)
Line
Count
Source
141
3
static void checkUInt(uint8_t *Loc, uint64_t V, uint32_t Type) {
142
3
  if (!llvm::isUInt<N>(V))
143
1
    error(getErrorLocation(Loc) + "relocation " + lld::toString(Type) +
144
1
          " out of range");
145
3
}
X86.cpp:void lld::elf::checkUInt<16u>(unsigned char*, unsigned long long, unsigned int)
Line
Count
Source
141
4
static void checkUInt(uint8_t *Loc, uint64_t V, uint32_t Type) {
142
4
  if (!llvm::isUInt<N>(V))
143
1
    error(getErrorLocation(Loc) + "relocation " + lld::toString(Type) +
144
1
          " out of range");
145
4
}
X86.cpp:void lld::elf::checkUInt<8u>(unsigned char*, unsigned long long, unsigned int)
Line
Count
Source
141
5
static void checkUInt(uint8_t *Loc, uint64_t V, uint32_t Type) {
142
5
  if (!llvm::isUInt<N>(V))
143
1
    error(getErrorLocation(Loc) + "relocation " + lld::toString(Type) +
144
1
          " out of range");
145
5
}
Unexecuted instantiation: SPARCV9.cpp:void lld::elf::checkUInt<22u>(unsigned char*, unsigned long long, unsigned int)
Unexecuted instantiation: SPARCV9.cpp:void lld::elf::checkUInt<32u>(unsigned char*, unsigned long long, unsigned int)
146
147
template <unsigned N>
148
29
static void checkIntUInt(uint8_t *Loc, uint64_t V, uint32_t Type) {
149
29
  if (
!llvm::isInt<N>(V) && 29
!llvm::isUInt<N>(V)16
)
150
8
    error(getErrorLocation(Loc) + "relocation " + lld::toString(Type) +
151
8
          " out of range");
152
29
}
AArch64.cpp:void lld::elf::checkIntUInt<16u>(unsigned char*, unsigned long long, unsigned int)
Line
Count
Source
148
13
static void checkIntUInt(uint8_t *Loc, uint64_t V, uint32_t Type) {
149
13
  if (
!llvm::isInt<N>(V) && 13
!llvm::isUInt<N>(V)7
)
150
4
    error(getErrorLocation(Loc) + "relocation " + lld::toString(Type) +
151
4
          " out of range");
152
13
}
AArch64.cpp:void lld::elf::checkIntUInt<32u>(unsigned char*, unsigned long long, unsigned int)
Line
Count
Source
148
16
static void checkIntUInt(uint8_t *Loc, uint64_t V, uint32_t Type) {
149
16
  if (
!llvm::isInt<N>(V) && 16
!llvm::isUInt<N>(V)9
)
150
4
    error(getErrorLocation(Loc) + "relocation " + lld::toString(Type) +
151
4
          " out of range");
152
16
}
153
154
template <unsigned N>
155
74
static void checkAlignment(uint8_t *Loc, uint64_t V, uint32_t Type) {
156
74
  if ((V & (N - 1)) != 0)
157
6
    error(getErrorLocation(Loc) + "improper alignment for relocation " +
158
6
          lld::toString(Type));
159
74
}
AArch64.cpp:void lld::elf::checkAlignment<4u>(unsigned char*, unsigned long long, unsigned int)
Line
Count
Source
155
17
static void checkAlignment(uint8_t *Loc, uint64_t V, uint32_t Type) {
156
17
  if ((V & (N - 1)) != 0)
157
2
    error(getErrorLocation(Loc) + "improper alignment for relocation " +
158
2
          lld::toString(Type));
159
17
}
AArch64.cpp:void lld::elf::checkAlignment<8u>(unsigned char*, unsigned long long, unsigned int)
Line
Count
Source
155
42
static void checkAlignment(uint8_t *Loc, uint64_t V, uint32_t Type) {
156
42
  if ((V & (N - 1)) != 0)
157
1
    error(getErrorLocation(Loc) + "improper alignment for relocation " +
158
1
          lld::toString(Type));
159
42
}
AArch64.cpp:void lld::elf::checkAlignment<2u>(unsigned char*, unsigned long long, unsigned int)
Line
Count
Source
155
6
static void checkAlignment(uint8_t *Loc, uint64_t V, uint32_t Type) {
156
6
  if ((V & (N - 1)) != 0)
157
1
    error(getErrorLocation(Loc) + "improper alignment for relocation " +
158
1
          lld::toString(Type));
159
6
}
AArch64.cpp:void lld::elf::checkAlignment<16u>(unsigned char*, unsigned long long, unsigned int)
Line
Count
Source
155
4
static void checkAlignment(uint8_t *Loc, uint64_t V, uint32_t Type) {
156
4
  if ((V & (N - 1)) != 0)
157
1
    error(getErrorLocation(Loc) + "improper alignment for relocation " +
158
1
          lld::toString(Type));
159
4
}
Mips.cpp:void lld::elf::checkAlignment<4u>(unsigned char*, unsigned long long, unsigned int)
Line
Count
Source
155
5
static void checkAlignment(uint8_t *Loc, uint64_t V, uint32_t Type) {
156
5
  if ((V & (N - 1)) != 0)
157
1
    error(getErrorLocation(Loc) + "improper alignment for relocation " +
158
1
          lld::toString(Type));
159
5
}
Unexecuted instantiation: PPC64.cpp:void lld::elf::checkAlignment<4u>(unsigned char*, unsigned long long, unsigned int)
160
} // namespace elf
161
} // namespace lld
162
163
#endif