Lines Matching refs:ELF

21 #define ELF_RELOC(name, value) STRINGIFY_ENUM_CASE(ELF, name)
26 case ELF::EM_X86_64: in getELFRelocationTypeName()
33 case ELF::EM_386: in getELFRelocationTypeName()
34 case ELF::EM_IAMCU: in getELFRelocationTypeName()
41 case ELF::EM_MIPS: in getELFRelocationTypeName()
48 case ELF::EM_AARCH64: in getELFRelocationTypeName()
55 case ELF::EM_ARM: in getELFRelocationTypeName()
62 case ELF::EM_ARC_COMPACT: in getELFRelocationTypeName()
63 case ELF::EM_ARC_COMPACT2: in getELFRelocationTypeName()
70 case ELF::EM_AVR: in getELFRelocationTypeName()
77 case ELF::EM_HEXAGON: in getELFRelocationTypeName()
84 case ELF::EM_LANAI: in getELFRelocationTypeName()
91 case ELF::EM_PPC: in getELFRelocationTypeName()
98 case ELF::EM_PPC64: in getELFRelocationTypeName()
105 case ELF::EM_RISCV: in getELFRelocationTypeName()
112 case ELF::EM_S390: in getELFRelocationTypeName()
119 case ELF::EM_SPARC: in getELFRelocationTypeName()
120 case ELF::EM_SPARC32PLUS: in getELFRelocationTypeName()
121 case ELF::EM_SPARCV9: in getELFRelocationTypeName()
128 case ELF::EM_AMDGPU: in getELFRelocationTypeName()
135 case ELF::EM_BPF: in getELFRelocationTypeName()
142 case ELF::EM_MSP430: in getELFRelocationTypeName()
159 case ELF::EM_X86_64: in getELFRelativeRelocationType()
160 return ELF::R_X86_64_RELATIVE; in getELFRelativeRelocationType()
161 case ELF::EM_386: in getELFRelativeRelocationType()
162 case ELF::EM_IAMCU: in getELFRelativeRelocationType()
163 return ELF::R_386_RELATIVE; in getELFRelativeRelocationType()
164 case ELF::EM_MIPS: in getELFRelativeRelocationType()
166 case ELF::EM_AARCH64: in getELFRelativeRelocationType()
167 return ELF::R_AARCH64_RELATIVE; in getELFRelativeRelocationType()
168 case ELF::EM_ARM: in getELFRelativeRelocationType()
169 return ELF::R_ARM_RELATIVE; in getELFRelativeRelocationType()
170 case ELF::EM_ARC_COMPACT: in getELFRelativeRelocationType()
171 case ELF::EM_ARC_COMPACT2: in getELFRelativeRelocationType()
172 return ELF::R_ARC_RELATIVE; in getELFRelativeRelocationType()
173 case ELF::EM_AVR: in getELFRelativeRelocationType()
175 case ELF::EM_HEXAGON: in getELFRelativeRelocationType()
176 return ELF::R_HEX_RELATIVE; in getELFRelativeRelocationType()
177 case ELF::EM_LANAI: in getELFRelativeRelocationType()
179 case ELF::EM_PPC: in getELFRelativeRelocationType()
181 case ELF::EM_PPC64: in getELFRelativeRelocationType()
182 return ELF::R_PPC64_RELATIVE; in getELFRelativeRelocationType()
183 case ELF::EM_RISCV: in getELFRelativeRelocationType()
184 return ELF::R_RISCV_RELATIVE; in getELFRelativeRelocationType()
185 case ELF::EM_S390: in getELFRelativeRelocationType()
186 return ELF::R_390_RELATIVE; in getELFRelativeRelocationType()
187 case ELF::EM_SPARC: in getELFRelativeRelocationType()
188 case ELF::EM_SPARC32PLUS: in getELFRelativeRelocationType()
189 case ELF::EM_SPARCV9: in getELFRelativeRelocationType()
190 return ELF::R_SPARC_RELATIVE; in getELFRelativeRelocationType()
191 case ELF::EM_AMDGPU: in getELFRelativeRelocationType()
193 case ELF::EM_BPF: in getELFRelativeRelocationType()
203 case ELF::EM_ARM: in getELFSectionTypeName()
205 STRINGIFY_ENUM_CASE(ELF, SHT_ARM_EXIDX); in getELFSectionTypeName()
206 STRINGIFY_ENUM_CASE(ELF, SHT_ARM_PREEMPTMAP); in getELFSectionTypeName()
207 STRINGIFY_ENUM_CASE(ELF, SHT_ARM_ATTRIBUTES); in getELFSectionTypeName()
208 STRINGIFY_ENUM_CASE(ELF, SHT_ARM_DEBUGOVERLAY); in getELFSectionTypeName()
209 STRINGIFY_ENUM_CASE(ELF, SHT_ARM_OVERLAYSECTION); in getELFSectionTypeName()
212 case ELF::EM_HEXAGON: in getELFSectionTypeName()
213 switch (Type) { STRINGIFY_ENUM_CASE(ELF, SHT_HEX_ORDERED); } in getELFSectionTypeName()
215 case ELF::EM_X86_64: in getELFSectionTypeName()
216 switch (Type) { STRINGIFY_ENUM_CASE(ELF, SHT_X86_64_UNWIND); } in getELFSectionTypeName()
218 case ELF::EM_MIPS: in getELFSectionTypeName()
219 case ELF::EM_MIPS_RS3_LE: in getELFSectionTypeName()
221 STRINGIFY_ENUM_CASE(ELF, SHT_MIPS_REGINFO); in getELFSectionTypeName()
222 STRINGIFY_ENUM_CASE(ELF, SHT_MIPS_OPTIONS); in getELFSectionTypeName()
223 STRINGIFY_ENUM_CASE(ELF, SHT_MIPS_ABIFLAGS); in getELFSectionTypeName()
224 STRINGIFY_ENUM_CASE(ELF, SHT_MIPS_DWARF); in getELFSectionTypeName()
232 STRINGIFY_ENUM_CASE(ELF, SHT_NULL); in getELFSectionTypeName()
233 STRINGIFY_ENUM_CASE(ELF, SHT_PROGBITS); in getELFSectionTypeName()
234 STRINGIFY_ENUM_CASE(ELF, SHT_SYMTAB); in getELFSectionTypeName()
235 STRINGIFY_ENUM_CASE(ELF, SHT_STRTAB); in getELFSectionTypeName()
236 STRINGIFY_ENUM_CASE(ELF, SHT_RELA); in getELFSectionTypeName()
237 STRINGIFY_ENUM_CASE(ELF, SHT_HASH); in getELFSectionTypeName()
238 STRINGIFY_ENUM_CASE(ELF, SHT_DYNAMIC); in getELFSectionTypeName()
239 STRINGIFY_ENUM_CASE(ELF, SHT_NOTE); in getELFSectionTypeName()
240 STRINGIFY_ENUM_CASE(ELF, SHT_NOBITS); in getELFSectionTypeName()
241 STRINGIFY_ENUM_CASE(ELF, SHT_REL); in getELFSectionTypeName()
242 STRINGIFY_ENUM_CASE(ELF, SHT_SHLIB); in getELFSectionTypeName()
243 STRINGIFY_ENUM_CASE(ELF, SHT_DYNSYM); in getELFSectionTypeName()
244 STRINGIFY_ENUM_CASE(ELF, SHT_INIT_ARRAY); in getELFSectionTypeName()
245 STRINGIFY_ENUM_CASE(ELF, SHT_FINI_ARRAY); in getELFSectionTypeName()
246 STRINGIFY_ENUM_CASE(ELF, SHT_PREINIT_ARRAY); in getELFSectionTypeName()
247 STRINGIFY_ENUM_CASE(ELF, SHT_GROUP); in getELFSectionTypeName()
248 STRINGIFY_ENUM_CASE(ELF, SHT_SYMTAB_SHNDX); in getELFSectionTypeName()
249 STRINGIFY_ENUM_CASE(ELF, SHT_RELR); in getELFSectionTypeName()
250 STRINGIFY_ENUM_CASE(ELF, SHT_ANDROID_REL); in getELFSectionTypeName()
251 STRINGIFY_ENUM_CASE(ELF, SHT_ANDROID_RELA); in getELFSectionTypeName()
252 STRINGIFY_ENUM_CASE(ELF, SHT_ANDROID_RELR); in getELFSectionTypeName()
253 STRINGIFY_ENUM_CASE(ELF, SHT_LLVM_ODRTAB); in getELFSectionTypeName()
254 STRINGIFY_ENUM_CASE(ELF, SHT_LLVM_LINKER_OPTIONS); in getELFSectionTypeName()
255 STRINGIFY_ENUM_CASE(ELF, SHT_LLVM_CALL_GRAPH_PROFILE); in getELFSectionTypeName()
256 STRINGIFY_ENUM_CASE(ELF, SHT_LLVM_ADDRSIG); in getELFSectionTypeName()
257 STRINGIFY_ENUM_CASE(ELF, SHT_GNU_ATTRIBUTES); in getELFSectionTypeName()
258 STRINGIFY_ENUM_CASE(ELF, SHT_GNU_HASH); in getELFSectionTypeName()
259 STRINGIFY_ENUM_CASE(ELF, SHT_GNU_verdef); in getELFSectionTypeName()
260 STRINGIFY_ENUM_CASE(ELF, SHT_GNU_verneed); in getELFSectionTypeName()
261 STRINGIFY_ENUM_CASE(ELF, SHT_GNU_versym); in getELFSectionTypeName()
387 bool GroupedByInfo = GroupFlags & ELF::RELOCATION_GROUPED_BY_INFO_FLAG; in android_relas()
388 bool GroupedByOffsetDelta = GroupFlags & ELF::RELOCATION_GROUPED_BY_OFFSET_DELTA_FLAG; in android_relas()
389 bool GroupedByAddend = GroupFlags & ELF::RELOCATION_GROUPED_BY_ADDEND_FLAG; in android_relas()
390 bool GroupHasAddend = GroupFlags & ELF::RELOCATION_GROUP_HAS_ADDEND_FLAG; in android_relas()
436 case ELF::EM_HEXAGON: in getDynamicTagAsString()
443 case ELF::EM_MIPS: in getDynamicTagAsString()
450 case ELF::EM_PPC64: in getDynamicTagAsString()
493 if (Phdr.p_type == ELF::PT_DYNAMIC) { in dynamicEntries()
510 if (Sec.sh_type == ELF::SHT_DYNAMIC) { in dynamicEntries()
531 if (Dyn.back().d_tag != ELF::DT_NULL) in dynamicEntries()
546 if (Phdr.p_type == ELF::PT_LOAD) in toMappedAddr()