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()
169 case ELF::EM_LOONGARCH: in getELFRelocationTypeName()
186 case ELF::EM_X86_64: in getELFRelativeRelocationType()
187 return ELF::R_X86_64_RELATIVE; in getELFRelativeRelocationType()
188 case ELF::EM_386: in getELFRelativeRelocationType()
189 case ELF::EM_IAMCU: in getELFRelativeRelocationType()
190 return ELF::R_386_RELATIVE; in getELFRelativeRelocationType()
191 case ELF::EM_MIPS: in getELFRelativeRelocationType()
193 case ELF::EM_AARCH64: in getELFRelativeRelocationType()
194 return ELF::R_AARCH64_RELATIVE; in getELFRelativeRelocationType()
195 case ELF::EM_ARM: in getELFRelativeRelocationType()
196 return ELF::R_ARM_RELATIVE; in getELFRelativeRelocationType()
197 case ELF::EM_ARC_COMPACT: in getELFRelativeRelocationType()
198 case ELF::EM_ARC_COMPACT2: in getELFRelativeRelocationType()
199 return ELF::R_ARC_RELATIVE; in getELFRelativeRelocationType()
200 case ELF::EM_AVR: in getELFRelativeRelocationType()
202 case ELF::EM_HEXAGON: in getELFRelativeRelocationType()
203 return ELF::R_HEX_RELATIVE; in getELFRelativeRelocationType()
204 case ELF::EM_LANAI: in getELFRelativeRelocationType()
206 case ELF::EM_PPC: in getELFRelativeRelocationType()
208 case ELF::EM_PPC64: in getELFRelativeRelocationType()
209 return ELF::R_PPC64_RELATIVE; in getELFRelativeRelocationType()
210 case ELF::EM_RISCV: in getELFRelativeRelocationType()
211 return ELF::R_RISCV_RELATIVE; in getELFRelativeRelocationType()
212 case ELF::EM_S390: in getELFRelativeRelocationType()
213 return ELF::R_390_RELATIVE; in getELFRelativeRelocationType()
214 case ELF::EM_SPARC: in getELFRelativeRelocationType()
215 case ELF::EM_SPARC32PLUS: in getELFRelativeRelocationType()
216 case ELF::EM_SPARCV9: in getELFRelativeRelocationType()
217 return ELF::R_SPARC_RELATIVE; in getELFRelativeRelocationType()
218 case ELF::EM_CSKY: in getELFRelativeRelocationType()
219 return ELF::R_CKCORE_RELATIVE; in getELFRelativeRelocationType()
220 case ELF::EM_VE: in getELFRelativeRelocationType()
221 return ELF::R_VE_RELATIVE; in getELFRelativeRelocationType()
222 case ELF::EM_AMDGPU: in getELFRelativeRelocationType()
224 case ELF::EM_BPF: in getELFRelativeRelocationType()
234 case ELF::EM_ARM: in getELFSectionTypeName()
236 STRINGIFY_ENUM_CASE(ELF, SHT_ARM_EXIDX); in getELFSectionTypeName()
237 STRINGIFY_ENUM_CASE(ELF, SHT_ARM_PREEMPTMAP); in getELFSectionTypeName()
238 STRINGIFY_ENUM_CASE(ELF, SHT_ARM_ATTRIBUTES); in getELFSectionTypeName()
239 STRINGIFY_ENUM_CASE(ELF, SHT_ARM_DEBUGOVERLAY); in getELFSectionTypeName()
240 STRINGIFY_ENUM_CASE(ELF, SHT_ARM_OVERLAYSECTION); in getELFSectionTypeName()
243 case ELF::EM_HEXAGON: in getELFSectionTypeName()
244 switch (Type) { STRINGIFY_ENUM_CASE(ELF, SHT_HEX_ORDERED); } in getELFSectionTypeName()
246 case ELF::EM_X86_64: in getELFSectionTypeName()
247 switch (Type) { STRINGIFY_ENUM_CASE(ELF, SHT_X86_64_UNWIND); } in getELFSectionTypeName()
249 case ELF::EM_MIPS: in getELFSectionTypeName()
250 case ELF::EM_MIPS_RS3_LE: in getELFSectionTypeName()
252 STRINGIFY_ENUM_CASE(ELF, SHT_MIPS_REGINFO); in getELFSectionTypeName()
253 STRINGIFY_ENUM_CASE(ELF, SHT_MIPS_OPTIONS); in getELFSectionTypeName()
254 STRINGIFY_ENUM_CASE(ELF, SHT_MIPS_DWARF); in getELFSectionTypeName()
255 STRINGIFY_ENUM_CASE(ELF, SHT_MIPS_ABIFLAGS); in getELFSectionTypeName()
258 case ELF::EM_MSP430: in getELFSectionTypeName()
259 switch (Type) { STRINGIFY_ENUM_CASE(ELF, SHT_MSP430_ATTRIBUTES); } in getELFSectionTypeName()
261 case ELF::EM_RISCV: in getELFSectionTypeName()
262 switch (Type) { STRINGIFY_ENUM_CASE(ELF, SHT_RISCV_ATTRIBUTES); } in getELFSectionTypeName()
269 STRINGIFY_ENUM_CASE(ELF, SHT_NULL); in getELFSectionTypeName()
270 STRINGIFY_ENUM_CASE(ELF, SHT_PROGBITS); in getELFSectionTypeName()
271 STRINGIFY_ENUM_CASE(ELF, SHT_SYMTAB); in getELFSectionTypeName()
272 STRINGIFY_ENUM_CASE(ELF, SHT_STRTAB); in getELFSectionTypeName()
273 STRINGIFY_ENUM_CASE(ELF, SHT_RELA); in getELFSectionTypeName()
274 STRINGIFY_ENUM_CASE(ELF, SHT_HASH); in getELFSectionTypeName()
275 STRINGIFY_ENUM_CASE(ELF, SHT_DYNAMIC); in getELFSectionTypeName()
276 STRINGIFY_ENUM_CASE(ELF, SHT_NOTE); in getELFSectionTypeName()
277 STRINGIFY_ENUM_CASE(ELF, SHT_NOBITS); in getELFSectionTypeName()
278 STRINGIFY_ENUM_CASE(ELF, SHT_REL); in getELFSectionTypeName()
279 STRINGIFY_ENUM_CASE(ELF, SHT_SHLIB); in getELFSectionTypeName()
280 STRINGIFY_ENUM_CASE(ELF, SHT_DYNSYM); in getELFSectionTypeName()
281 STRINGIFY_ENUM_CASE(ELF, SHT_INIT_ARRAY); in getELFSectionTypeName()
282 STRINGIFY_ENUM_CASE(ELF, SHT_FINI_ARRAY); in getELFSectionTypeName()
283 STRINGIFY_ENUM_CASE(ELF, SHT_PREINIT_ARRAY); in getELFSectionTypeName()
284 STRINGIFY_ENUM_CASE(ELF, SHT_GROUP); in getELFSectionTypeName()
285 STRINGIFY_ENUM_CASE(ELF, SHT_SYMTAB_SHNDX); in getELFSectionTypeName()
286 STRINGIFY_ENUM_CASE(ELF, SHT_RELR); in getELFSectionTypeName()
287 STRINGIFY_ENUM_CASE(ELF, SHT_ANDROID_REL); in getELFSectionTypeName()
288 STRINGIFY_ENUM_CASE(ELF, SHT_ANDROID_RELA); in getELFSectionTypeName()
289 STRINGIFY_ENUM_CASE(ELF, SHT_ANDROID_RELR); in getELFSectionTypeName()
290 STRINGIFY_ENUM_CASE(ELF, SHT_LLVM_ODRTAB); in getELFSectionTypeName()
291 STRINGIFY_ENUM_CASE(ELF, SHT_LLVM_LINKER_OPTIONS); in getELFSectionTypeName()
292 STRINGIFY_ENUM_CASE(ELF, SHT_LLVM_CALL_GRAPH_PROFILE); in getELFSectionTypeName()
293 STRINGIFY_ENUM_CASE(ELF, SHT_LLVM_ADDRSIG); in getELFSectionTypeName()
294 STRINGIFY_ENUM_CASE(ELF, SHT_LLVM_DEPENDENT_LIBRARIES); in getELFSectionTypeName()
295 STRINGIFY_ENUM_CASE(ELF, SHT_LLVM_SYMPART); in getELFSectionTypeName()
296 STRINGIFY_ENUM_CASE(ELF, SHT_LLVM_PART_EHDR); in getELFSectionTypeName()
297 STRINGIFY_ENUM_CASE(ELF, SHT_LLVM_PART_PHDR); in getELFSectionTypeName()
298 STRINGIFY_ENUM_CASE(ELF, SHT_LLVM_BB_ADDR_MAP_V0); in getELFSectionTypeName()
299 STRINGIFY_ENUM_CASE(ELF, SHT_LLVM_BB_ADDR_MAP); in getELFSectionTypeName()
300 STRINGIFY_ENUM_CASE(ELF, SHT_LLVM_OFFLOADING); in getELFSectionTypeName()
301 STRINGIFY_ENUM_CASE(ELF, SHT_GNU_ATTRIBUTES); in getELFSectionTypeName()
302 STRINGIFY_ENUM_CASE(ELF, SHT_GNU_HASH); in getELFSectionTypeName()
303 STRINGIFY_ENUM_CASE(ELF, SHT_GNU_verdef); in getELFSectionTypeName()
304 STRINGIFY_ENUM_CASE(ELF, SHT_GNU_verneed); in getELFSectionTypeName()
305 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_PPC: in getDynamicTagAsString()
485 case ELF::EM_PPC64: in getDynamicTagAsString()
493 case ELF::EM_RISCV: in getDynamicTagAsString()
542 if (Phdr.p_type == ELF::PT_DYNAMIC) { in dynamicEntries()
558 if (Sec.sh_type == ELF::SHT_DYNAMIC) { in dynamicEntries()
575 if (Dyn.back().d_tag != ELF::DT_NULL) in dynamicEntries()
591 if (Phdr.p_type == ELF::PT_LOAD) in toMappedAddr()
666 if (Sec.sh_type == ELF::SHT_LLVM_BB_ADDR_MAP) { in decodeBBAddrMap()