Lines Matching refs:ELF

21 #define ELF_RELOC(name, value) STRINGIFY_ENUM_CASE(ELF, name)
26 case ELF::EM_68K: in getELFRelocationTypeName()
33 case ELF::EM_X86_64: in getELFRelocationTypeName()
40 case ELF::EM_386: in getELFRelocationTypeName()
41 case ELF::EM_IAMCU: in getELFRelocationTypeName()
48 case ELF::EM_MIPS: in getELFRelocationTypeName()
55 case ELF::EM_AARCH64: in getELFRelocationTypeName()
62 case ELF::EM_ARM: in getELFRelocationTypeName()
69 case ELF::EM_ARC_COMPACT: in getELFRelocationTypeName()
70 case ELF::EM_ARC_COMPACT2: in getELFRelocationTypeName()
77 case ELF::EM_AVR: in getELFRelocationTypeName()
84 case ELF::EM_HEXAGON: in getELFRelocationTypeName()
91 case ELF::EM_LANAI: in getELFRelocationTypeName()
98 case ELF::EM_PPC: in getELFRelocationTypeName()
105 case ELF::EM_PPC64: in getELFRelocationTypeName()
112 case ELF::EM_RISCV: in getELFRelocationTypeName()
119 case ELF::EM_S390: in getELFRelocationTypeName()
126 case ELF::EM_SPARC: in getELFRelocationTypeName()
127 case ELF::EM_SPARC32PLUS: in getELFRelocationTypeName()
128 case ELF::EM_SPARCV9: in getELFRelocationTypeName()
135 case ELF::EM_AMDGPU: in getELFRelocationTypeName()
142 case ELF::EM_BPF: in getELFRelocationTypeName()
149 case ELF::EM_MSP430: in getELFRelocationTypeName()
156 case ELF::EM_VE: in getELFRelocationTypeName()
163 case ELF::EM_CSKY: in getELFRelocationTypeName()
170 case ELF::EM_LOONGARCH: in getELFRelocationTypeName()
177 case ELF::EM_XTENSA: in getELFRelocationTypeName()
194 case ELF::EM_X86_64: in getELFRelativeRelocationType()
195 return ELF::R_X86_64_RELATIVE; in getELFRelativeRelocationType()
196 case ELF::EM_386: in getELFRelativeRelocationType()
197 case ELF::EM_IAMCU: in getELFRelativeRelocationType()
198 return ELF::R_386_RELATIVE; in getELFRelativeRelocationType()
199 case ELF::EM_MIPS: in getELFRelativeRelocationType()
201 case ELF::EM_AARCH64: in getELFRelativeRelocationType()
202 return ELF::R_AARCH64_RELATIVE; in getELFRelativeRelocationType()
203 case ELF::EM_ARM: in getELFRelativeRelocationType()
204 return ELF::R_ARM_RELATIVE; in getELFRelativeRelocationType()
205 case ELF::EM_ARC_COMPACT: in getELFRelativeRelocationType()
206 case ELF::EM_ARC_COMPACT2: in getELFRelativeRelocationType()
207 return ELF::R_ARC_RELATIVE; in getELFRelativeRelocationType()
208 case ELF::EM_AVR: in getELFRelativeRelocationType()
210 case ELF::EM_HEXAGON: in getELFRelativeRelocationType()
211 return ELF::R_HEX_RELATIVE; in getELFRelativeRelocationType()
212 case ELF::EM_LANAI: in getELFRelativeRelocationType()
214 case ELF::EM_PPC: in getELFRelativeRelocationType()
216 case ELF::EM_PPC64: in getELFRelativeRelocationType()
217 return ELF::R_PPC64_RELATIVE; in getELFRelativeRelocationType()
218 case ELF::EM_RISCV: in getELFRelativeRelocationType()
219 return ELF::R_RISCV_RELATIVE; in getELFRelativeRelocationType()
220 case ELF::EM_S390: in getELFRelativeRelocationType()
221 return ELF::R_390_RELATIVE; in getELFRelativeRelocationType()
222 case ELF::EM_SPARC: in getELFRelativeRelocationType()
223 case ELF::EM_SPARC32PLUS: in getELFRelativeRelocationType()
224 case ELF::EM_SPARCV9: in getELFRelativeRelocationType()
225 return ELF::R_SPARC_RELATIVE; in getELFRelativeRelocationType()
226 case ELF::EM_CSKY: in getELFRelativeRelocationType()
227 return ELF::R_CKCORE_RELATIVE; in getELFRelativeRelocationType()
228 case ELF::EM_VE: in getELFRelativeRelocationType()
229 return ELF::R_VE_RELATIVE; in getELFRelativeRelocationType()
230 case ELF::EM_AMDGPU: in getELFRelativeRelocationType()
232 case ELF::EM_BPF: in getELFRelativeRelocationType()
234 case ELF::EM_LOONGARCH: in getELFRelativeRelocationType()
235 return ELF::R_LARCH_RELATIVE; in getELFRelativeRelocationType()
244 case ELF::EM_ARM: in getELFSectionTypeName()
246 STRINGIFY_ENUM_CASE(ELF, SHT_ARM_EXIDX); in getELFSectionTypeName()
247 STRINGIFY_ENUM_CASE(ELF, SHT_ARM_PREEMPTMAP); in getELFSectionTypeName()
248 STRINGIFY_ENUM_CASE(ELF, SHT_ARM_ATTRIBUTES); in getELFSectionTypeName()
249 STRINGIFY_ENUM_CASE(ELF, SHT_ARM_DEBUGOVERLAY); in getELFSectionTypeName()
250 STRINGIFY_ENUM_CASE(ELF, SHT_ARM_OVERLAYSECTION); in getELFSectionTypeName()
253 case ELF::EM_HEXAGON: in getELFSectionTypeName()
255 STRINGIFY_ENUM_CASE(ELF, SHT_HEX_ORDERED); in getELFSectionTypeName()
256 STRINGIFY_ENUM_CASE(ELF, SHT_HEXAGON_ATTRIBUTES); in getELFSectionTypeName()
259 case ELF::EM_X86_64: in getELFSectionTypeName()
260 switch (Type) { STRINGIFY_ENUM_CASE(ELF, SHT_X86_64_UNWIND); } in getELFSectionTypeName()
262 case ELF::EM_MIPS: in getELFSectionTypeName()
263 case ELF::EM_MIPS_RS3_LE: in getELFSectionTypeName()
265 STRINGIFY_ENUM_CASE(ELF, SHT_MIPS_REGINFO); in getELFSectionTypeName()
266 STRINGIFY_ENUM_CASE(ELF, SHT_MIPS_OPTIONS); in getELFSectionTypeName()
267 STRINGIFY_ENUM_CASE(ELF, SHT_MIPS_DWARF); in getELFSectionTypeName()
268 STRINGIFY_ENUM_CASE(ELF, SHT_MIPS_ABIFLAGS); in getELFSectionTypeName()
271 case ELF::EM_MSP430: in getELFSectionTypeName()
272 switch (Type) { STRINGIFY_ENUM_CASE(ELF, SHT_MSP430_ATTRIBUTES); } in getELFSectionTypeName()
274 case ELF::EM_RISCV: in getELFSectionTypeName()
275 switch (Type) { STRINGIFY_ENUM_CASE(ELF, SHT_RISCV_ATTRIBUTES); } in getELFSectionTypeName()
277 case ELF::EM_AARCH64: in getELFSectionTypeName()
279 STRINGIFY_ENUM_CASE(ELF, SHT_AARCH64_AUTH_RELR); in getELFSectionTypeName()
280 STRINGIFY_ENUM_CASE(ELF, SHT_AARCH64_MEMTAG_GLOBALS_DYNAMIC); in getELFSectionTypeName()
281 STRINGIFY_ENUM_CASE(ELF, SHT_AARCH64_MEMTAG_GLOBALS_STATIC); in getELFSectionTypeName()
288 STRINGIFY_ENUM_CASE(ELF, SHT_NULL); in getELFSectionTypeName()
289 STRINGIFY_ENUM_CASE(ELF, SHT_PROGBITS); in getELFSectionTypeName()
290 STRINGIFY_ENUM_CASE(ELF, SHT_SYMTAB); in getELFSectionTypeName()
291 STRINGIFY_ENUM_CASE(ELF, SHT_STRTAB); in getELFSectionTypeName()
292 STRINGIFY_ENUM_CASE(ELF, SHT_RELA); in getELFSectionTypeName()
293 STRINGIFY_ENUM_CASE(ELF, SHT_HASH); in getELFSectionTypeName()
294 STRINGIFY_ENUM_CASE(ELF, SHT_DYNAMIC); in getELFSectionTypeName()
295 STRINGIFY_ENUM_CASE(ELF, SHT_NOTE); in getELFSectionTypeName()
296 STRINGIFY_ENUM_CASE(ELF, SHT_NOBITS); in getELFSectionTypeName()
297 STRINGIFY_ENUM_CASE(ELF, SHT_REL); in getELFSectionTypeName()
298 STRINGIFY_ENUM_CASE(ELF, SHT_SHLIB); in getELFSectionTypeName()
299 STRINGIFY_ENUM_CASE(ELF, SHT_DYNSYM); in getELFSectionTypeName()
300 STRINGIFY_ENUM_CASE(ELF, SHT_INIT_ARRAY); in getELFSectionTypeName()
301 STRINGIFY_ENUM_CASE(ELF, SHT_FINI_ARRAY); in getELFSectionTypeName()
302 STRINGIFY_ENUM_CASE(ELF, SHT_PREINIT_ARRAY); in getELFSectionTypeName()
303 STRINGIFY_ENUM_CASE(ELF, SHT_GROUP); in getELFSectionTypeName()
304 STRINGIFY_ENUM_CASE(ELF, SHT_SYMTAB_SHNDX); in getELFSectionTypeName()
305 STRINGIFY_ENUM_CASE(ELF, SHT_RELR); in getELFSectionTypeName()
306 STRINGIFY_ENUM_CASE(ELF, SHT_CREL); in getELFSectionTypeName()
307 STRINGIFY_ENUM_CASE(ELF, SHT_ANDROID_REL); in getELFSectionTypeName()
308 STRINGIFY_ENUM_CASE(ELF, SHT_ANDROID_RELA); in getELFSectionTypeName()
309 STRINGIFY_ENUM_CASE(ELF, SHT_ANDROID_RELR); in getELFSectionTypeName()
310 STRINGIFY_ENUM_CASE(ELF, SHT_LLVM_ODRTAB); in getELFSectionTypeName()
311 STRINGIFY_ENUM_CASE(ELF, SHT_LLVM_LINKER_OPTIONS); in getELFSectionTypeName()
312 STRINGIFY_ENUM_CASE(ELF, SHT_LLVM_CALL_GRAPH_PROFILE); in getELFSectionTypeName()
313 STRINGIFY_ENUM_CASE(ELF, SHT_LLVM_ADDRSIG); in getELFSectionTypeName()
314 STRINGIFY_ENUM_CASE(ELF, SHT_LLVM_DEPENDENT_LIBRARIES); in getELFSectionTypeName()
315 STRINGIFY_ENUM_CASE(ELF, SHT_LLVM_SYMPART); in getELFSectionTypeName()
316 STRINGIFY_ENUM_CASE(ELF, SHT_LLVM_PART_EHDR); in getELFSectionTypeName()
317 STRINGIFY_ENUM_CASE(ELF, SHT_LLVM_PART_PHDR); in getELFSectionTypeName()
318 STRINGIFY_ENUM_CASE(ELF, SHT_LLVM_BB_ADDR_MAP_V0); in getELFSectionTypeName()
319 STRINGIFY_ENUM_CASE(ELF, SHT_LLVM_BB_ADDR_MAP); in getELFSectionTypeName()
320 STRINGIFY_ENUM_CASE(ELF, SHT_LLVM_OFFLOADING); in getELFSectionTypeName()
321 STRINGIFY_ENUM_CASE(ELF, SHT_LLVM_LTO); in getELFSectionTypeName()
322 STRINGIFY_ENUM_CASE(ELF, SHT_GNU_ATTRIBUTES); in getELFSectionTypeName()
323 STRINGIFY_ENUM_CASE(ELF, SHT_GNU_HASH); in getELFSectionTypeName()
324 STRINGIFY_ENUM_CASE(ELF, SHT_GNU_verdef); in getELFSectionTypeName()
325 STRINGIFY_ENUM_CASE(ELF, SHT_GNU_verneed); in getELFSectionTypeName()
326 STRINGIFY_ENUM_CASE(ELF, SHT_GNU_versym); in getELFSectionTypeName()
481 bool GroupedByInfo = GroupFlags & ELF::RELOCATION_GROUPED_BY_INFO_FLAG; in android_relas()
482 bool GroupedByOffsetDelta = GroupFlags & ELF::RELOCATION_GROUPED_BY_OFFSET_DELTA_FLAG; in android_relas()
483 bool GroupedByAddend = GroupFlags & ELF::RELOCATION_GROUPED_BY_ADDEND_FLAG; in android_relas()
484 bool GroupHasAddend = GroupFlags & ELF::RELOCATION_GROUP_HAS_ADDEND_FLAG; in android_relas()
526 case ELF::EM_AARCH64: in getDynamicTagAsString()
534 case ELF::EM_HEXAGON: in getDynamicTagAsString()
542 case ELF::EM_MIPS: in getDynamicTagAsString()
550 case ELF::EM_PPC: in getDynamicTagAsString()
558 case ELF::EM_PPC64: in getDynamicTagAsString()
566 case ELF::EM_RISCV: in getDynamicTagAsString()
615 if (Phdr.p_type == ELF::PT_DYNAMIC) { in dynamicEntries()
634 if (Sec.sh_type == ELF::SHT_DYNAMIC) { in dynamicEntries()
651 if (Dyn.back().d_tag != ELF::DT_NULL) in dynamicEntries()
667 if (Phdr.p_type == ELF::PT_LOAD) in toMappedAddr()
738 bool IsRelocatable = EF.getHeader().e_type == ELF::ET_REL; in decodeBBAddrMapImpl()
800 if (Sec.sh_type == ELF::SHT_LLVM_BB_ADDR_MAP) { in decodeBBAddrMapImpl()
957 if (Sec.sh_type != ELF::SHT_RELA && Sec.sh_type != ELF::SHT_REL) in getSectionAndRelocations()