/src/elfutils/backends/common-reloc.c
Line | Count | Source (jump to first uncovered line) |
1 | | /* Common code for ebl reloc functions. |
2 | | Copyright (C) 2005, 2006 Red Hat, Inc. |
3 | | This file is part of elfutils. |
4 | | |
5 | | This file is free software; you can redistribute it and/or modify |
6 | | it under the terms of either |
7 | | |
8 | | * the GNU Lesser General Public License as published by the Free |
9 | | Software Foundation; either version 3 of the License, or (at |
10 | | your option) any later version |
11 | | |
12 | | or |
13 | | |
14 | | * the GNU General Public License as published by the Free |
15 | | Software Foundation; either version 2 of the License, or (at |
16 | | your option) any later version |
17 | | |
18 | | or both in parallel, as here. |
19 | | |
20 | | elfutils is distributed in the hope that it will be useful, but |
21 | | WITHOUT ANY WARRANTY; without even the implied warranty of |
22 | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
23 | | General Public License for more details. |
24 | | |
25 | | You should have received copies of the GNU General Public License and |
26 | | the GNU Lesser General Public License along with this program. If |
27 | | not, see <http://www.gnu.org/licenses/>. */ |
28 | | |
29 | | #include "libebl_CPU.h" |
30 | | #include <assert.h> |
31 | | |
32 | 0 | #define R_TYPE(name) PASTE (RELOC_PREFIX, name) |
33 | 0 | #define PASTE(a, b) PASTE_1 (a, b) |
34 | 0 | #define PASTE_1(a, b) a##b |
35 | | #define R_NAME(name) R_NAME_1 (RELOC_PREFIX, name) |
36 | | #define R_NAME_1(prefix, type) R_NAME_2 (prefix, type) |
37 | | #define R_NAME_2(prefix, type) #prefix #type |
38 | | |
39 | | #define RELOC_TYPES STRINGIFIED_PASTE (BACKEND, reloc.def) |
40 | | #define STRINGIFIED_PASTE(a, b) STRINGIFY (PASTE (a, b)) |
41 | | #define STRINGIFY(x) STRINGIFY_1 (x) |
42 | | #define STRINGIFY_1(x) #x |
43 | | |
44 | | /* Provide a table of reloc type names, in a PIC-friendly fashion. */ |
45 | | |
46 | | static const struct EBLHOOK(reloc_nametable) |
47 | | { |
48 | | char zero[1]; |
49 | | #define RELOC_TYPE(type, uses) \ |
50 | | char name_##type[sizeof R_NAME (type)]; |
51 | | #include RELOC_TYPES |
52 | | #undef RELOC_TYPE |
53 | | } EBLHOOK(reloc_nametable) = |
54 | | { |
55 | | { '\0' }, |
56 | | #define RELOC_TYPE(type, uses) R_NAME (type), |
57 | | #include RELOC_TYPES |
58 | | #undef RELOC_TYPE |
59 | | }; |
60 | 0 | #define reloc_namestr (&EBLHOOK(reloc_nametable).zero) |
61 | | |
62 | | static const uint_fast16_t EBLHOOK(reloc_nameidx)[] = |
63 | | { |
64 | | #define RELOC_TYPE(type, uses) \ |
65 | | [R_TYPE (type)] = offsetof (struct EBLHOOK(reloc_nametable), name_##type), |
66 | | #include RELOC_TYPES |
67 | | #undef RELOC_TYPE |
68 | | }; |
69 | | #define nreloc \ |
70 | 0 | ((int) (sizeof EBLHOOK(reloc_nameidx) / sizeof EBLHOOK(reloc_nameidx)[0])) |
71 | | |
72 | | #define REL (1 << (ET_REL - 1)) |
73 | | #define EXEC (1 << (ET_EXEC - 1)) |
74 | | #define DYN (1 << (ET_DYN - 1)) |
75 | | static const uint8_t EBLHOOK(reloc_valid)[] = |
76 | | { |
77 | | #define RELOC_TYPE(type, uses) [R_TYPE (type)] = uses, |
78 | | #include RELOC_TYPES |
79 | | #undef RELOC_TYPE |
80 | | }; |
81 | | #undef REL |
82 | | #undef EXEC |
83 | | #undef DYN |
84 | | |
85 | | const char * |
86 | | EBLHOOK(reloc_type_name) (int reloc, |
87 | | char *buf __attribute__ ((unused)), |
88 | | size_t len __attribute__ ((unused))) |
89 | 0 | { |
90 | | #ifdef RELOC_TYPE_ID |
91 | 0 | reloc = RELOC_TYPE_ID (reloc); |
92 | | #endif |
93 | |
|
94 | 0 | if (reloc >= 0 && reloc < nreloc && EBLHOOK(reloc_nameidx)[reloc] != 0) |
95 | 0 | return reloc_namestr[EBLHOOK(reloc_nameidx)[reloc]]; |
96 | 0 | return NULL; |
97 | 0 | } Unexecuted instantiation: i386_reloc_type_name Unexecuted instantiation: sh_reloc_type_name Unexecuted instantiation: x86_64_reloc_type_name Unexecuted instantiation: ia64_reloc_type_name Unexecuted instantiation: alpha_reloc_type_name Unexecuted instantiation: arm_reloc_type_name Unexecuted instantiation: aarch64_reloc_type_name Unexecuted instantiation: sparc_reloc_type_name Unexecuted instantiation: ppc_reloc_type_name Unexecuted instantiation: ppc64_reloc_type_name Unexecuted instantiation: s390_reloc_type_name Unexecuted instantiation: m68k_reloc_type_name Unexecuted instantiation: bpf_reloc_type_name Unexecuted instantiation: riscv_reloc_type_name Unexecuted instantiation: csky_reloc_type_name Unexecuted instantiation: loongarch_reloc_type_name Unexecuted instantiation: arc_reloc_type_name Unexecuted instantiation: mips_reloc_type_name Unexecuted instantiation: hexagon_reloc_type_name |
98 | | |
99 | | bool |
100 | | EBLHOOK(reloc_type_check) (int reloc) |
101 | 0 | { |
102 | | #ifdef RELOC_TYPE_ID |
103 | 0 | reloc = RELOC_TYPE_ID (reloc); |
104 | | #endif |
105 | |
|
106 | 0 | return reloc >= 0 && reloc < nreloc && EBLHOOK(reloc_nameidx)[reloc] != 0; |
107 | 0 | } Unexecuted instantiation: i386_reloc_type_check Unexecuted instantiation: sh_reloc_type_check Unexecuted instantiation: x86_64_reloc_type_check Unexecuted instantiation: ia64_reloc_type_check Unexecuted instantiation: alpha_reloc_type_check Unexecuted instantiation: arm_reloc_type_check Unexecuted instantiation: aarch64_reloc_type_check Unexecuted instantiation: sparc_reloc_type_check Unexecuted instantiation: ppc_reloc_type_check Unexecuted instantiation: ppc64_reloc_type_check Unexecuted instantiation: s390_reloc_type_check Unexecuted instantiation: m68k_reloc_type_check Unexecuted instantiation: bpf_reloc_type_check Unexecuted instantiation: riscv_reloc_type_check Unexecuted instantiation: csky_reloc_type_check Unexecuted instantiation: loongarch_reloc_type_check Unexecuted instantiation: arc_reloc_type_check Unexecuted instantiation: mips_reloc_type_check Unexecuted instantiation: hexagon_reloc_type_check |
108 | | |
109 | | bool |
110 | | EBLHOOK(reloc_valid_use) (Elf *elf, int reloc) |
111 | 0 | { |
112 | 0 | uint8_t uses; |
113 | |
|
114 | 0 | GElf_Ehdr ehdr_mem; |
115 | 0 | GElf_Ehdr *ehdr = gelf_getehdr (elf, &ehdr_mem); |
116 | 0 | assert (ehdr != NULL); |
117 | 0 | uint8_t type = ehdr->e_type; |
118 | |
|
119 | | #ifdef RELOC_TYPE_ID |
120 | 0 | reloc = RELOC_TYPE_ID (reloc); |
121 | | #endif |
122 | |
|
123 | 0 | uses = EBLHOOK(reloc_valid)[reloc]; |
124 | 0 | return type > ET_NONE && type < ET_CORE && (uses & (1 << (type - 1))); |
125 | 0 | } Unexecuted instantiation: i386_reloc_valid_use Unexecuted instantiation: sh_reloc_valid_use Unexecuted instantiation: x86_64_reloc_valid_use Unexecuted instantiation: ia64_reloc_valid_use Unexecuted instantiation: alpha_reloc_valid_use Unexecuted instantiation: arm_reloc_valid_use Unexecuted instantiation: aarch64_reloc_valid_use Unexecuted instantiation: sparc_reloc_valid_use Unexecuted instantiation: ppc_reloc_valid_use Unexecuted instantiation: ppc64_reloc_valid_use Unexecuted instantiation: s390_reloc_valid_use Unexecuted instantiation: m68k_reloc_valid_use Unexecuted instantiation: bpf_reloc_valid_use Unexecuted instantiation: riscv_reloc_valid_use Unexecuted instantiation: csky_reloc_valid_use Unexecuted instantiation: loongarch_reloc_valid_use Unexecuted instantiation: arc_reloc_valid_use Unexecuted instantiation: mips_reloc_valid_use Unexecuted instantiation: hexagon_reloc_valid_use |
126 | | |
127 | | #ifndef NO_COPY_RELOC |
128 | | bool |
129 | | EBLHOOK(copy_reloc_p) (int reloc) |
130 | 0 | { |
131 | 0 | return reloc == R_TYPE (COPY); |
132 | 0 | } Unexecuted instantiation: i386_copy_reloc_p Unexecuted instantiation: sh_copy_reloc_p Unexecuted instantiation: x86_64_copy_reloc_p Unexecuted instantiation: ia64_copy_reloc_p Unexecuted instantiation: alpha_copy_reloc_p Unexecuted instantiation: arm_copy_reloc_p Unexecuted instantiation: aarch64_copy_reloc_p Unexecuted instantiation: sparc_copy_reloc_p Unexecuted instantiation: ppc_copy_reloc_p Unexecuted instantiation: ppc64_copy_reloc_p Unexecuted instantiation: s390_copy_reloc_p Unexecuted instantiation: m68k_copy_reloc_p Unexecuted instantiation: riscv_copy_reloc_p Unexecuted instantiation: csky_copy_reloc_p Unexecuted instantiation: loongarch_copy_reloc_p Unexecuted instantiation: arc_copy_reloc_p Unexecuted instantiation: mips_copy_reloc_p Unexecuted instantiation: hexagon_copy_reloc_p |
133 | | #endif |
134 | | |
135 | | bool |
136 | | EBLHOOK(none_reloc_p) (int reloc) |
137 | 0 | { |
138 | 0 | return reloc == R_TYPE (NONE); |
139 | 0 | } Unexecuted instantiation: i386_none_reloc_p Unexecuted instantiation: sh_none_reloc_p Unexecuted instantiation: x86_64_none_reloc_p Unexecuted instantiation: ia64_none_reloc_p Unexecuted instantiation: alpha_none_reloc_p Unexecuted instantiation: arm_none_reloc_p Unexecuted instantiation: aarch64_none_reloc_p Unexecuted instantiation: sparc_none_reloc_p Unexecuted instantiation: ppc_none_reloc_p Unexecuted instantiation: ppc64_none_reloc_p Unexecuted instantiation: s390_none_reloc_p Unexecuted instantiation: m68k_none_reloc_p Unexecuted instantiation: bpf_none_reloc_p Unexecuted instantiation: riscv_none_reloc_p Unexecuted instantiation: csky_none_reloc_p Unexecuted instantiation: loongarch_none_reloc_p Unexecuted instantiation: arc_none_reloc_p Unexecuted instantiation: mips_none_reloc_p Unexecuted instantiation: hexagon_none_reloc_p |
140 | | |
141 | | #ifndef NO_RELATIVE_RELOC |
142 | | bool |
143 | | EBLHOOK(relative_reloc_p) (int reloc) |
144 | 0 | { |
145 | 0 | return reloc == R_TYPE (RELATIVE); |
146 | 0 | } Unexecuted instantiation: i386_relative_reloc_p Unexecuted instantiation: sh_relative_reloc_p Unexecuted instantiation: x86_64_relative_reloc_p Unexecuted instantiation: alpha_relative_reloc_p Unexecuted instantiation: arm_relative_reloc_p Unexecuted instantiation: aarch64_relative_reloc_p Unexecuted instantiation: sparc_relative_reloc_p Unexecuted instantiation: ppc_relative_reloc_p Unexecuted instantiation: ppc64_relative_reloc_p Unexecuted instantiation: s390_relative_reloc_p Unexecuted instantiation: m68k_relative_reloc_p Unexecuted instantiation: riscv_relative_reloc_p Unexecuted instantiation: csky_relative_reloc_p Unexecuted instantiation: loongarch_relative_reloc_p Unexecuted instantiation: arc_relative_reloc_p Unexecuted instantiation: mips_relative_reloc_p Unexecuted instantiation: hexagon_relative_reloc_p |
147 | | #endif |
148 | | |
149 | | static void |
150 | | EBLHOOK(init_reloc) (Ebl *ebl) |
151 | 6.66k | { |
152 | 6.66k | ebl->reloc_type_name = EBLHOOK(reloc_type_name); |
153 | 6.66k | ebl->reloc_type_check = EBLHOOK(reloc_type_check); |
154 | 6.66k | ebl->reloc_valid_use = EBLHOOK(reloc_valid_use); |
155 | 6.66k | ebl->none_reloc_p = EBLHOOK(none_reloc_p); |
156 | | #ifndef NO_COPY_RELOC |
157 | 6.65k | ebl->copy_reloc_p = EBLHOOK(copy_reloc_p); |
158 | | #endif |
159 | | #ifndef NO_RELATIVE_RELOC |
160 | 6.65k | ebl->relative_reloc_p = EBLHOOK(relative_reloc_p); |
161 | | #endif |
162 | 6.66k | } i386_init.c:i386_init_reloc Line | Count | Source | 151 | 550 | { | 152 | 550 | ebl->reloc_type_name = EBLHOOK(reloc_type_name); | 153 | 550 | ebl->reloc_type_check = EBLHOOK(reloc_type_check); | 154 | 550 | ebl->reloc_valid_use = EBLHOOK(reloc_valid_use); | 155 | 550 | ebl->none_reloc_p = EBLHOOK(none_reloc_p); | 156 | 550 | #ifndef NO_COPY_RELOC | 157 | 550 | ebl->copy_reloc_p = EBLHOOK(copy_reloc_p); | 158 | 550 | #endif | 159 | 550 | #ifndef NO_RELATIVE_RELOC | 160 | 550 | ebl->relative_reloc_p = EBLHOOK(relative_reloc_p); | 161 | 550 | #endif | 162 | 550 | } |
Line | Count | Source | 151 | 7 | { | 152 | 7 | ebl->reloc_type_name = EBLHOOK(reloc_type_name); | 153 | 7 | ebl->reloc_type_check = EBLHOOK(reloc_type_check); | 154 | 7 | ebl->reloc_valid_use = EBLHOOK(reloc_valid_use); | 155 | 7 | ebl->none_reloc_p = EBLHOOK(none_reloc_p); | 156 | 7 | #ifndef NO_COPY_RELOC | 157 | 7 | ebl->copy_reloc_p = EBLHOOK(copy_reloc_p); | 158 | 7 | #endif | 159 | 7 | #ifndef NO_RELATIVE_RELOC | 160 | 7 | ebl->relative_reloc_p = EBLHOOK(relative_reloc_p); | 161 | 7 | #endif | 162 | 7 | } |
x86_64_init.c:x86_64_init_reloc Line | Count | Source | 151 | 533 | { | 152 | 533 | ebl->reloc_type_name = EBLHOOK(reloc_type_name); | 153 | 533 | ebl->reloc_type_check = EBLHOOK(reloc_type_check); | 154 | 533 | ebl->reloc_valid_use = EBLHOOK(reloc_valid_use); | 155 | 533 | ebl->none_reloc_p = EBLHOOK(none_reloc_p); | 156 | 533 | #ifndef NO_COPY_RELOC | 157 | 533 | ebl->copy_reloc_p = EBLHOOK(copy_reloc_p); | 158 | 533 | #endif | 159 | 533 | #ifndef NO_RELATIVE_RELOC | 160 | 533 | ebl->relative_reloc_p = EBLHOOK(relative_reloc_p); | 161 | 533 | #endif | 162 | 533 | } |
ia64_init.c:ia64_init_reloc Line | Count | Source | 151 | 5 | { | 152 | 5 | ebl->reloc_type_name = EBLHOOK(reloc_type_name); | 153 | 5 | ebl->reloc_type_check = EBLHOOK(reloc_type_check); | 154 | 5 | ebl->reloc_valid_use = EBLHOOK(reloc_valid_use); | 155 | 5 | ebl->none_reloc_p = EBLHOOK(none_reloc_p); | 156 | 5 | #ifndef NO_COPY_RELOC | 157 | 5 | ebl->copy_reloc_p = EBLHOOK(copy_reloc_p); | 158 | 5 | #endif | 159 | | #ifndef NO_RELATIVE_RELOC | 160 | | ebl->relative_reloc_p = EBLHOOK(relative_reloc_p); | 161 | | #endif | 162 | 5 | } |
alpha_init.c:alpha_init_reloc Line | Count | Source | 151 | 10 | { | 152 | 10 | ebl->reloc_type_name = EBLHOOK(reloc_type_name); | 153 | 10 | ebl->reloc_type_check = EBLHOOK(reloc_type_check); | 154 | 10 | ebl->reloc_valid_use = EBLHOOK(reloc_valid_use); | 155 | 10 | ebl->none_reloc_p = EBLHOOK(none_reloc_p); | 156 | 10 | #ifndef NO_COPY_RELOC | 157 | 10 | ebl->copy_reloc_p = EBLHOOK(copy_reloc_p); | 158 | 10 | #endif | 159 | 10 | #ifndef NO_RELATIVE_RELOC | 160 | 10 | ebl->relative_reloc_p = EBLHOOK(relative_reloc_p); | 161 | 10 | #endif | 162 | 10 | } |
arm_init.c:arm_init_reloc Line | Count | Source | 151 | 288 | { | 152 | 288 | ebl->reloc_type_name = EBLHOOK(reloc_type_name); | 153 | 288 | ebl->reloc_type_check = EBLHOOK(reloc_type_check); | 154 | 288 | ebl->reloc_valid_use = EBLHOOK(reloc_valid_use); | 155 | 288 | ebl->none_reloc_p = EBLHOOK(none_reloc_p); | 156 | 288 | #ifndef NO_COPY_RELOC | 157 | 288 | ebl->copy_reloc_p = EBLHOOK(copy_reloc_p); | 158 | 288 | #endif | 159 | 288 | #ifndef NO_RELATIVE_RELOC | 160 | 288 | ebl->relative_reloc_p = EBLHOOK(relative_reloc_p); | 161 | 288 | #endif | 162 | 288 | } |
aarch64_init.c:aarch64_init_reloc Line | Count | Source | 151 | 314 | { | 152 | 314 | ebl->reloc_type_name = EBLHOOK(reloc_type_name); | 153 | 314 | ebl->reloc_type_check = EBLHOOK(reloc_type_check); | 154 | 314 | ebl->reloc_valid_use = EBLHOOK(reloc_valid_use); | 155 | 314 | ebl->none_reloc_p = EBLHOOK(none_reloc_p); | 156 | 314 | #ifndef NO_COPY_RELOC | 157 | 314 | ebl->copy_reloc_p = EBLHOOK(copy_reloc_p); | 158 | 314 | #endif | 159 | 314 | #ifndef NO_RELATIVE_RELOC | 160 | 314 | ebl->relative_reloc_p = EBLHOOK(relative_reloc_p); | 161 | 314 | #endif | 162 | 314 | } |
sparc_init.c:sparc_init_reloc Line | Count | Source | 151 | 425 | { | 152 | 425 | ebl->reloc_type_name = EBLHOOK(reloc_type_name); | 153 | 425 | ebl->reloc_type_check = EBLHOOK(reloc_type_check); | 154 | 425 | ebl->reloc_valid_use = EBLHOOK(reloc_valid_use); | 155 | 425 | ebl->none_reloc_p = EBLHOOK(none_reloc_p); | 156 | 425 | #ifndef NO_COPY_RELOC | 157 | 425 | ebl->copy_reloc_p = EBLHOOK(copy_reloc_p); | 158 | 425 | #endif | 159 | 425 | #ifndef NO_RELATIVE_RELOC | 160 | 425 | ebl->relative_reloc_p = EBLHOOK(relative_reloc_p); | 161 | 425 | #endif | 162 | 425 | } |
ppc_init.c:ppc_init_reloc Line | Count | Source | 151 | 330 | { | 152 | 330 | ebl->reloc_type_name = EBLHOOK(reloc_type_name); | 153 | 330 | ebl->reloc_type_check = EBLHOOK(reloc_type_check); | 154 | 330 | ebl->reloc_valid_use = EBLHOOK(reloc_valid_use); | 155 | 330 | ebl->none_reloc_p = EBLHOOK(none_reloc_p); | 156 | 330 | #ifndef NO_COPY_RELOC | 157 | 330 | ebl->copy_reloc_p = EBLHOOK(copy_reloc_p); | 158 | 330 | #endif | 159 | 330 | #ifndef NO_RELATIVE_RELOC | 160 | 330 | ebl->relative_reloc_p = EBLHOOK(relative_reloc_p); | 161 | 330 | #endif | 162 | 330 | } |
ppc64_init.c:ppc64_init_reloc Line | Count | Source | 151 | 2.44k | { | 152 | 2.44k | ebl->reloc_type_name = EBLHOOK(reloc_type_name); | 153 | 2.44k | ebl->reloc_type_check = EBLHOOK(reloc_type_check); | 154 | 2.44k | ebl->reloc_valid_use = EBLHOOK(reloc_valid_use); | 155 | 2.44k | ebl->none_reloc_p = EBLHOOK(none_reloc_p); | 156 | 2.44k | #ifndef NO_COPY_RELOC | 157 | 2.44k | ebl->copy_reloc_p = EBLHOOK(copy_reloc_p); | 158 | 2.44k | #endif | 159 | 2.44k | #ifndef NO_RELATIVE_RELOC | 160 | 2.44k | ebl->relative_reloc_p = EBLHOOK(relative_reloc_p); | 161 | 2.44k | #endif | 162 | 2.44k | } |
s390_init.c:s390_init_reloc Line | Count | Source | 151 | 470 | { | 152 | 470 | ebl->reloc_type_name = EBLHOOK(reloc_type_name); | 153 | 470 | ebl->reloc_type_check = EBLHOOK(reloc_type_check); | 154 | 470 | ebl->reloc_valid_use = EBLHOOK(reloc_valid_use); | 155 | 470 | ebl->none_reloc_p = EBLHOOK(none_reloc_p); | 156 | 470 | #ifndef NO_COPY_RELOC | 157 | 470 | ebl->copy_reloc_p = EBLHOOK(copy_reloc_p); | 158 | 470 | #endif | 159 | 470 | #ifndef NO_RELATIVE_RELOC | 160 | 470 | ebl->relative_reloc_p = EBLHOOK(relative_reloc_p); | 161 | 470 | #endif | 162 | 470 | } |
m68k_init.c:m68k_init_reloc Line | Count | Source | 151 | 277 | { | 152 | 277 | ebl->reloc_type_name = EBLHOOK(reloc_type_name); | 153 | 277 | ebl->reloc_type_check = EBLHOOK(reloc_type_check); | 154 | 277 | ebl->reloc_valid_use = EBLHOOK(reloc_valid_use); | 155 | 277 | ebl->none_reloc_p = EBLHOOK(none_reloc_p); | 156 | 277 | #ifndef NO_COPY_RELOC | 157 | 277 | ebl->copy_reloc_p = EBLHOOK(copy_reloc_p); | 158 | 277 | #endif | 159 | 277 | #ifndef NO_RELATIVE_RELOC | 160 | 277 | ebl->relative_reloc_p = EBLHOOK(relative_reloc_p); | 161 | 277 | #endif | 162 | 277 | } |
bpf_init.c:bpf_init_reloc Line | Count | Source | 151 | 3 | { | 152 | 3 | ebl->reloc_type_name = EBLHOOK(reloc_type_name); | 153 | 3 | ebl->reloc_type_check = EBLHOOK(reloc_type_check); | 154 | 3 | ebl->reloc_valid_use = EBLHOOK(reloc_valid_use); | 155 | 3 | ebl->none_reloc_p = EBLHOOK(none_reloc_p); | 156 | | #ifndef NO_COPY_RELOC | 157 | | ebl->copy_reloc_p = EBLHOOK(copy_reloc_p); | 158 | | #endif | 159 | | #ifndef NO_RELATIVE_RELOC | 160 | | ebl->relative_reloc_p = EBLHOOK(relative_reloc_p); | 161 | | #endif | 162 | 3 | } |
riscv_init.c:riscv_init_reloc Line | Count | Source | 151 | 405 | { | 152 | 405 | ebl->reloc_type_name = EBLHOOK(reloc_type_name); | 153 | 405 | ebl->reloc_type_check = EBLHOOK(reloc_type_check); | 154 | 405 | ebl->reloc_valid_use = EBLHOOK(reloc_valid_use); | 155 | 405 | ebl->none_reloc_p = EBLHOOK(none_reloc_p); | 156 | 405 | #ifndef NO_COPY_RELOC | 157 | 405 | ebl->copy_reloc_p = EBLHOOK(copy_reloc_p); | 158 | 405 | #endif | 159 | 405 | #ifndef NO_RELATIVE_RELOC | 160 | 405 | ebl->relative_reloc_p = EBLHOOK(relative_reloc_p); | 161 | 405 | #endif | 162 | 405 | } |
csky_init.c:csky_init_reloc Line | Count | Source | 151 | 198 | { | 152 | 198 | ebl->reloc_type_name = EBLHOOK(reloc_type_name); | 153 | 198 | ebl->reloc_type_check = EBLHOOK(reloc_type_check); | 154 | 198 | ebl->reloc_valid_use = EBLHOOK(reloc_valid_use); | 155 | 198 | ebl->none_reloc_p = EBLHOOK(none_reloc_p); | 156 | 198 | #ifndef NO_COPY_RELOC | 157 | 198 | ebl->copy_reloc_p = EBLHOOK(copy_reloc_p); | 158 | 198 | #endif | 159 | 198 | #ifndef NO_RELATIVE_RELOC | 160 | 198 | ebl->relative_reloc_p = EBLHOOK(relative_reloc_p); | 161 | 198 | #endif | 162 | 198 | } |
loongarch_init.c:loongarch_init_reloc Line | Count | Source | 151 | 194 | { | 152 | 194 | ebl->reloc_type_name = EBLHOOK(reloc_type_name); | 153 | 194 | ebl->reloc_type_check = EBLHOOK(reloc_type_check); | 154 | 194 | ebl->reloc_valid_use = EBLHOOK(reloc_valid_use); | 155 | 194 | ebl->none_reloc_p = EBLHOOK(none_reloc_p); | 156 | 194 | #ifndef NO_COPY_RELOC | 157 | 194 | ebl->copy_reloc_p = EBLHOOK(copy_reloc_p); | 158 | 194 | #endif | 159 | 194 | #ifndef NO_RELATIVE_RELOC | 160 | 194 | ebl->relative_reloc_p = EBLHOOK(relative_reloc_p); | 161 | 194 | #endif | 162 | 194 | } |
arc_init.c:arc_init_reloc Line | Count | Source | 151 | 13 | { | 152 | 13 | ebl->reloc_type_name = EBLHOOK(reloc_type_name); | 153 | 13 | ebl->reloc_type_check = EBLHOOK(reloc_type_check); | 154 | 13 | ebl->reloc_valid_use = EBLHOOK(reloc_valid_use); | 155 | 13 | ebl->none_reloc_p = EBLHOOK(none_reloc_p); | 156 | 13 | #ifndef NO_COPY_RELOC | 157 | 13 | ebl->copy_reloc_p = EBLHOOK(copy_reloc_p); | 158 | 13 | #endif | 159 | 13 | #ifndef NO_RELATIVE_RELOC | 160 | 13 | ebl->relative_reloc_p = EBLHOOK(relative_reloc_p); | 161 | 13 | #endif | 162 | 13 | } |
mips_init.c:mips_init_reloc Line | Count | Source | 151 | 188 | { | 152 | 188 | ebl->reloc_type_name = EBLHOOK(reloc_type_name); | 153 | 188 | ebl->reloc_type_check = EBLHOOK(reloc_type_check); | 154 | 188 | ebl->reloc_valid_use = EBLHOOK(reloc_valid_use); | 155 | 188 | ebl->none_reloc_p = EBLHOOK(none_reloc_p); | 156 | 188 | #ifndef NO_COPY_RELOC | 157 | 188 | ebl->copy_reloc_p = EBLHOOK(copy_reloc_p); | 158 | 188 | #endif | 159 | 188 | #ifndef NO_RELATIVE_RELOC | 160 | 188 | ebl->relative_reloc_p = EBLHOOK(relative_reloc_p); | 161 | 188 | #endif | 162 | 188 | } |
hexagon_init.c:hexagon_init_reloc Line | Count | Source | 151 | 10 | { | 152 | 10 | ebl->reloc_type_name = EBLHOOK(reloc_type_name); | 153 | 10 | ebl->reloc_type_check = EBLHOOK(reloc_type_check); | 154 | 10 | ebl->reloc_valid_use = EBLHOOK(reloc_valid_use); | 155 | 10 | ebl->none_reloc_p = EBLHOOK(none_reloc_p); | 156 | 10 | #ifndef NO_COPY_RELOC | 157 | 10 | ebl->copy_reloc_p = EBLHOOK(copy_reloc_p); | 158 | 10 | #endif | 159 | 10 | #ifndef NO_RELATIVE_RELOC | 160 | 10 | ebl->relative_reloc_p = EBLHOOK(relative_reloc_p); | 161 | 10 | #endif | 162 | 10 | } |
|