Coverage Report

Created: 2019-01-18 03:29

/Users/buildslave/jenkins/workspace/clang-stage2-coverage-R/llvm/tools/lld/ELF/Relocations.h
Line
Count
Source (jump to first uncovered line)
1
//===- Relocations.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_RELOCATIONS_H
11
#define LLD_ELF_RELOCATIONS_H
12
13
#include "lld/Common/LLVM.h"
14
#include "llvm/ADT/DenseMap.h"
15
#include <map>
16
#include <vector>
17
18
namespace lld {
19
namespace elf {
20
class Symbol;
21
class InputSection;
22
class InputSectionBase;
23
class OutputSection;
24
class SectionBase;
25
26
// Represents a relocation type, such as R_X86_64_PC32 or R_ARM_THM_CALL.
27
typedef uint32_t RelType;
28
29
// List of target-independent relocation types. Relocations read
30
// from files are converted to these types so that the main code
31
// doesn't have to know about architecture-specific details.
32
enum RelExpr {
33
  R_INVALID,
34
  R_ABS,
35
  R_ADDEND,
36
  R_AARCH64_GOT_PAGE_PC,
37
  // The expression is used for IFUNC support. Describes PC-relative
38
  // address of the memory page of GOT entry. This entry is used for
39
  // a redirection to IPLT.
40
  R_AARCH64_GOT_PAGE_PC_PLT,
41
  R_AARCH64_RELAX_TLS_GD_TO_IE_PAGE_PC,
42
  R_AARCH64_PAGE_PC,
43
  R_AARCH64_PLT_PAGE_PC,
44
  R_AARCH64_TLSDESC_PAGE,
45
  R_ARM_SBREL,
46
  R_GOT,
47
  // The expression is used for IFUNC support. Evaluates to GOT entry,
48
  // containing redirection to the IPLT.
49
  R_GOT_PLT,
50
  R_GOTONLY_PC,
51
  R_GOTONLY_PC_FROM_END,
52
  R_GOTREL,
53
  R_GOTREL_FROM_END,
54
  R_GOT_FROM_END,
55
  R_GOT_OFF,
56
  R_GOT_PC,
57
  R_HEXAGON_GOT,
58
  R_HINT,
59
  R_MIPS_GOTREL,
60
  R_MIPS_GOT_GP,
61
  R_MIPS_GOT_GP_PC,
62
  R_MIPS_GOT_LOCAL_PAGE,
63
  R_MIPS_GOT_OFF,
64
  R_MIPS_GOT_OFF32,
65
  R_MIPS_TLSGD,
66
  R_MIPS_TLSLD,
67
  R_NEG_TLS,
68
  R_NONE,
69
  R_PC,
70
  R_PLT,
71
  R_PLT_PC,
72
  R_PPC_CALL,
73
  R_PPC_CALL_PLT,
74
  R_PPC_TOC,
75
  R_RELAX_GOT_PC,
76
  R_RELAX_GOT_PC_NOPIC,
77
  R_RELAX_TLS_GD_TO_IE,
78
  R_RELAX_TLS_GD_TO_IE_ABS,
79
  R_RELAX_TLS_GD_TO_IE_END,
80
  R_RELAX_TLS_GD_TO_IE_GOT_OFF,
81
  R_RELAX_TLS_GD_TO_LE,
82
  R_RELAX_TLS_GD_TO_LE_NEG,
83
  R_RELAX_TLS_IE_TO_LE,
84
  R_RELAX_TLS_LD_TO_LE,
85
  R_RELAX_TLS_LD_TO_LE_ABS,
86
  R_RISCV_PC_INDIRECT,
87
  R_SIZE,
88
  R_TLS,
89
  R_TLSDESC,
90
  R_TLSDESC_CALL,
91
  R_TLSGD_GOT,
92
  R_TLSGD_GOT_FROM_END,
93
  R_TLSGD_PC,
94
  R_TLSIE_HINT,
95
  R_TLSLD_GOT,
96
  R_TLSLD_GOT_FROM_END,
97
  R_TLSLD_GOT_OFF,
98
  R_TLSLD_HINT,
99
  R_TLSLD_PC,
100
};
101
102
// Build a bitmask with one bit set for each RelExpr.
103
//
104
// Constexpr function arguments can't be used in static asserts, so we
105
// use template arguments to build the mask.
106
// But function template partial specializations don't exist (needed
107
// for base case of the recursion), so we need a dummy struct.
108
template <RelExpr... Exprs> struct RelExprMaskBuilder {
109
69.9k
  static inline uint64_t build() { return 0; }
110
};
111
112
// Specialization for recursive case.
113
template <RelExpr Head, RelExpr... Tail>
114
struct RelExprMaskBuilder<Head, Tail...> {
115
674k
  static inline uint64_t build() {
116
674k
    static_assert(0 <= Head && Head < 64,
117
674k
                  "RelExpr is too large for 64-bit mask!");
118
674k
    return (uint64_t(1) << Head) | RelExprMaskBuilder<Tail...>::build();
119
674k
  }
Unexecuted instantiation: lld::elf::RelExprMaskBuilder<(lld::elf::RelExpr)31>::build()
lld::elf::RelExprMaskBuilder<(lld::elf::RelExpr)20, (lld::elf::RelExpr)30>::build()
Line
Count
Source
115
13.8k
  static inline uint64_t build() {
116
13.8k
    static_assert(0 <= Head && Head < 64,
117
13.8k
                  "RelExpr is too large for 64-bit mask!");
118
13.8k
    return (uint64_t(1) << Head) | RelExprMaskBuilder<Tail...>::build();
119
13.8k
  }
lld::elf::RelExprMaskBuilder<(lld::elf::RelExpr)30>::build()
Line
Count
Source
115
13.8k
  static inline uint64_t build() {
116
13.8k
    static_assert(0 <= Head && Head < 64,
117
13.8k
                  "RelExpr is too large for 64-bit mask!");
118
13.8k
    return (uint64_t(1) << Head) | RelExprMaskBuilder<Tail...>::build();
119
13.8k
  }
lld::elf::RelExprMaskBuilder<(lld::elf::RelExpr)12, (lld::elf::RelExpr)13, (lld::elf::RelExpr)14, (lld::elf::RelExpr)15, (lld::elf::RelExpr)36>::build()
Line
Count
Source
115
13.7k
  static inline uint64_t build() {
116
13.7k
    static_assert(0 <= Head && Head < 64,
117
13.7k
                  "RelExpr is too large for 64-bit mask!");
118
13.7k
    return (uint64_t(1) << Head) | RelExprMaskBuilder<Tail...>::build();
119
13.7k
  }
lld::elf::RelExprMaskBuilder<(lld::elf::RelExpr)13, (lld::elf::RelExpr)14, (lld::elf::RelExpr)15, (lld::elf::RelExpr)36>::build()
Line
Count
Source
115
13.7k
  static inline uint64_t build() {
116
13.7k
    static_assert(0 <= Head && Head < 64,
117
13.7k
                  "RelExpr is too large for 64-bit mask!");
118
13.7k
    return (uint64_t(1) << Head) | RelExprMaskBuilder<Tail...>::build();
119
13.7k
  }
lld::elf::RelExprMaskBuilder<(lld::elf::RelExpr)14, (lld::elf::RelExpr)15, (lld::elf::RelExpr)36>::build()
Line
Count
Source
115
13.7k
  static inline uint64_t build() {
116
13.7k
    static_assert(0 <= Head && Head < 64,
117
13.7k
                  "RelExpr is too large for 64-bit mask!");
118
13.7k
    return (uint64_t(1) << Head) | RelExprMaskBuilder<Tail...>::build();
119
13.7k
  }
lld::elf::RelExprMaskBuilder<(lld::elf::RelExpr)15, (lld::elf::RelExpr)36>::build()
Line
Count
Source
115
13.7k
  static inline uint64_t build() {
116
13.7k
    static_assert(0 <= Head && Head < 64,
117
13.7k
                  "RelExpr is too large for 64-bit mask!");
118
13.7k
    return (uint64_t(1) << Head) | RelExprMaskBuilder<Tail...>::build();
119
13.7k
  }
lld::elf::RelExprMaskBuilder<(lld::elf::RelExpr)36>::build()
Line
Count
Source
115
13.7k
  static inline uint64_t build() {
116
13.7k
    static_assert(0 <= Head && Head < 64,
117
13.7k
                  "RelExpr is too large for 64-bit mask!");
118
13.7k
    return (uint64_t(1) << Head) | RelExprMaskBuilder<Tail...>::build();
119
13.7k
  }
lld::elf::RelExprMaskBuilder<(lld::elf::RelExpr)51, (lld::elf::RelExpr)8, (lld::elf::RelExpr)52>::build()
Line
Count
Source
115
384
  static inline uint64_t build() {
116
384
    static_assert(0 <= Head && Head < 64,
117
384
                  "RelExpr is too large for 64-bit mask!");
118
384
    return (uint64_t(1) << Head) | RelExprMaskBuilder<Tail...>::build();
119
384
  }
lld::elf::RelExprMaskBuilder<(lld::elf::RelExpr)8, (lld::elf::RelExpr)52>::build()
Line
Count
Source
115
384
  static inline uint64_t build() {
116
384
    static_assert(0 <= Head && Head < 64,
117
384
                  "RelExpr is too large for 64-bit mask!");
118
384
    return (uint64_t(1) << Head) | RelExprMaskBuilder<Tail...>::build();
119
384
  }
lld::elf::RelExprMaskBuilder<(lld::elf::RelExpr)52>::build()
Line
Count
Source
115
384
  static inline uint64_t build() {
116
384
    static_assert(0 <= Head && Head < 64,
117
384
                  "RelExpr is too large for 64-bit mask!");
118
384
    return (uint64_t(1) << Head) | RelExprMaskBuilder<Tail...>::build();
119
384
  }
lld::elf::RelExprMaskBuilder<(lld::elf::RelExpr)57, (lld::elf::RelExpr)58, (lld::elf::RelExpr)61, (lld::elf::RelExpr)60>::build()
Line
Count
Source
115
362
  static inline uint64_t build() {
116
362
    static_assert(0 <= Head && Head < 64,
117
362
                  "RelExpr is too large for 64-bit mask!");
118
362
    return (uint64_t(1) << Head) | RelExprMaskBuilder<Tail...>::build();
119
362
  }
lld::elf::RelExprMaskBuilder<(lld::elf::RelExpr)58, (lld::elf::RelExpr)61, (lld::elf::RelExpr)60>::build()
Line
Count
Source
115
362
  static inline uint64_t build() {
116
362
    static_assert(0 <= Head && Head < 64,
117
362
                  "RelExpr is too large for 64-bit mask!");
118
362
    return (uint64_t(1) << Head) | RelExprMaskBuilder<Tail...>::build();
119
362
  }
lld::elf::RelExprMaskBuilder<(lld::elf::RelExpr)61, (lld::elf::RelExpr)60>::build()
Line
Count
Source
115
362
  static inline uint64_t build() {
116
362
    static_assert(0 <= Head && Head < 64,
117
362
                  "RelExpr is too large for 64-bit mask!");
118
362
    return (uint64_t(1) << Head) | RelExprMaskBuilder<Tail...>::build();
119
362
  }
lld::elf::RelExprMaskBuilder<(lld::elf::RelExpr)60>::build()
Line
Count
Source
115
362
  static inline uint64_t build() {
116
362
    static_assert(0 <= Head && Head < 64,
117
362
                  "RelExpr is too large for 64-bit mask!");
118
362
    return (uint64_t(1) << Head) | RelExprMaskBuilder<Tail...>::build();
119
362
  }
lld::elf::RelExprMaskBuilder<(lld::elf::RelExpr)51, (lld::elf::RelExpr)8, (lld::elf::RelExpr)52, (lld::elf::RelExpr)53, (lld::elf::RelExpr)54, (lld::elf::RelExpr)55>::build()
Line
Count
Source
115
297
  static inline uint64_t build() {
116
297
    static_assert(0 <= Head && Head < 64,
117
297
                  "RelExpr is too large for 64-bit mask!");
118
297
    return (uint64_t(1) << Head) | RelExprMaskBuilder<Tail...>::build();
119
297
  }
lld::elf::RelExprMaskBuilder<(lld::elf::RelExpr)8, (lld::elf::RelExpr)52, (lld::elf::RelExpr)53, (lld::elf::RelExpr)54, (lld::elf::RelExpr)55>::build()
Line
Count
Source
115
297
  static inline uint64_t build() {
116
297
    static_assert(0 <= Head && Head < 64,
117
297
                  "RelExpr is too large for 64-bit mask!");
118
297
    return (uint64_t(1) << Head) | RelExprMaskBuilder<Tail...>::build();
119
297
  }
lld::elf::RelExprMaskBuilder<(lld::elf::RelExpr)52, (lld::elf::RelExpr)53, (lld::elf::RelExpr)54, (lld::elf::RelExpr)55>::build()
Line
Count
Source
115
297
  static inline uint64_t build() {
116
297
    static_assert(0 <= Head && Head < 64,
117
297
                  "RelExpr is too large for 64-bit mask!");
118
297
    return (uint64_t(1) << Head) | RelExprMaskBuilder<Tail...>::build();
119
297
  }
lld::elf::RelExprMaskBuilder<(lld::elf::RelExpr)53, (lld::elf::RelExpr)54, (lld::elf::RelExpr)55>::build()
Line
Count
Source
115
297
  static inline uint64_t build() {
116
297
    static_assert(0 <= Head && Head < 64,
117
297
                  "RelExpr is too large for 64-bit mask!");
118
297
    return (uint64_t(1) << Head) | RelExprMaskBuilder<Tail...>::build();
119
297
  }
lld::elf::RelExprMaskBuilder<(lld::elf::RelExpr)54, (lld::elf::RelExpr)55>::build()
Line
Count
Source
115
297
  static inline uint64_t build() {
116
297
    static_assert(0 <= Head && Head < 64,
117
297
                  "RelExpr is too large for 64-bit mask!");
118
297
    return (uint64_t(1) << Head) | RelExprMaskBuilder<Tail...>::build();
119
297
  }
lld::elf::RelExprMaskBuilder<(lld::elf::RelExpr)55>::build()
Line
Count
Source
115
297
  static inline uint64_t build() {
116
297
    static_assert(0 <= Head && Head < 64,
117
297
                  "RelExpr is too large for 64-bit mask!");
118
297
    return (uint64_t(1) << Head) | RelExprMaskBuilder<Tail...>::build();
119
297
  }
lld::elf::RelExprMaskBuilder<(lld::elf::RelExpr)10, (lld::elf::RelExpr)16, (lld::elf::RelExpr)18, (lld::elf::RelExpr)3, (lld::elf::RelExpr)17, (lld::elf::RelExpr)56>::build()
Line
Count
Source
115
227
  static inline uint64_t build() {
116
227
    static_assert(0 <= Head && Head < 64,
117
227
                  "RelExpr is too large for 64-bit mask!");
118
227
    return (uint64_t(1) << Head) | RelExprMaskBuilder<Tail...>::build();
119
227
  }
lld::elf::RelExprMaskBuilder<(lld::elf::RelExpr)16, (lld::elf::RelExpr)18, (lld::elf::RelExpr)3, (lld::elf::RelExpr)17, (lld::elf::RelExpr)56>::build()
Line
Count
Source
115
227
  static inline uint64_t build() {
116
227
    static_assert(0 <= Head && Head < 64,
117
227
                  "RelExpr is too large for 64-bit mask!");
118
227
    return (uint64_t(1) << Head) | RelExprMaskBuilder<Tail...>::build();
119
227
  }
lld::elf::RelExprMaskBuilder<(lld::elf::RelExpr)18, (lld::elf::RelExpr)3, (lld::elf::RelExpr)17, (lld::elf::RelExpr)56>::build()
Line
Count
Source
115
227
  static inline uint64_t build() {
116
227
    static_assert(0 <= Head && Head < 64,
117
227
                  "RelExpr is too large for 64-bit mask!");
118
227
    return (uint64_t(1) << Head) | RelExprMaskBuilder<Tail...>::build();
119
227
  }
lld::elf::RelExprMaskBuilder<(lld::elf::RelExpr)3, (lld::elf::RelExpr)17, (lld::elf::RelExpr)56>::build()
Line
Count
Source
115
227
  static inline uint64_t build() {
116
227
    static_assert(0 <= Head && Head < 64,
117
227
                  "RelExpr is too large for 64-bit mask!");
118
227
    return (uint64_t(1) << Head) | RelExprMaskBuilder<Tail...>::build();
119
227
  }
lld::elf::RelExprMaskBuilder<(lld::elf::RelExpr)17, (lld::elf::RelExpr)56>::build()
Line
Count
Source
115
227
  static inline uint64_t build() {
116
227
    static_assert(0 <= Head && Head < 64,
117
227
                  "RelExpr is too large for 64-bit mask!");
118
227
    return (uint64_t(1) << Head) | RelExprMaskBuilder<Tail...>::build();
119
227
  }
lld::elf::RelExprMaskBuilder<(lld::elf::RelExpr)56>::build()
Line
Count
Source
115
13.7k
  static inline uint64_t build() {
116
13.7k
    static_assert(0 <= Head && Head < 64,
117
13.7k
                  "RelExpr is too large for 64-bit mask!");
118
13.7k
    return (uint64_t(1) << Head) | RelExprMaskBuilder<Tail...>::build();
119
13.7k
  }
lld::elf::RelExprMaskBuilder<(lld::elf::RelExpr)33, (lld::elf::RelExpr)35, (lld::elf::RelExpr)32, (lld::elf::RelExpr)7, (lld::elf::RelExpr)11, (lld::elf::RelExpr)4>::build()
Line
Count
Source
115
13.4k
  static inline uint64_t build() {
116
13.4k
    static_assert(0 <= Head && Head < 64,
117
13.4k
                  "RelExpr is too large for 64-bit mask!");
118
13.4k
    return (uint64_t(1) << Head) | RelExprMaskBuilder<Tail...>::build();
119
13.4k
  }
lld::elf::RelExprMaskBuilder<(lld::elf::RelExpr)35, (lld::elf::RelExpr)32, (lld::elf::RelExpr)7, (lld::elf::RelExpr)11, (lld::elf::RelExpr)4>::build()
Line
Count
Source
115
13.4k
  static inline uint64_t build() {
116
13.4k
    static_assert(0 <= Head && Head < 64,
117
13.4k
                  "RelExpr is too large for 64-bit mask!");
118
13.4k
    return (uint64_t(1) << Head) | RelExprMaskBuilder<Tail...>::build();
119
13.4k
  }
lld::elf::RelExprMaskBuilder<(lld::elf::RelExpr)32, (lld::elf::RelExpr)7, (lld::elf::RelExpr)11, (lld::elf::RelExpr)4>::build()
Line
Count
Source
115
13.4k
  static inline uint64_t build() {
116
13.4k
    static_assert(0 <= Head && Head < 64,
117
13.4k
                  "RelExpr is too large for 64-bit mask!");
118
13.4k
    return (uint64_t(1) << Head) | RelExprMaskBuilder<Tail...>::build();
119
13.4k
  }
lld::elf::RelExprMaskBuilder<(lld::elf::RelExpr)7, (lld::elf::RelExpr)11, (lld::elf::RelExpr)4>::build()
Line
Count
Source
115
13.4k
  static inline uint64_t build() {
116
13.4k
    static_assert(0 <= Head && Head < 64,
117
13.4k
                  "RelExpr is too large for 64-bit mask!");
118
13.4k
    return (uint64_t(1) << Head) | RelExprMaskBuilder<Tail...>::build();
119
13.4k
  }
lld::elf::RelExprMaskBuilder<(lld::elf::RelExpr)11, (lld::elf::RelExpr)4>::build()
Line
Count
Source
115
13.4k
  static inline uint64_t build() {
116
13.4k
    static_assert(0 <= Head && Head < 64,
117
13.4k
                  "RelExpr is too large for 64-bit mask!");
118
13.4k
    return (uint64_t(1) << Head) | RelExprMaskBuilder<Tail...>::build();
119
13.4k
  }
lld::elf::RelExprMaskBuilder<(lld::elf::RelExpr)4>::build()
Line
Count
Source
115
13.4k
  static inline uint64_t build() {
116
13.4k
    static_assert(0 <= Head && Head < 64,
117
13.4k
                  "RelExpr is too large for 64-bit mask!");
118
13.4k
    return (uint64_t(1) << Head) | RelExprMaskBuilder<Tail...>::build();
119
13.4k
  }
lld::elf::RelExprMaskBuilder<(lld::elf::RelExpr)10, (lld::elf::RelExpr)17, (lld::elf::RelExpr)19, (lld::elf::RelExpr)24, (lld::elf::RelExpr)25, (lld::elf::RelExpr)26, (lld::elf::RelExpr)3, (lld::elf::RelExpr)4, (lld::elf::RelExpr)18, (lld::elf::RelExpr)16, (lld::elf::RelExpr)11>::build()
Line
Count
Source
115
13.4k
  static inline uint64_t build() {
116
13.4k
    static_assert(0 <= Head && Head < 64,
117
13.4k
                  "RelExpr is too large for 64-bit mask!");
118
13.4k
    return (uint64_t(1) << Head) | RelExprMaskBuilder<Tail...>::build();
119
13.4k
  }
lld::elf::RelExprMaskBuilder<(lld::elf::RelExpr)17, (lld::elf::RelExpr)19, (lld::elf::RelExpr)24, (lld::elf::RelExpr)25, (lld::elf::RelExpr)26, (lld::elf::RelExpr)3, (lld::elf::RelExpr)4, (lld::elf::RelExpr)18, (lld::elf::RelExpr)16, (lld::elf::RelExpr)11>::build()
Line
Count
Source
115
13.4k
  static inline uint64_t build() {
116
13.4k
    static_assert(0 <= Head && Head < 64,
117
13.4k
                  "RelExpr is too large for 64-bit mask!");
118
13.4k
    return (uint64_t(1) << Head) | RelExprMaskBuilder<Tail...>::build();
119
13.4k
  }
lld::elf::RelExprMaskBuilder<(lld::elf::RelExpr)19, (lld::elf::RelExpr)24, (lld::elf::RelExpr)25, (lld::elf::RelExpr)26, (lld::elf::RelExpr)3, (lld::elf::RelExpr)4, (lld::elf::RelExpr)18, (lld::elf::RelExpr)16, (lld::elf::RelExpr)11>::build()
Line
Count
Source
115
13.4k
  static inline uint64_t build() {
116
13.4k
    static_assert(0 <= Head && Head < 64,
117
13.4k
                  "RelExpr is too large for 64-bit mask!");
118
13.4k
    return (uint64_t(1) << Head) | RelExprMaskBuilder<Tail...>::build();
119
13.4k
  }
lld::elf::RelExprMaskBuilder<(lld::elf::RelExpr)24, (lld::elf::RelExpr)25, (lld::elf::RelExpr)26, (lld::elf::RelExpr)3, (lld::elf::RelExpr)4, (lld::elf::RelExpr)18, (lld::elf::RelExpr)16, (lld::elf::RelExpr)11>::build()
Line
Count
Source
115
13.4k
  static inline uint64_t build() {
116
13.4k
    static_assert(0 <= Head && Head < 64,
117
13.4k
                  "RelExpr is too large for 64-bit mask!");
118
13.4k
    return (uint64_t(1) << Head) | RelExprMaskBuilder<Tail...>::build();
119
13.4k
  }
lld::elf::RelExprMaskBuilder<(lld::elf::RelExpr)25, (lld::elf::RelExpr)26, (lld::elf::RelExpr)3, (lld::elf::RelExpr)4, (lld::elf::RelExpr)18, (lld::elf::RelExpr)16, (lld::elf::RelExpr)11>::build()
Line
Count
Source
115
13.4k
  static inline uint64_t build() {
116
13.4k
    static_assert(0 <= Head && Head < 64,
117
13.4k
                  "RelExpr is too large for 64-bit mask!");
118
13.4k
    return (uint64_t(1) << Head) | RelExprMaskBuilder<Tail...>::build();
119
13.4k
  }
lld::elf::RelExprMaskBuilder<(lld::elf::RelExpr)26, (lld::elf::RelExpr)3, (lld::elf::RelExpr)4, (lld::elf::RelExpr)18, (lld::elf::RelExpr)16, (lld::elf::RelExpr)11>::build()
Line
Count
Source
115
13.4k
  static inline uint64_t build() {
116
13.4k
    static_assert(0 <= Head && Head < 64,
117
13.4k
                  "RelExpr is too large for 64-bit mask!");
118
13.4k
    return (uint64_t(1) << Head) | RelExprMaskBuilder<Tail...>::build();
119
13.4k
  }
lld::elf::RelExprMaskBuilder<(lld::elf::RelExpr)3, (lld::elf::RelExpr)4, (lld::elf::RelExpr)18, (lld::elf::RelExpr)16, (lld::elf::RelExpr)11>::build()
Line
Count
Source
115
13.4k
  static inline uint64_t build() {
116
13.4k
    static_assert(0 <= Head && Head < 64,
117
13.4k
                  "RelExpr is too large for 64-bit mask!");
118
13.4k
    return (uint64_t(1) << Head) | RelExprMaskBuilder<Tail...>::build();
119
13.4k
  }
lld::elf::RelExprMaskBuilder<(lld::elf::RelExpr)4, (lld::elf::RelExpr)18, (lld::elf::RelExpr)16, (lld::elf::RelExpr)11>::build()
Line
Count
Source
115
13.4k
  static inline uint64_t build() {
116
13.4k
    static_assert(0 <= Head && Head < 64,
117
13.4k
                  "RelExpr is too large for 64-bit mask!");
118
13.4k
    return (uint64_t(1) << Head) | RelExprMaskBuilder<Tail...>::build();
119
13.4k
  }
lld::elf::RelExprMaskBuilder<(lld::elf::RelExpr)18, (lld::elf::RelExpr)16, (lld::elf::RelExpr)11>::build()
Line
Count
Source
115
13.4k
  static inline uint64_t build() {
116
13.4k
    static_assert(0 <= Head && Head < 64,
117
13.4k
                  "RelExpr is too large for 64-bit mask!");
118
13.4k
    return (uint64_t(1) << Head) | RelExprMaskBuilder<Tail...>::build();
119
13.4k
  }
lld::elf::RelExprMaskBuilder<(lld::elf::RelExpr)16, (lld::elf::RelExpr)11>::build()
Line
Count
Source
115
13.4k
  static inline uint64_t build() {
116
13.4k
    static_assert(0 <= Head && Head < 64,
117
13.4k
                  "RelExpr is too large for 64-bit mask!");
118
13.4k
    return (uint64_t(1) << Head) | RelExprMaskBuilder<Tail...>::build();
119
13.4k
  }
lld::elf::RelExprMaskBuilder<(lld::elf::RelExpr)11>::build()
Line
Count
Source
115
13.4k
  static inline uint64_t build() {
116
13.4k
    static_assert(0 <= Head && Head < 64,
117
13.4k
                  "RelExpr is too large for 64-bit mask!");
118
13.4k
    return (uint64_t(1) << Head) | RelExprMaskBuilder<Tail...>::build();
119
13.4k
  }
lld::elf::RelExprMaskBuilder<(lld::elf::RelExpr)16, (lld::elf::RelExpr)17, (lld::elf::RelExpr)19, (lld::elf::RelExpr)59, (lld::elf::RelExpr)24, (lld::elf::RelExpr)21, (lld::elf::RelExpr)25, (lld::elf::RelExpr)26, (lld::elf::RelExpr)23, (lld::elf::RelExpr)27, (lld::elf::RelExpr)3, (lld::elf::RelExpr)4, (lld::elf::RelExpr)18, (lld::elf::RelExpr)12, (lld::elf::RelExpr)13, (lld::elf::RelExpr)33, (lld::elf::RelExpr)53, (lld::elf::RelExpr)54, (lld::elf::RelExpr)55, (lld::elf::RelExpr)35, (lld::elf::RelExpr)52, (lld::elf::RelExpr)8, (lld::elf::RelExpr)20, (lld::elf::RelExpr)60, (lld::elf::RelExpr)56>::build()
Line
Count
Source
115
13.4k
  static inline uint64_t build() {
116
13.4k
    static_assert(0 <= Head && Head < 64,
117
13.4k
                  "RelExpr is too large for 64-bit mask!");
118
13.4k
    return (uint64_t(1) << Head) | RelExprMaskBuilder<Tail...>::build();
119
13.4k
  }
lld::elf::RelExprMaskBuilder<(lld::elf::RelExpr)17, (lld::elf::RelExpr)19, (lld::elf::RelExpr)59, (lld::elf::RelExpr)24, (lld::elf::RelExpr)21, (lld::elf::RelExpr)25, (lld::elf::RelExpr)26, (lld::elf::RelExpr)23, (lld::elf::RelExpr)27, (lld::elf::RelExpr)3, (lld::elf::RelExpr)4, (lld::elf::RelExpr)18, (lld::elf::RelExpr)12, (lld::elf::RelExpr)13, (lld::elf::RelExpr)33, (lld::elf::RelExpr)53, (lld::elf::RelExpr)54, (lld::elf::RelExpr)55, (lld::elf::RelExpr)35, (lld::elf::RelExpr)52, (lld::elf::RelExpr)8, (lld::elf::RelExpr)20, (lld::elf::RelExpr)60, (lld::elf::RelExpr)56>::build()
Line
Count
Source
115
13.4k
  static inline uint64_t build() {
116
13.4k
    static_assert(0 <= Head && Head < 64,
117
13.4k
                  "RelExpr is too large for 64-bit mask!");
118
13.4k
    return (uint64_t(1) << Head) | RelExprMaskBuilder<Tail...>::build();
119
13.4k
  }
lld::elf::RelExprMaskBuilder<(lld::elf::RelExpr)19, (lld::elf::RelExpr)59, (lld::elf::RelExpr)24, (lld::elf::RelExpr)21, (lld::elf::RelExpr)25, (lld::elf::RelExpr)26, (lld::elf::RelExpr)23, (lld::elf::RelExpr)27, (lld::elf::RelExpr)3, (lld::elf::RelExpr)4, (lld::elf::RelExpr)18, (lld::elf::RelExpr)12, (lld::elf::RelExpr)13, (lld::elf::RelExpr)33, (lld::elf::RelExpr)53, (lld::elf::RelExpr)54, (lld::elf::RelExpr)55, (lld::elf::RelExpr)35, (lld::elf::RelExpr)52, (lld::elf::RelExpr)8, (lld::elf::RelExpr)20, (lld::elf::RelExpr)60, (lld::elf::RelExpr)56>::build()
Line
Count
Source
115
13.4k
  static inline uint64_t build() {
116
13.4k
    static_assert(0 <= Head && Head < 64,
117
13.4k
                  "RelExpr is too large for 64-bit mask!");
118
13.4k
    return (uint64_t(1) << Head) | RelExprMaskBuilder<Tail...>::build();
119
13.4k
  }
lld::elf::RelExprMaskBuilder<(lld::elf::RelExpr)59, (lld::elf::RelExpr)24, (lld::elf::RelExpr)21, (lld::elf::RelExpr)25, (lld::elf::RelExpr)26, (lld::elf::RelExpr)23, (lld::elf::RelExpr)27, (lld::elf::RelExpr)3, (lld::elf::RelExpr)4, (lld::elf::RelExpr)18, (lld::elf::RelExpr)12, (lld::elf::RelExpr)13, (lld::elf::RelExpr)33, (lld::elf::RelExpr)53, (lld::elf::RelExpr)54, (lld::elf::RelExpr)55, (lld::elf::RelExpr)35, (lld::elf::RelExpr)52, (lld::elf::RelExpr)8, (lld::elf::RelExpr)20, (lld::elf::RelExpr)60, (lld::elf::RelExpr)56>::build()
Line
Count
Source
115
13.4k
  static inline uint64_t build() {
116
13.4k
    static_assert(0 <= Head && Head < 64,
117
13.4k
                  "RelExpr is too large for 64-bit mask!");
118
13.4k
    return (uint64_t(1) << Head) | RelExprMaskBuilder<Tail...>::build();
119
13.4k
  }
lld::elf::RelExprMaskBuilder<(lld::elf::RelExpr)24, (lld::elf::RelExpr)21, (lld::elf::RelExpr)25, (lld::elf::RelExpr)26, (lld::elf::RelExpr)23, (lld::elf::RelExpr)27, (lld::elf::RelExpr)3, (lld::elf::RelExpr)4, (lld::elf::RelExpr)18, (lld::elf::RelExpr)12, (lld::elf::RelExpr)13, (lld::elf::RelExpr)33, (lld::elf::RelExpr)53, (lld::elf::RelExpr)54, (lld::elf::RelExpr)55, (lld::elf::RelExpr)35, (lld::elf::RelExpr)52, (lld::elf::RelExpr)8, (lld::elf::RelExpr)20, (lld::elf::RelExpr)60, (lld::elf::RelExpr)56>::build()
Line
Count
Source
115
13.4k
  static inline uint64_t build() {
116
13.4k
    static_assert(0 <= Head && Head < 64,
117
13.4k
                  "RelExpr is too large for 64-bit mask!");
118
13.4k
    return (uint64_t(1) << Head) | RelExprMaskBuilder<Tail...>::build();
119
13.4k
  }
lld::elf::RelExprMaskBuilder<(lld::elf::RelExpr)21, (lld::elf::RelExpr)25, (lld::elf::RelExpr)26, (lld::elf::RelExpr)23, (lld::elf::RelExpr)27, (lld::elf::RelExpr)3, (lld::elf::RelExpr)4, (lld::elf::RelExpr)18, (lld::elf::RelExpr)12, (lld::elf::RelExpr)13, (lld::elf::RelExpr)33, (lld::elf::RelExpr)53, (lld::elf::RelExpr)54, (lld::elf::RelExpr)55, (lld::elf::RelExpr)35, (lld::elf::RelExpr)52, (lld::elf::RelExpr)8, (lld::elf::RelExpr)20, (lld::elf::RelExpr)60, (lld::elf::RelExpr)56>::build()
Line
Count
Source
115
13.4k
  static inline uint64_t build() {
116
13.4k
    static_assert(0 <= Head && Head < 64,
117
13.4k
                  "RelExpr is too large for 64-bit mask!");
118
13.4k
    return (uint64_t(1) << Head) | RelExprMaskBuilder<Tail...>::build();
119
13.4k
  }
lld::elf::RelExprMaskBuilder<(lld::elf::RelExpr)25, (lld::elf::RelExpr)26, (lld::elf::RelExpr)23, (lld::elf::RelExpr)27, (lld::elf::RelExpr)3, (lld::elf::RelExpr)4, (lld::elf::RelExpr)18, (lld::elf::RelExpr)12, (lld::elf::RelExpr)13, (lld::elf::RelExpr)33, (lld::elf::RelExpr)53, (lld::elf::RelExpr)54, (lld::elf::RelExpr)55, (lld::elf::RelExpr)35, (lld::elf::RelExpr)52, (lld::elf::RelExpr)8, (lld::elf::RelExpr)20, (lld::elf::RelExpr)60, (lld::elf::RelExpr)56>::build()
Line
Count
Source
115
13.4k
  static inline uint64_t build() {
116
13.4k
    static_assert(0 <= Head && Head < 64,
117
13.4k
                  "RelExpr is too large for 64-bit mask!");
118
13.4k
    return (uint64_t(1) << Head) | RelExprMaskBuilder<Tail...>::build();
119
13.4k
  }
lld::elf::RelExprMaskBuilder<(lld::elf::RelExpr)26, (lld::elf::RelExpr)23, (lld::elf::RelExpr)27, (lld::elf::RelExpr)3, (lld::elf::RelExpr)4, (lld::elf::RelExpr)18, (lld::elf::RelExpr)12, (lld::elf::RelExpr)13, (lld::elf::RelExpr)33, (lld::elf::RelExpr)53, (lld::elf::RelExpr)54, (lld::elf::RelExpr)55, (lld::elf::RelExpr)35, (lld::elf::RelExpr)52, (lld::elf::RelExpr)8, (lld::elf::RelExpr)20, (lld::elf::RelExpr)60, (lld::elf::RelExpr)56>::build()
Line
Count
Source
115
13.4k
  static inline uint64_t build() {
116
13.4k
    static_assert(0 <= Head && Head < 64,
117
13.4k
                  "RelExpr is too large for 64-bit mask!");
118
13.4k
    return (uint64_t(1) << Head) | RelExprMaskBuilder<Tail...>::build();
119
13.4k
  }
lld::elf::RelExprMaskBuilder<(lld::elf::RelExpr)23, (lld::elf::RelExpr)27, (lld::elf::RelExpr)3, (lld::elf::RelExpr)4, (lld::elf::RelExpr)18, (lld::elf::RelExpr)12, (lld::elf::RelExpr)13, (lld::elf::RelExpr)33, (lld::elf::RelExpr)53, (lld::elf::RelExpr)54, (lld::elf::RelExpr)55, (lld::elf::RelExpr)35, (lld::elf::RelExpr)52, (lld::elf::RelExpr)8, (lld::elf::RelExpr)20, (lld::elf::RelExpr)60, (lld::elf::RelExpr)56>::build()
Line
Count
Source
115
13.4k
  static inline uint64_t build() {
116
13.4k
    static_assert(0 <= Head && Head < 64,
117
13.4k
                  "RelExpr is too large for 64-bit mask!");
118
13.4k
    return (uint64_t(1) << Head) | RelExprMaskBuilder<Tail...>::build();
119
13.4k
  }
lld::elf::RelExprMaskBuilder<(lld::elf::RelExpr)27, (lld::elf::RelExpr)3, (lld::elf::RelExpr)4, (lld::elf::RelExpr)18, (lld::elf::RelExpr)12, (lld::elf::RelExpr)13, (lld::elf::RelExpr)33, (lld::elf::RelExpr)53, (lld::elf::RelExpr)54, (lld::elf::RelExpr)55, (lld::elf::RelExpr)35, (lld::elf::RelExpr)52, (lld::elf::RelExpr)8, (lld::elf::RelExpr)20, (lld::elf::RelExpr)60, (lld::elf::RelExpr)56>::build()
Line
Count
Source
115
13.4k
  static inline uint64_t build() {
116
13.4k
    static_assert(0 <= Head && Head < 64,
117
13.4k
                  "RelExpr is too large for 64-bit mask!");
118
13.4k
    return (uint64_t(1) << Head) | RelExprMaskBuilder<Tail...>::build();
119
13.4k
  }
lld::elf::RelExprMaskBuilder<(lld::elf::RelExpr)3, (lld::elf::RelExpr)4, (lld::elf::RelExpr)18, (lld::elf::RelExpr)12, (lld::elf::RelExpr)13, (lld::elf::RelExpr)33, (lld::elf::RelExpr)53, (lld::elf::RelExpr)54, (lld::elf::RelExpr)55, (lld::elf::RelExpr)35, (lld::elf::RelExpr)52, (lld::elf::RelExpr)8, (lld::elf::RelExpr)20, (lld::elf::RelExpr)60, (lld::elf::RelExpr)56>::build()
Line
Count
Source
115
13.4k
  static inline uint64_t build() {
116
13.4k
    static_assert(0 <= Head && Head < 64,
117
13.4k
                  "RelExpr is too large for 64-bit mask!");
118
13.4k
    return (uint64_t(1) << Head) | RelExprMaskBuilder<Tail...>::build();
119
13.4k
  }
lld::elf::RelExprMaskBuilder<(lld::elf::RelExpr)4, (lld::elf::RelExpr)18, (lld::elf::RelExpr)12, (lld::elf::RelExpr)13, (lld::elf::RelExpr)33, (lld::elf::RelExpr)53, (lld::elf::RelExpr)54, (lld::elf::RelExpr)55, (lld::elf::RelExpr)35, (lld::elf::RelExpr)52, (lld::elf::RelExpr)8, (lld::elf::RelExpr)20, (lld::elf::RelExpr)60, (lld::elf::RelExpr)56>::build()
Line
Count
Source
115
13.4k
  static inline uint64_t build() {
116
13.4k
    static_assert(0 <= Head && Head < 64,
117
13.4k
                  "RelExpr is too large for 64-bit mask!");
118
13.4k
    return (uint64_t(1) << Head) | RelExprMaskBuilder<Tail...>::build();
119
13.4k
  }
lld::elf::RelExprMaskBuilder<(lld::elf::RelExpr)18, (lld::elf::RelExpr)12, (lld::elf::RelExpr)13, (lld::elf::RelExpr)33, (lld::elf::RelExpr)53, (lld::elf::RelExpr)54, (lld::elf::RelExpr)55, (lld::elf::RelExpr)35, (lld::elf::RelExpr)52, (lld::elf::RelExpr)8, (lld::elf::RelExpr)20, (lld::elf::RelExpr)60, (lld::elf::RelExpr)56>::build()
Line
Count
Source
115
13.4k
  static inline uint64_t build() {
116
13.4k
    static_assert(0 <= Head && Head < 64,
117
13.4k
                  "RelExpr is too large for 64-bit mask!");
118
13.4k
    return (uint64_t(1) << Head) | RelExprMaskBuilder<Tail...>::build();
119
13.4k
  }
lld::elf::RelExprMaskBuilder<(lld::elf::RelExpr)12, (lld::elf::RelExpr)13, (lld::elf::RelExpr)33, (lld::elf::RelExpr)53, (lld::elf::RelExpr)54, (lld::elf::RelExpr)55, (lld::elf::RelExpr)35, (lld::elf::RelExpr)52, (lld::elf::RelExpr)8, (lld::elf::RelExpr)20, (lld::elf::RelExpr)60, (lld::elf::RelExpr)56>::build()
Line
Count
Source
115
13.4k
  static inline uint64_t build() {
116
13.4k
    static_assert(0 <= Head && Head < 64,
117
13.4k
                  "RelExpr is too large for 64-bit mask!");
118
13.4k
    return (uint64_t(1) << Head) | RelExprMaskBuilder<Tail...>::build();
119
13.4k
  }
lld::elf::RelExprMaskBuilder<(lld::elf::RelExpr)13, (lld::elf::RelExpr)33, (lld::elf::RelExpr)53, (lld::elf::RelExpr)54, (lld::elf::RelExpr)55, (lld::elf::RelExpr)35, (lld::elf::RelExpr)52, (lld::elf::RelExpr)8, (lld::elf::RelExpr)20, (lld::elf::RelExpr)60, (lld::elf::RelExpr)56>::build()
Line
Count
Source
115
13.4k
  static inline uint64_t build() {
116
13.4k
    static_assert(0 <= Head && Head < 64,
117
13.4k
                  "RelExpr is too large for 64-bit mask!");
118
13.4k
    return (uint64_t(1) << Head) | RelExprMaskBuilder<Tail...>::build();
119
13.4k
  }
lld::elf::RelExprMaskBuilder<(lld::elf::RelExpr)33, (lld::elf::RelExpr)53, (lld::elf::RelExpr)54, (lld::elf::RelExpr)55, (lld::elf::RelExpr)35, (lld::elf::RelExpr)52, (lld::elf::RelExpr)8, (lld::elf::RelExpr)20, (lld::elf::RelExpr)60, (lld::elf::RelExpr)56>::build()
Line
Count
Source
115
13.4k
  static inline uint64_t build() {
116
13.4k
    static_assert(0 <= Head && Head < 64,
117
13.4k
                  "RelExpr is too large for 64-bit mask!");
118
13.4k
    return (uint64_t(1) << Head) | RelExprMaskBuilder<Tail...>::build();
119
13.4k
  }
lld::elf::RelExprMaskBuilder<(lld::elf::RelExpr)53, (lld::elf::RelExpr)54, (lld::elf::RelExpr)55, (lld::elf::RelExpr)35, (lld::elf::RelExpr)52, (lld::elf::RelExpr)8, (lld::elf::RelExpr)20, (lld::elf::RelExpr)60, (lld::elf::RelExpr)56>::build()
Line
Count
Source
115
13.4k
  static inline uint64_t build() {
116
13.4k
    static_assert(0 <= Head && Head < 64,
117
13.4k
                  "RelExpr is too large for 64-bit mask!");
118
13.4k
    return (uint64_t(1) << Head) | RelExprMaskBuilder<Tail...>::build();
119
13.4k
  }
lld::elf::RelExprMaskBuilder<(lld::elf::RelExpr)54, (lld::elf::RelExpr)55, (lld::elf::RelExpr)35, (lld::elf::RelExpr)52, (lld::elf::RelExpr)8, (lld::elf::RelExpr)20, (lld::elf::RelExpr)60, (lld::elf::RelExpr)56>::build()
Line
Count
Source
115
13.4k
  static inline uint64_t build() {
116
13.4k
    static_assert(0 <= Head && Head < 64,
117
13.4k
                  "RelExpr is too large for 64-bit mask!");
118
13.4k
    return (uint64_t(1) << Head) | RelExprMaskBuilder<Tail...>::build();
119
13.4k
  }
lld::elf::RelExprMaskBuilder<(lld::elf::RelExpr)55, (lld::elf::RelExpr)35, (lld::elf::RelExpr)52, (lld::elf::RelExpr)8, (lld::elf::RelExpr)20, (lld::elf::RelExpr)60, (lld::elf::RelExpr)56>::build()
Line
Count
Source
115
13.4k
  static inline uint64_t build() {
116
13.4k
    static_assert(0 <= Head && Head < 64,
117
13.4k
                  "RelExpr is too large for 64-bit mask!");
118
13.4k
    return (uint64_t(1) << Head) | RelExprMaskBuilder<Tail...>::build();
119
13.4k
  }
lld::elf::RelExprMaskBuilder<(lld::elf::RelExpr)35, (lld::elf::RelExpr)52, (lld::elf::RelExpr)8, (lld::elf::RelExpr)20, (lld::elf::RelExpr)60, (lld::elf::RelExpr)56>::build()
Line
Count
Source
115
13.4k
  static inline uint64_t build() {
116
13.4k
    static_assert(0 <= Head && Head < 64,
117
13.4k
                  "RelExpr is too large for 64-bit mask!");
118
13.4k
    return (uint64_t(1) << Head) | RelExprMaskBuilder<Tail...>::build();
119
13.4k
  }
lld::elf::RelExprMaskBuilder<(lld::elf::RelExpr)52, (lld::elf::RelExpr)8, (lld::elf::RelExpr)20, (lld::elf::RelExpr)60, (lld::elf::RelExpr)56>::build()
Line
Count
Source
115
13.4k
  static inline uint64_t build() {
116
13.4k
    static_assert(0 <= Head && Head < 64,
117
13.4k
                  "RelExpr is too large for 64-bit mask!");
118
13.4k
    return (uint64_t(1) << Head) | RelExprMaskBuilder<Tail...>::build();
119
13.4k
  }
lld::elf::RelExprMaskBuilder<(lld::elf::RelExpr)8, (lld::elf::RelExpr)20, (lld::elf::RelExpr)60, (lld::elf::RelExpr)56>::build()
Line
Count
Source
115
13.4k
  static inline uint64_t build() {
116
13.4k
    static_assert(0 <= Head && Head < 64,
117
13.4k
                  "RelExpr is too large for 64-bit mask!");
118
13.4k
    return (uint64_t(1) << Head) | RelExprMaskBuilder<Tail...>::build();
119
13.4k
  }
lld::elf::RelExprMaskBuilder<(lld::elf::RelExpr)20, (lld::elf::RelExpr)60, (lld::elf::RelExpr)56>::build()
Line
Count
Source
115
13.4k
  static inline uint64_t build() {
116
13.4k
    static_assert(0 <= Head && Head < 64,
117
13.4k
                  "RelExpr is too large for 64-bit mask!");
118
13.4k
    return (uint64_t(1) << Head) | RelExprMaskBuilder<Tail...>::build();
119
13.4k
  }
lld::elf::RelExprMaskBuilder<(lld::elf::RelExpr)60, (lld::elf::RelExpr)56>::build()
Line
Count
Source
115
13.4k
  static inline uint64_t build() {
116
13.4k
    static_assert(0 <= Head && Head < 64,
117
13.4k
                  "RelExpr is too large for 64-bit mask!");
118
13.4k
    return (uint64_t(1) << Head) | RelExprMaskBuilder<Tail...>::build();
119
13.4k
  }
lld::elf::RelExprMaskBuilder<(lld::elf::RelExpr)31, (lld::elf::RelExpr)14, (lld::elf::RelExpr)15, (lld::elf::RelExpr)21, (lld::elf::RelExpr)34, (lld::elf::RelExpr)35, (lld::elf::RelExpr)6, (lld::elf::RelExpr)7, (lld::elf::RelExpr)37>::build()
Line
Count
Source
115
642
  static inline uint64_t build() {
116
642
    static_assert(0 <= Head && Head < 64,
117
642
                  "RelExpr is too large for 64-bit mask!");
118
642
    return (uint64_t(1) << Head) | RelExprMaskBuilder<Tail...>::build();
119
642
  }
lld::elf::RelExprMaskBuilder<(lld::elf::RelExpr)14, (lld::elf::RelExpr)15, (lld::elf::RelExpr)21, (lld::elf::RelExpr)34, (lld::elf::RelExpr)35, (lld::elf::RelExpr)6, (lld::elf::RelExpr)7, (lld::elf::RelExpr)37>::build()
Line
Count
Source
115
642
  static inline uint64_t build() {
116
642
    static_assert(0 <= Head && Head < 64,
117
642
                  "RelExpr is too large for 64-bit mask!");
118
642
    return (uint64_t(1) << Head) | RelExprMaskBuilder<Tail...>::build();
119
642
  }
lld::elf::RelExprMaskBuilder<(lld::elf::RelExpr)15, (lld::elf::RelExpr)21, (lld::elf::RelExpr)34, (lld::elf::RelExpr)35, (lld::elf::RelExpr)6, (lld::elf::RelExpr)7, (lld::elf::RelExpr)37>::build()
Line
Count
Source
115
642
  static inline uint64_t build() {
116
642
    static_assert(0 <= Head && Head < 64,
117
642
                  "RelExpr is too large for 64-bit mask!");
118
642
    return (uint64_t(1) << Head) | RelExprMaskBuilder<Tail...>::build();
119
642
  }
lld::elf::RelExprMaskBuilder<(lld::elf::RelExpr)21, (lld::elf::RelExpr)34, (lld::elf::RelExpr)35, (lld::elf::RelExpr)6, (lld::elf::RelExpr)7, (lld::elf::RelExpr)37>::build()
Line
Count
Source
115
642
  static inline uint64_t build() {
116
642
    static_assert(0 <= Head && Head < 64,
117
642
                  "RelExpr is too large for 64-bit mask!");
118
642
    return (uint64_t(1) << Head) | RelExprMaskBuilder<Tail...>::build();
119
642
  }
lld::elf::RelExprMaskBuilder<(lld::elf::RelExpr)34, (lld::elf::RelExpr)35, (lld::elf::RelExpr)6, (lld::elf::RelExpr)7, (lld::elf::RelExpr)37>::build()
Line
Count
Source
115
642
  static inline uint64_t build() {
116
642
    static_assert(0 <= Head && Head < 64,
117
642
                  "RelExpr is too large for 64-bit mask!");
118
642
    return (uint64_t(1) << Head) | RelExprMaskBuilder<Tail...>::build();
119
642
  }
lld::elf::RelExprMaskBuilder<(lld::elf::RelExpr)35, (lld::elf::RelExpr)6, (lld::elf::RelExpr)7, (lld::elf::RelExpr)37>::build()
Line
Count
Source
115
642
  static inline uint64_t build() {
116
642
    static_assert(0 <= Head && Head < 64,
117
642
                  "RelExpr is too large for 64-bit mask!");
118
642
    return (uint64_t(1) << Head) | RelExprMaskBuilder<Tail...>::build();
119
642
  }
lld::elf::RelExprMaskBuilder<(lld::elf::RelExpr)6, (lld::elf::RelExpr)7, (lld::elf::RelExpr)37>::build()
Line
Count
Source
115
642
  static inline uint64_t build() {
116
642
    static_assert(0 <= Head && Head < 64,
117
642
                  "RelExpr is too large for 64-bit mask!");
118
642
    return (uint64_t(1) << Head) | RelExprMaskBuilder<Tail...>::build();
119
642
  }
lld::elf::RelExprMaskBuilder<(lld::elf::RelExpr)7, (lld::elf::RelExpr)37>::build()
Line
Count
Source
115
642
  static inline uint64_t build() {
116
642
    static_assert(0 <= Head && Head < 64,
117
642
                  "RelExpr is too large for 64-bit mask!");
118
642
    return (uint64_t(1) << Head) | RelExprMaskBuilder<Tail...>::build();
119
642
  }
lld::elf::RelExprMaskBuilder<(lld::elf::RelExpr)37>::build()
Line
Count
Source
115
642
  static inline uint64_t build() {
116
642
    static_assert(0 <= Head && Head < 64,
117
642
                  "RelExpr is too large for 64-bit mask!");
118
642
    return (uint64_t(1) << Head) | RelExprMaskBuilder<Tail...>::build();
119
642
  }
120
};
121
122
// Return true if `Expr` is one of `Exprs`.
123
// There are fewer than 64 RelExpr's, so we can represent any set of
124
// RelExpr's as a constant bit mask and test for membership with a
125
// couple cheap bitwise operations.
126
69.9k
template <RelExpr... Exprs> bool isRelExprOneOf(RelExpr Expr) {
127
69.9k
  assert(0 <= Expr && (int)Expr < 64 &&
128
69.9k
         "RelExpr is too large for 64-bit mask!");
129
69.9k
  return (uint64_t(1) << Expr) & RelExprMaskBuilder<Exprs...>::build();
130
69.9k
}
Unexecuted instantiation: bool lld::elf::isRelExprOneOf<(lld::elf::RelExpr)31>(lld::elf::RelExpr)
bool lld::elf::isRelExprOneOf<(lld::elf::RelExpr)20, (lld::elf::RelExpr)30>(lld::elf::RelExpr)
Line
Count
Source
126
13.8k
template <RelExpr... Exprs> bool isRelExprOneOf(RelExpr Expr) {
127
13.8k
  assert(0 <= Expr && (int)Expr < 64 &&
128
13.8k
         "RelExpr is too large for 64-bit mask!");
129
13.8k
  return (uint64_t(1) << Expr) & RelExprMaskBuilder<Exprs...>::build();
130
13.8k
}
bool lld::elf::isRelExprOneOf<(lld::elf::RelExpr)12, (lld::elf::RelExpr)13, (lld::elf::RelExpr)14, (lld::elf::RelExpr)15, (lld::elf::RelExpr)36>(lld::elf::RelExpr)
Line
Count
Source
126
13.7k
template <RelExpr... Exprs> bool isRelExprOneOf(RelExpr Expr) {
127
13.7k
  assert(0 <= Expr && (int)Expr < 64 &&
128
13.7k
         "RelExpr is too large for 64-bit mask!");
129
13.7k
  return (uint64_t(1) << Expr) & RelExprMaskBuilder<Exprs...>::build();
130
13.7k
}
bool lld::elf::isRelExprOneOf<(lld::elf::RelExpr)51, (lld::elf::RelExpr)8, (lld::elf::RelExpr)52>(lld::elf::RelExpr)
Line
Count
Source
126
384
template <RelExpr... Exprs> bool isRelExprOneOf(RelExpr Expr) {
127
384
  assert(0 <= Expr && (int)Expr < 64 &&
128
384
         "RelExpr is too large for 64-bit mask!");
129
384
  return (uint64_t(1) << Expr) & RelExprMaskBuilder<Exprs...>::build();
130
384
}
bool lld::elf::isRelExprOneOf<(lld::elf::RelExpr)57, (lld::elf::RelExpr)58, (lld::elf::RelExpr)61, (lld::elf::RelExpr)60>(lld::elf::RelExpr)
Line
Count
Source
126
362
template <RelExpr... Exprs> bool isRelExprOneOf(RelExpr Expr) {
127
362
  assert(0 <= Expr && (int)Expr < 64 &&
128
362
         "RelExpr is too large for 64-bit mask!");
129
362
  return (uint64_t(1) << Expr) & RelExprMaskBuilder<Exprs...>::build();
130
362
}
bool lld::elf::isRelExprOneOf<(lld::elf::RelExpr)51, (lld::elf::RelExpr)8, (lld::elf::RelExpr)52, (lld::elf::RelExpr)53, (lld::elf::RelExpr)54, (lld::elf::RelExpr)55>(lld::elf::RelExpr)
Line
Count
Source
126
297
template <RelExpr... Exprs> bool isRelExprOneOf(RelExpr Expr) {
127
297
  assert(0 <= Expr && (int)Expr < 64 &&
128
297
         "RelExpr is too large for 64-bit mask!");
129
297
  return (uint64_t(1) << Expr) & RelExprMaskBuilder<Exprs...>::build();
130
297
}
bool lld::elf::isRelExprOneOf<(lld::elf::RelExpr)10, (lld::elf::RelExpr)16, (lld::elf::RelExpr)18, (lld::elf::RelExpr)3, (lld::elf::RelExpr)17, (lld::elf::RelExpr)56>(lld::elf::RelExpr)
Line
Count
Source
126
227
template <RelExpr... Exprs> bool isRelExprOneOf(RelExpr Expr) {
127
227
  assert(0 <= Expr && (int)Expr < 64 &&
128
227
         "RelExpr is too large for 64-bit mask!");
129
227
  return (uint64_t(1) << Expr) & RelExprMaskBuilder<Exprs...>::build();
130
227
}
bool lld::elf::isRelExprOneOf<(lld::elf::RelExpr)33, (lld::elf::RelExpr)35, (lld::elf::RelExpr)32, (lld::elf::RelExpr)7, (lld::elf::RelExpr)11, (lld::elf::RelExpr)4>(lld::elf::RelExpr)
Line
Count
Source
126
13.4k
template <RelExpr... Exprs> bool isRelExprOneOf(RelExpr Expr) {
127
13.4k
  assert(0 <= Expr && (int)Expr < 64 &&
128
13.4k
         "RelExpr is too large for 64-bit mask!");
129
13.4k
  return (uint64_t(1) << Expr) & RelExprMaskBuilder<Exprs...>::build();
130
13.4k
}
bool lld::elf::isRelExprOneOf<(lld::elf::RelExpr)10, (lld::elf::RelExpr)17, (lld::elf::RelExpr)19, (lld::elf::RelExpr)24, (lld::elf::RelExpr)25, (lld::elf::RelExpr)26, (lld::elf::RelExpr)3, (lld::elf::RelExpr)4, (lld::elf::RelExpr)18, (lld::elf::RelExpr)16, (lld::elf::RelExpr)11>(lld::elf::RelExpr)
Line
Count
Source
126
13.4k
template <RelExpr... Exprs> bool isRelExprOneOf(RelExpr Expr) {
127
13.4k
  assert(0 <= Expr && (int)Expr < 64 &&
128
13.4k
         "RelExpr is too large for 64-bit mask!");
129
13.4k
  return (uint64_t(1) << Expr) & RelExprMaskBuilder<Exprs...>::build();
130
13.4k
}
bool lld::elf::isRelExprOneOf<(lld::elf::RelExpr)16, (lld::elf::RelExpr)17, (lld::elf::RelExpr)19, (lld::elf::RelExpr)59, (lld::elf::RelExpr)24, (lld::elf::RelExpr)21, (lld::elf::RelExpr)25, (lld::elf::RelExpr)26, (lld::elf::RelExpr)23, (lld::elf::RelExpr)27, (lld::elf::RelExpr)3, (lld::elf::RelExpr)4, (lld::elf::RelExpr)18, (lld::elf::RelExpr)12, (lld::elf::RelExpr)13, (lld::elf::RelExpr)33, (lld::elf::RelExpr)53, (lld::elf::RelExpr)54, (lld::elf::RelExpr)55, (lld::elf::RelExpr)35, (lld::elf::RelExpr)52, (lld::elf::RelExpr)8, (lld::elf::RelExpr)20, (lld::elf::RelExpr)60, (lld::elf::RelExpr)56>(lld::elf::RelExpr)
Line
Count
Source
126
13.4k
template <RelExpr... Exprs> bool isRelExprOneOf(RelExpr Expr) {
127
13.4k
  assert(0 <= Expr && (int)Expr < 64 &&
128
13.4k
         "RelExpr is too large for 64-bit mask!");
129
13.4k
  return (uint64_t(1) << Expr) & RelExprMaskBuilder<Exprs...>::build();
130
13.4k
}
bool lld::elf::isRelExprOneOf<(lld::elf::RelExpr)31, (lld::elf::RelExpr)14, (lld::elf::RelExpr)15, (lld::elf::RelExpr)21, (lld::elf::RelExpr)34, (lld::elf::RelExpr)35, (lld::elf::RelExpr)6, (lld::elf::RelExpr)7, (lld::elf::RelExpr)37>(lld::elf::RelExpr)
Line
Count
Source
126
642
template <RelExpr... Exprs> bool isRelExprOneOf(RelExpr Expr) {
127
642
  assert(0 <= Expr && (int)Expr < 64 &&
128
642
         "RelExpr is too large for 64-bit mask!");
129
642
  return (uint64_t(1) << Expr) & RelExprMaskBuilder<Exprs...>::build();
130
642
}
131
132
// Architecture-neutral representation of relocation.
133
struct Relocation {
134
  RelExpr Expr;
135
  RelType Type;
136
  uint64_t Offset;
137
  int64_t Addend;
138
  Symbol *Sym;
139
};
140
141
struct RelocationOffsetComparator {
142
0
  bool operator()(const Relocation &Lhs, const Relocation &Rhs) {
143
0
    return Lhs.Offset < Rhs.Offset;
144
0
  }
145
146
  // For std::lower_bound, std::upper_bound, std::equal_range.
147
0
  bool operator()(const Relocation &Rel, uint64_t Val) {
148
0
    return Rel.Offset < Val;
149
0
  }
150
151
0
  bool operator()(uint64_t Val, const Relocation &Rel) {
152
0
    return Val < Rel.Offset;
153
0
  }
154
};
155
156
template <class ELFT> void scanRelocations(InputSectionBase &);
157
158
class ThunkSection;
159
class Thunk;
160
struct InputSectionDescription;
161
162
class ThunkCreator {
163
public:
164
  // Return true if Thunks have been added to OutputSections
165
  bool createThunks(ArrayRef<OutputSection *> OutputSections);
166
167
  // The number of completed passes of createThunks this permits us
168
  // to do one time initialization on Pass 0 and put a limit on the
169
  // number of times it can be called to prevent infinite loops.
170
  uint32_t Pass = 0;
171
172
private:
173
  void mergeThunks(ArrayRef<OutputSection *> OutputSections);
174
175
  ThunkSection *getISDThunkSec(OutputSection *OS, InputSection *IS,
176
                               InputSectionDescription *ISD, uint32_t Type,
177
                               uint64_t Src);
178
179
  ThunkSection *getISThunkSec(InputSection *IS);
180
181
  void createInitialThunkSections(ArrayRef<OutputSection *> OutputSections);
182
183
  std::pair<Thunk *, bool> getThunk(Symbol &Sym, RelType Type, uint64_t Src);
184
185
  ThunkSection *addThunkSection(OutputSection *OS, InputSectionDescription *,
186
                                uint64_t Off);
187
188
  bool normalizeExistingThunk(Relocation &Rel, uint64_t Src);
189
190
  // Record all the available Thunks for a Symbol
191
  llvm::DenseMap<std::pair<SectionBase *, uint64_t>, std::vector<Thunk *>>
192
      ThunkedSymbolsBySection;
193
  llvm::DenseMap<Symbol *, std::vector<Thunk *>> ThunkedSymbols;
194
195
  // Find a Thunk from the Thunks symbol definition, we can use this to find
196
  // the Thunk from a relocation to the Thunks symbol definition.
197
  llvm::DenseMap<Symbol *, Thunk *> Thunks;
198
199
  // Track InputSections that have an inline ThunkSection placed in front
200
  // an inline ThunkSection may have control fall through to the section below
201
  // so we need to make sure that there is only one of them.
202
  // The Mips LA25 Thunk is an example of an inline ThunkSection.
203
  llvm::DenseMap<InputSection *, ThunkSection *> ThunkedSections;
204
};
205
206
// Return a int64_t to make sure we get the sign extension out of the way as
207
// early as possible.
208
template <class ELFT>
209
44
static inline int64_t getAddend(const typename ELFT::Rel &Rel) {
210
44
  return 0;
211
44
}
DWARF.cpp:long long lld::elf::getAddend<llvm::object::ELFType<(llvm::support::endianness)1, false> >(llvm::object::ELFType<(llvm::support::endianness)1, false>::Rel const&)
Line
Count
Source
209
6
static inline int64_t getAddend(const typename ELFT::Rel &Rel) {
210
6
  return 0;
211
6
}
Unexecuted instantiation: DWARF.cpp:long long lld::elf::getAddend<llvm::object::ELFType<(llvm::support::endianness)0, false> >(llvm::object::ELFType<(llvm::support::endianness)0, false>::Rel const&)
Unexecuted instantiation: DWARF.cpp:long long lld::elf::getAddend<llvm::object::ELFType<(llvm::support::endianness)1, true> >(llvm::object::ELFType<(llvm::support::endianness)1, true>::Rel const&)
Unexecuted instantiation: DWARF.cpp:long long lld::elf::getAddend<llvm::object::ELFType<(llvm::support::endianness)0, true> >(llvm::object::ELFType<(llvm::support::endianness)0, true>::Rel const&)
ICF.cpp:long long lld::elf::getAddend<llvm::object::ELFType<(llvm::support::endianness)1, false> >(llvm::object::ELFType<(llvm::support::endianness)1, false>::Rel const&)
Line
Count
Source
209
2
static inline int64_t getAddend(const typename ELFT::Rel &Rel) {
210
2
  return 0;
211
2
}
Unexecuted instantiation: ICF.cpp:long long lld::elf::getAddend<llvm::object::ELFType<(llvm::support::endianness)0, false> >(llvm::object::ELFType<(llvm::support::endianness)0, false>::Rel const&)
Unexecuted instantiation: ICF.cpp:long long lld::elf::getAddend<llvm::object::ELFType<(llvm::support::endianness)1, true> >(llvm::object::ELFType<(llvm::support::endianness)1, true>::Rel const&)
Unexecuted instantiation: ICF.cpp:long long lld::elf::getAddend<llvm::object::ELFType<(llvm::support::endianness)0, true> >(llvm::object::ELFType<(llvm::support::endianness)0, true>::Rel const&)
InputSection.cpp:long long lld::elf::getAddend<llvm::object::ELFType<(llvm::support::endianness)1, false> >(llvm::object::ELFType<(llvm::support::endianness)1, false>::Rel const&)
Line
Count
Source
209
20
static inline int64_t getAddend(const typename ELFT::Rel &Rel) {
210
20
  return 0;
211
20
}
InputSection.cpp:long long lld::elf::getAddend<llvm::object::ELFType<(llvm::support::endianness)0, false> >(llvm::object::ELFType<(llvm::support::endianness)0, false>::Rel const&)
Line
Count
Source
209
16
static inline int64_t getAddend(const typename ELFT::Rel &Rel) {
210
16
  return 0;
211
16
}
Unexecuted instantiation: InputSection.cpp:long long lld::elf::getAddend<llvm::object::ELFType<(llvm::support::endianness)1, true> >(llvm::object::ELFType<(llvm::support::endianness)1, true>::Rel const&)
Unexecuted instantiation: InputSection.cpp:long long lld::elf::getAddend<llvm::object::ELFType<(llvm::support::endianness)0, true> >(llvm::object::ELFType<(llvm::support::endianness)0, true>::Rel const&)
Unexecuted instantiation: Relocations.cpp:long long lld::elf::getAddend<llvm::object::ELFType<(llvm::support::endianness)1, false> >(llvm::object::ELFType<(llvm::support::endianness)1, false>::Rel const&)
Unexecuted instantiation: Relocations.cpp:long long lld::elf::getAddend<llvm::object::ELFType<(llvm::support::endianness)0, false> >(llvm::object::ELFType<(llvm::support::endianness)0, false>::Rel const&)
Unexecuted instantiation: Relocations.cpp:long long lld::elf::getAddend<llvm::object::ELFType<(llvm::support::endianness)1, true> >(llvm::object::ELFType<(llvm::support::endianness)1, true>::Rel const&)
Unexecuted instantiation: Relocations.cpp:long long lld::elf::getAddend<llvm::object::ELFType<(llvm::support::endianness)0, true> >(llvm::object::ELFType<(llvm::support::endianness)0, true>::Rel const&)
212
template <class ELFT>
213
13.1k
static inline int64_t getAddend(const typename ELFT::Rela &Rel) {
214
13.1k
  return Rel.r_addend;
215
13.1k
}
Unexecuted instantiation: DWARF.cpp:long long lld::elf::getAddend<llvm::object::ELFType<(llvm::support::endianness)1, false> >(llvm::object::ELFType<(llvm::support::endianness)1, false>::Rela const&)
Unexecuted instantiation: DWARF.cpp:long long lld::elf::getAddend<llvm::object::ELFType<(llvm::support::endianness)0, false> >(llvm::object::ELFType<(llvm::support::endianness)0, false>::Rela const&)
DWARF.cpp:long long lld::elf::getAddend<llvm::object::ELFType<(llvm::support::endianness)1, true> >(llvm::object::ELFType<(llvm::support::endianness)1, true>::Rela const&)
Line
Count
Source
213
102
static inline int64_t getAddend(const typename ELFT::Rela &Rel) {
214
102
  return Rel.r_addend;
215
102
}
Unexecuted instantiation: DWARF.cpp:long long lld::elf::getAddend<llvm::object::ELFType<(llvm::support::endianness)0, true> >(llvm::object::ELFType<(llvm::support::endianness)0, true>::Rela const&)
Unexecuted instantiation: ICF.cpp:long long lld::elf::getAddend<llvm::object::ELFType<(llvm::support::endianness)1, false> >(llvm::object::ELFType<(llvm::support::endianness)1, false>::Rela const&)
Unexecuted instantiation: ICF.cpp:long long lld::elf::getAddend<llvm::object::ELFType<(llvm::support::endianness)0, false> >(llvm::object::ELFType<(llvm::support::endianness)0, false>::Rela const&)
ICF.cpp:long long lld::elf::getAddend<llvm::object::ELFType<(llvm::support::endianness)1, true> >(llvm::object::ELFType<(llvm::support::endianness)1, true>::Rela const&)
Line
Count
Source
213
40
static inline int64_t getAddend(const typename ELFT::Rela &Rel) {
214
40
  return Rel.r_addend;
215
40
}
Unexecuted instantiation: ICF.cpp:long long lld::elf::getAddend<llvm::object::ELFType<(llvm::support::endianness)0, true> >(llvm::object::ELFType<(llvm::support::endianness)0, true>::Rela const&)
Unexecuted instantiation: InputSection.cpp:long long lld::elf::getAddend<llvm::object::ELFType<(llvm::support::endianness)1, false> >(llvm::object::ELFType<(llvm::support::endianness)1, false>::Rela const&)
Unexecuted instantiation: InputSection.cpp:long long lld::elf::getAddend<llvm::object::ELFType<(llvm::support::endianness)0, false> >(llvm::object::ELFType<(llvm::support::endianness)0, false>::Rela const&)
InputSection.cpp:long long lld::elf::getAddend<llvm::object::ELFType<(llvm::support::endianness)1, true> >(llvm::object::ELFType<(llvm::support::endianness)1, true>::Rela const&)
Line
Count
Source
213
278
static inline int64_t getAddend(const typename ELFT::Rela &Rel) {
214
278
  return Rel.r_addend;
215
278
}
InputSection.cpp:long long lld::elf::getAddend<llvm::object::ELFType<(llvm::support::endianness)0, true> >(llvm::object::ELFType<(llvm::support::endianness)0, true>::Rela const&)
Line
Count
Source
213
4
static inline int64_t getAddend(const typename ELFT::Rela &Rel) {
214
4
  return Rel.r_addend;
215
4
}
Relocations.cpp:long long lld::elf::getAddend<llvm::object::ELFType<(llvm::support::endianness)1, false> >(llvm::object::ELFType<(llvm::support::endianness)1, false>::Rela const&)
Line
Count
Source
213
108
static inline int64_t getAddend(const typename ELFT::Rela &Rel) {
214
108
  return Rel.r_addend;
215
108
}
Relocations.cpp:long long lld::elf::getAddend<llvm::object::ELFType<(llvm::support::endianness)0, false> >(llvm::object::ELFType<(llvm::support::endianness)0, false>::Rela const&)
Line
Count
Source
213
14
static inline int64_t getAddend(const typename ELFT::Rela &Rel) {
214
14
  return Rel.r_addend;
215
14
}
Relocations.cpp:long long lld::elf::getAddend<llvm::object::ELFType<(llvm::support::endianness)1, true> >(llvm::object::ELFType<(llvm::support::endianness)1, true>::Rela const&)
Line
Count
Source
213
2.19k
static inline int64_t getAddend(const typename ELFT::Rela &Rel) {
214
2.19k
  return Rel.r_addend;
215
2.19k
}
Relocations.cpp:long long lld::elf::getAddend<llvm::object::ELFType<(llvm::support::endianness)0, true> >(llvm::object::ELFType<(llvm::support::endianness)0, true>::Rela const&)
Line
Count
Source
213
10.4k
static inline int64_t getAddend(const typename ELFT::Rela &Rel) {
214
10.4k
  return Rel.r_addend;
215
10.4k
}
216
} // namespace elf
217
} // namespace lld
218
219
#endif