Lines Matching refs:ELF

20 #define ELF_RELOC(name, value) STRINGIFY_ENUM_CASE(ELF, name)
25 case ELF::EM_68K: in getELFRelocationTypeName()
32 case ELF::EM_X86_64: in getELFRelocationTypeName()
39 case ELF::EM_386: in getELFRelocationTypeName()
40 case ELF::EM_IAMCU: in getELFRelocationTypeName()
47 case ELF::EM_MIPS: in getELFRelocationTypeName()
54 case ELF::EM_AARCH64: in getELFRelocationTypeName()
61 case ELF::EM_ARM: in getELFRelocationTypeName()
68 case ELF::EM_ARC_COMPACT: in getELFRelocationTypeName()
69 case ELF::EM_ARC_COMPACT2: in getELFRelocationTypeName()
76 case ELF::EM_AVR: in getELFRelocationTypeName()
83 case ELF::EM_HEXAGON: in getELFRelocationTypeName()
90 case ELF::EM_LANAI: in getELFRelocationTypeName()
97 case ELF::EM_PPC: in getELFRelocationTypeName()
104 case ELF::EM_PPC64: in getELFRelocationTypeName()
111 case ELF::EM_RISCV: in getELFRelocationTypeName()
118 case ELF::EM_S390: in getELFRelocationTypeName()
125 case ELF::EM_SPARC: in getELFRelocationTypeName()
126 case ELF::EM_SPARC32PLUS: in getELFRelocationTypeName()
127 case ELF::EM_SPARCV9: in getELFRelocationTypeName()
134 case ELF::EM_AMDGPU: in getELFRelocationTypeName()
141 case ELF::EM_BPF: in getELFRelocationTypeName()
148 case ELF::EM_MSP430: in getELFRelocationTypeName()
155 case ELF::EM_VE: in getELFRelocationTypeName()
162 case ELF::EM_CSKY: in getELFRelocationTypeName()
179 case ELF::EM_X86_64: in getELFRelativeRelocationType()
180 return ELF::R_X86_64_RELATIVE; in getELFRelativeRelocationType()
181 case ELF::EM_386: in getELFRelativeRelocationType()
182 case ELF::EM_IAMCU: in getELFRelativeRelocationType()
183 return ELF::R_386_RELATIVE; in getELFRelativeRelocationType()
184 case ELF::EM_MIPS: in getELFRelativeRelocationType()
186 case ELF::EM_AARCH64: in getELFRelativeRelocationType()
187 return ELF::R_AARCH64_RELATIVE; in getELFRelativeRelocationType()
188 case ELF::EM_ARM: in getELFRelativeRelocationType()
189 return ELF::R_ARM_RELATIVE; in getELFRelativeRelocationType()
190 case ELF::EM_ARC_COMPACT: in getELFRelativeRelocationType()
191 case ELF::EM_ARC_COMPACT2: in getELFRelativeRelocationType()
192 return ELF::R_ARC_RELATIVE; in getELFRelativeRelocationType()
193 case ELF::EM_AVR: in getELFRelativeRelocationType()
195 case ELF::EM_HEXAGON: in getELFRelativeRelocationType()
196 return ELF::R_HEX_RELATIVE; in getELFRelativeRelocationType()
197 case ELF::EM_LANAI: in getELFRelativeRelocationType()
199 case ELF::EM_PPC: in getELFRelativeRelocationType()
201 case ELF::EM_PPC64: in getELFRelativeRelocationType()
202 return ELF::R_PPC64_RELATIVE; in getELFRelativeRelocationType()
203 case ELF::EM_RISCV: in getELFRelativeRelocationType()
204 return ELF::R_RISCV_RELATIVE; in getELFRelativeRelocationType()
205 case ELF::EM_S390: in getELFRelativeRelocationType()
206 return ELF::R_390_RELATIVE; in getELFRelativeRelocationType()
207 case ELF::EM_SPARC: in getELFRelativeRelocationType()
208 case ELF::EM_SPARC32PLUS: in getELFRelativeRelocationType()
209 case ELF::EM_SPARCV9: in getELFRelativeRelocationType()
210 return ELF::R_SPARC_RELATIVE; in getELFRelativeRelocationType()
211 case ELF::EM_CSKY: in getELFRelativeRelocationType()
212 return ELF::R_CKCORE_RELATIVE; in getELFRelativeRelocationType()
213 case ELF::EM_AMDGPU: in getELFRelativeRelocationType()
215 case ELF::EM_BPF: in getELFRelativeRelocationType()
225 case ELF::EM_ARM: in getELFSectionTypeName()
227 STRINGIFY_ENUM_CASE(ELF, SHT_ARM_EXIDX); in getELFSectionTypeName()
228 STRINGIFY_ENUM_CASE(ELF, SHT_ARM_PREEMPTMAP); in getELFSectionTypeName()
229 STRINGIFY_ENUM_CASE(ELF, SHT_ARM_ATTRIBUTES); in getELFSectionTypeName()
230 STRINGIFY_ENUM_CASE(ELF, SHT_ARM_DEBUGOVERLAY); in getELFSectionTypeName()
231 STRINGIFY_ENUM_CASE(ELF, SHT_ARM_OVERLAYSECTION); in getELFSectionTypeName()
234 case ELF::EM_HEXAGON: in getELFSectionTypeName()
235 switch (Type) { STRINGIFY_ENUM_CASE(ELF, SHT_HEX_ORDERED); } in getELFSectionTypeName()
237 case ELF::EM_X86_64: in getELFSectionTypeName()
238 switch (Type) { STRINGIFY_ENUM_CASE(ELF, SHT_X86_64_UNWIND); } in getELFSectionTypeName()
240 case ELF::EM_MIPS: in getELFSectionTypeName()
241 case ELF::EM_MIPS_RS3_LE: in getELFSectionTypeName()
243 STRINGIFY_ENUM_CASE(ELF, SHT_MIPS_REGINFO); in getELFSectionTypeName()
244 STRINGIFY_ENUM_CASE(ELF, SHT_MIPS_OPTIONS); in getELFSectionTypeName()
245 STRINGIFY_ENUM_CASE(ELF, SHT_MIPS_DWARF); in getELFSectionTypeName()
246 STRINGIFY_ENUM_CASE(ELF, SHT_MIPS_ABIFLAGS); in getELFSectionTypeName()
249 case ELF::EM_RISCV: in getELFSectionTypeName()
250 switch (Type) { STRINGIFY_ENUM_CASE(ELF, SHT_RISCV_ATTRIBUTES); } in getELFSectionTypeName()
257 STRINGIFY_ENUM_CASE(ELF, SHT_NULL); in getELFSectionTypeName()
258 STRINGIFY_ENUM_CASE(ELF, SHT_PROGBITS); in getELFSectionTypeName()
259 STRINGIFY_ENUM_CASE(ELF, SHT_SYMTAB); in getELFSectionTypeName()
260 STRINGIFY_ENUM_CASE(ELF, SHT_STRTAB); in getELFSectionTypeName()
261 STRINGIFY_ENUM_CASE(ELF, SHT_RELA); in getELFSectionTypeName()
262 STRINGIFY_ENUM_CASE(ELF, SHT_HASH); in getELFSectionTypeName()
263 STRINGIFY_ENUM_CASE(ELF, SHT_DYNAMIC); in getELFSectionTypeName()
264 STRINGIFY_ENUM_CASE(ELF, SHT_NOTE); in getELFSectionTypeName()
265 STRINGIFY_ENUM_CASE(ELF, SHT_NOBITS); in getELFSectionTypeName()
266 STRINGIFY_ENUM_CASE(ELF, SHT_REL); in getELFSectionTypeName()
267 STRINGIFY_ENUM_CASE(ELF, SHT_SHLIB); in getELFSectionTypeName()
268 STRINGIFY_ENUM_CASE(ELF, SHT_DYNSYM); in getELFSectionTypeName()
269 STRINGIFY_ENUM_CASE(ELF, SHT_INIT_ARRAY); in getELFSectionTypeName()
270 STRINGIFY_ENUM_CASE(ELF, SHT_FINI_ARRAY); in getELFSectionTypeName()
271 STRINGIFY_ENUM_CASE(ELF, SHT_PREINIT_ARRAY); in getELFSectionTypeName()
272 STRINGIFY_ENUM_CASE(ELF, SHT_GROUP); in getELFSectionTypeName()
273 STRINGIFY_ENUM_CASE(ELF, SHT_SYMTAB_SHNDX); in getELFSectionTypeName()
274 STRINGIFY_ENUM_CASE(ELF, SHT_RELR); in getELFSectionTypeName()
275 STRINGIFY_ENUM_CASE(ELF, SHT_ANDROID_REL); in getELFSectionTypeName()
276 STRINGIFY_ENUM_CASE(ELF, SHT_ANDROID_RELA); in getELFSectionTypeName()
277 STRINGIFY_ENUM_CASE(ELF, SHT_ANDROID_RELR); in getELFSectionTypeName()
278 STRINGIFY_ENUM_CASE(ELF, SHT_LLVM_ODRTAB); in getELFSectionTypeName()
279 STRINGIFY_ENUM_CASE(ELF, SHT_LLVM_LINKER_OPTIONS); in getELFSectionTypeName()
280 STRINGIFY_ENUM_CASE(ELF, SHT_LLVM_CALL_GRAPH_PROFILE); in getELFSectionTypeName()
281 STRINGIFY_ENUM_CASE(ELF, SHT_LLVM_ADDRSIG); in getELFSectionTypeName()
282 STRINGIFY_ENUM_CASE(ELF, SHT_LLVM_DEPENDENT_LIBRARIES); in getELFSectionTypeName()
283 STRINGIFY_ENUM_CASE(ELF, SHT_LLVM_SYMPART); in getELFSectionTypeName()
284 STRINGIFY_ENUM_CASE(ELF, SHT_LLVM_PART_EHDR); in getELFSectionTypeName()
285 STRINGIFY_ENUM_CASE(ELF, SHT_LLVM_PART_PHDR); in getELFSectionTypeName()
286 STRINGIFY_ENUM_CASE(ELF, SHT_LLVM_BB_ADDR_MAP); in getELFSectionTypeName()
287 STRINGIFY_ENUM_CASE(ELF, SHT_GNU_ATTRIBUTES); in getELFSectionTypeName()
288 STRINGIFY_ENUM_CASE(ELF, SHT_GNU_HASH); in getELFSectionTypeName()
289 STRINGIFY_ENUM_CASE(ELF, SHT_GNU_verdef); in getELFSectionTypeName()
290 STRINGIFY_ENUM_CASE(ELF, SHT_GNU_verneed); in getELFSectionTypeName()
291 STRINGIFY_ENUM_CASE(ELF, SHT_GNU_versym); in getELFSectionTypeName()
408 bool GroupedByInfo = GroupFlags & ELF::RELOCATION_GROUPED_BY_INFO_FLAG; in android_relas()
409 bool GroupedByOffsetDelta = GroupFlags & ELF::RELOCATION_GROUPED_BY_OFFSET_DELTA_FLAG; in android_relas()
410 bool GroupedByAddend = GroupFlags & ELF::RELOCATION_GROUPED_BY_ADDEND_FLAG; in android_relas()
411 bool GroupHasAddend = GroupFlags & ELF::RELOCATION_GROUP_HAS_ADDEND_FLAG; in android_relas()
453 case ELF::EM_AARCH64: in getDynamicTagAsString()
461 case ELF::EM_HEXAGON: in getDynamicTagAsString()
469 case ELF::EM_MIPS: in getDynamicTagAsString()
477 case ELF::EM_PPC64: in getDynamicTagAsString()
522 if (Phdr.p_type == ELF::PT_DYNAMIC) { in dynamicEntries()
538 if (Sec.sh_type == ELF::SHT_DYNAMIC) { in dynamicEntries()
556 if (Dyn.back().d_tag != ELF::DT_NULL) in dynamicEntries()
573 if (Phdr.p_type == ELF::PT_LOAD) in toMappedAddr()